var $k14yv$path=require("path"),$k14yv$os=require("os"),$k14yv$fs=require("fs"),$k14yv$util=require("util"),$k14yv$assert=require("assert"),$k14yv$crypto=require("crypto"),$k14yv$url=require("url"),$k14yv$buffer=require("buffer"),$k14yv$stream=require("stream"),$k14yv$events=require("events"),$k14yv$timers=require("timers"),$k14yv$string_decoder=require("string_decoder"),$k14yv$http=require("http"),$k14yv$https=require("https"),$k14yv$zlib=require("zlib"),$k14yv$child_process=require("child_process");function $parcel$export(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0});}function $parcel$interopDefault(e){return e&&e.__esModule?e.default:e;}var $parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},parcelRequire=$parcel$global.parcelRequire810d;parcelRequire.register("4kQHk",function(e,t){$parcel$export(e.exports,"setupActionsPython",()=>x);var r=parcelRequire("gxAVj"),i=parcelRequire("7h1SD"),a=parcelRequire("ER74K"),n=parcelRequire("lcRzN"),o=parcelRequire("ceI0e"),s=parcelRequire("dTX7a"),u=parcelRequire("8wFiF"),c=parcelRequire("4r449"),l=parcelRequire("dOmbL"),p=$k14yv$path.resolve(__dirname,"../../src/python");function d(e){return e.startsWith("pypy");}async function m(e,t){let r=void 0,i=(0,c.getCacheDistributor)(e,t,r);await i.restoreCache();}let h=!1;async function x(e,t,o){u.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");let c=process.env.AGENT_TOOLSDIRECTORY?.trim();if("string"==typeof c&&""!==c&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,n.debug)(`Python is expected to be installed into ${process.env.RUNNER_TOOL_CACHE}`),e){let t;if(d(e)){let r=await(0,i.findPyPyVersion)(e,o,!0,h,!1);t=`${r.resolvedPyPyVersion}-${r.resolvedPythonVersion}`,(0,a.info)(`Successfully set up PyPy ${r.resolvedPyPyVersion} with Python (${r.resolvedPythonVersion})`);}else{let i=await(0,r.useCpythonVersion)(e,o,!0,h,!1);t=i.version,(0,a.info)(`Successfully set up ${i.impl} (${t})`);}if((0,u.isCacheFeatureAvailable)()){let e="pip"// package manager used for caching ;await m(e,t);}}s.GITHUB_ACTIONS&&(await f());}async function f(){let e=(0,o.join)(p,"python_matcher.json");if(!(await(0,l.pathExists)(e)))return(0,a.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,a.info)(`::add-matcher::${e}`);}}),parcelRequire.register("gxAVj",function(e,t){$parcel$export(e.exports,"useCpythonVersion",()=>u);var r=parcelRequire("8wFiF"),i=parcelRequire("lJEXJ"),a=parcelRequire("8hcOb"),n=parcelRequire("lcRzN"),o=parcelRequire("4ai2V");// Python has "scripts" or "bin" directories where command-line tools that come with packages are installed. // This is where pip is, along with anything that pip installs. // There is a separate directory for `pip install --user`. // // For reference, these directories are as follows: // macOS / Linux: // /bin (by default /usr/local/bin, but not on hosted agents -- see the `else`) // (--user) ~/.local/bin // Windows: // \Scripts // (--user) %APPDATA%\Python\PythonXY\Scripts // See https://docs.python.org/3/library/sysconfig.html function s(e){return r.IS_WINDOWS?$k14yv$path.join(e,"Scripts"):$k14yv$path.join(e,"bin");}async function u(e,t,u,d,m){let h=null,x=c(e),f=p(x,m);if(n.debug(`Semantic version spec of ${e} is ${f}`),d){h=await a.getManifest();let e=(await a.findReleaseFromManifest(f,t,h))?.version;e?(f=e,n.info(`Resolved as '${f}'`)):n.info(`Failed to resolve version ${f} from manifest`);}let g=o.find("Python",f,t);if(!g){n.info(`Version ${f} was not found in the local cache`);let e=await a.findReleaseFromManifest(f,t,h);e&&e.files&&e.files.length>0&&(n.info(`Version ${f} is available for downloading`),await a.installCpythonFromRelease(e),g=o.find("Python",f,t));}if(!g){let i=await(0,r.getOSInfo)();throw Error([`The version '${e}' with architecture '${t}' was not found for ${i?`${i.osName} ${i.osVersion}`:"this operating system"}.`,`The list of all available versions can be found here: ${a.MANIFEST_URL}`].join($k14yv$os.EOL));}let D=s(g),y=r.IS_WINDOWS?".exe":"",b=$k14yv$path.join(r.IS_WINDOWS?g:D,`python${y}`);if(u){if(n.exportVariable("pythonLocation",g),n.exportVariable("PKG_CONFIG_PATH",g+"/lib/pkgconfig"),n.exportVariable("pythonLocation",g),// https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython n.exportVariable("Python_ROOT_DIR",g),// https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2 n.exportVariable("Python2_ROOT_DIR",g),// https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3 n.exportVariable("Python3_ROOT_DIR",g),n.exportVariable("PKG_CONFIG_PATH",g+"/lib/pkgconfig"),r.IS_LINUX){let e=process.env.LD_LIBRARY_PATH?`:${process.env.LD_LIBRARY_PATH}`:"",t=$k14yv$path.join(g,"lib");e.split(":").includes(t)||n.exportVariable("LD_LIBRARY_PATH",t+e);}if(n.addPath(g),n.addPath(D),r.IS_WINDOWS){// Add --user directory // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/ // So if `findLocalTool` succeeded above, we must have a conformant `installDir` let e=$k14yv$path.basename($k14yv$path.dirname(g)),t=i.major(e),r=i.minor(e),a=$k14yv$path.join(process.env.APPDATA||"","Python",`Python${t}${r}`,"Scripts");n.addPath(a);}// On Linux and macOS, pip will create the --user directory and add it to PATH as needed. }let v=l(g);return n.setOutput("python-version",v),n.setOutput("python-path",b),{impl:"CPython",version:v};}/** Convert versions like `3.8-dev` to a version like `~3.8.0-0`. */function c(e){let t=/^(\d+)\.(\d+)-dev$/;return e.replace(t,"~$1.$2.0-0");}/** Extracts python version from install path from hosted tool cache as described in README.md */function l(e){let t=e.split($k14yv$path.sep),r=t.findIndex(e=>"PyPy"===e||"Python"===e);return t[r+1]||"";}function p(e,t){let r=/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,i=/^(\d+)\.(\d+)$/,a=e.replace(r,"$1-$2");return t&&(a=a.replace(i,"~$1.$2.0-0")),a;}}),parcelRequire.register("8wFiF",function(e,t){$parcel$export(e.exports,"IS_WINDOWS",()=>o),$parcel$export(e.exports,"IS_LINUX",()=>s),$parcel$export(e.exports,"IS_MAC",()=>u),$parcel$export(e.exports,"WINDOWS_ARCHS",()=>c),$parcel$export(e.exports,"WINDOWS_PLATFORMS",()=>l),$parcel$export(e.exports,"createSymlinkInFolder",()=>d),$parcel$export(e.exports,"validateVersion",()=>m),$parcel$export(e.exports,"isNightlyKeyword",()=>h),$parcel$export(e.exports,"getPyPyVersionFromPath",()=>x),$parcel$export(e.exports,"readExactPyPyVersionFile",()=>f),$parcel$export(e.exports,"writeExactPyPyVersionFile",()=>g),$parcel$export(e.exports,"validatePythonVersionFormatForPyPy",()=>D),$parcel$export(e.exports,"isCacheFeatureAvailable",()=>b),$parcel$export(e.exports,"logWarning",()=>v),$parcel$export(e.exports,"getLinuxInfo",()=>A),$parcel$export(e.exports,"getOSInfo",()=>S);/* eslint no-unsafe-finally: "off" */var r=parcelRequire("lSxMY"),i=parcelRequire("lcRzN"),a=parcelRequire("lJEXJ");parcelRequire("55W4k");var n=parcelRequire("jlr6Q");let o="win32"===process.platform,s="linux"===process.platform,u="darwin"===process.platform,c=["x86","x64"],l=["win32","win64"],p="PYPY_VERSION";function d(e,t,r,i=!1){let a=$k14yv$path.join(e,t),n=$k14yv$path.join(e,r);$parcel$interopDefault($k14yv$fs).existsSync(n)||($parcel$interopDefault($k14yv$fs).symlinkSync(a,n),!o&&i&&$parcel$interopDefault($k14yv$fs).chmodSync(n,"755"));}function m(e){return h(e)||!!a.validRange(e);}function h(e){return"nightly"===e;}function x(e){return $k14yv$path.basename($k14yv$path.dirname(e));}function f(e){let t="",r=$k14yv$path.join(e,p);return $parcel$interopDefault($k14yv$fs).existsSync(r)&&(t=$parcel$interopDefault($k14yv$fs).readFileSync(r).toString().trim()),t;}function g(e,t){let r=$k14yv$path.join(e,p);$parcel$interopDefault($k14yv$fs).writeFileSync(r,t);}function D(e){let t=/^\d+\.\d+$/;return t.test(e);}function y(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com");return"GITHUB.COM"!==e.hostname.toUpperCase();}function b(){return!!r.isFeatureAvailable()||(y()?i.warning("Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not."):i.warning("The runner was not able to contact the cache service. Caching will be skipped"),!1);}function v(e){let t="[warning]";i.info(`${t}${e}`);}async function C(){let{stdout:e}=await n.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0}),t=e.trim().split(" ")[3];return{osName:"Windows",osVersion:t};}async function E(){let{stdout:e}=await n.getExecOutput("sw_vers",["-productVersion"],{silent:!0}),t=e.trim();return{osName:"macOS",osVersion:t};}async function A(){let{stdout:e}=await n.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,r]=e.trim().split("\n");return i.debug(`OS Name: ${t}, Version: ${r}`),{osName:t,osVersion:r};}async function S(){let e;try{o?e=await C():s?e=await A():u&&(e=await E());}catch(t){let e=t;i.debug(e.message);}finally{return e;}}}),parcelRequire.register("lSxMY",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,i,a);}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.saveCache=e.exports.restoreCache=e.exports.isFeatureAvailable=e.exports.ReserveCacheError=e.exports.ValidationError=void 0;let o=a(parcelRequire("lcRzN")),s=a($k14yv$path),u=a(parcelRequire("ju5qo")),c=a(parcelRequire("cOagO"));var l=parcelRequire("gTUtS");class p extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,p.prototype);}}e.exports.ValidationError=p;class d extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,d.prototype);}}function m(e){if(!e||0===e.length)throw new p("Path Validation Error: At least one directory or file path is required");}function h(e){if(e.length>512)throw new p(`Key Validation Error: ${e} cannot be larger than 512 characters.`);let t=/^[^,]*$/;if(!t.test(e))throw new p(`Key Validation Error: ${e} cannot contain commas.`);}/** * isFeatureAvailable to check the presence of Actions cache service * * @returns boolean return true if Actions cache service feature is available, otherwise false */function x(){return!!process.env.ACTIONS_CACHE_URL;}/** * Restores cache from keys * * @param paths a list of file paths to restore from the cache * @param primaryKey an explicit key for restoring the cache * @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for key * @param downloadOptions cache download options * @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform * @returns string returns the key for the cache hit, otherwise returns undefined */function f(e,t,r,i,a=!1){return n(this,void 0,void 0,function*(){m(e),r=r||[];let n=[t,...r];if(o.debug("Resolved Keys:"),o.debug(JSON.stringify(n)),n.length>10)throw new p("Key Validation Error: Keys are limited to a maximum of 10.");for(let e of n)h(e);let d=yield u.getCompressionMethod(),x="";try{// path are needed to compute version let t=yield c.getCacheEntry(n,e,{compressionMethod:d,enableCrossOsArchive:a});if(!(null==t?void 0:t.archiveLocation))return;if(null==i?void 0:i.lookupOnly)return o.info("Lookup only - skipping download"),t.cacheKey;x=s.join(yield u.createTempDirectory(),u.getCacheFileName(d)),o.debug(`Archive Path: ${x}`),// Download the cache from the cache entry yield c.downloadCache(t.archiveLocation,x,i),o.isDebug()&&(yield(0,l.listTar)(x,d));let r=u.getArchiveFileSizeInBytes(x);return o.info(`Cache Size: ~${Math.round(r/1048576)} MB (${r} B)`),yield(0,l.extractTar)(x,d),o.info("Cache restored successfully"),t.cacheKey;}catch(t){let e=t;if(e.name===p.name)throw t;o.warning(`Failed to restore: ${t.message}`);}finally{// Try to delete the archive to save space try{yield u.unlinkFile(x);}catch(e){o.debug(`Failed to delete archive: ${e}`);}}});}/** * Saves a list of files with the specified key * * @param paths a list of file paths to be cached * @param key an explicit key for restoring the cache * @param enableCrossOsArchive an optional boolean enabled to save cache on windows which could be restored on any platform * @param options cache upload options * @returns number returns cacheId if the cache was saved successfully and throws an error if save fails */function g(e,t,r,i=!1){var a,x,f,g,D;return n(this,void 0,void 0,function*(){m(e),h(t);let n=yield u.getCompressionMethod(),y=-1,b=yield u.resolvePaths(e);if(o.debug("Cache Paths:"),o.debug(`${JSON.stringify(b)}`),0===b.length)throw Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let v=yield u.createTempDirectory(),C=s.join(v,u.getCacheFileName(n));o.debug(`Archive Path: ${C}`);try{yield(0,l.createTar)(v,b,n),o.isDebug()&&(yield(0,l.listTar)(C,n));let s=10737418240,p=u.getArchiveFileSizeInBytes(C);// 10GB per repo limit // For GHES, this check will take place in ReserveCache API with enterprise file size limit if(o.debug(`File Size: ${p}`),p>s&&!u.isGhes())throw Error(`Cache size of ~${Math.round(p/1048576)} MB (${p} B) is over the 10GB limit, not saving cache.`);o.debug("Reserving Cache");let m=yield c.reserveCache(t,e,{compressionMethod:n,enableCrossOsArchive:i,cacheSize:p});if(null===(a=null==m?void 0:m.result)||void 0===a?void 0:a.cacheId)y=null===(x=null==m?void 0:m.result)||void 0===x?void 0:x.cacheId;else if((null==m?void 0:m.statusCode)===400)throw Error(null!==(g=null===(f=null==m?void 0:m.error)||void 0===f?void 0:f.message)&&void 0!==g?g:`Cache size of ~${Math.round(p/1048576)} MB (${p} B) is over the data cap limit, not saving cache.`);else throw new d(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${null===(D=null==m?void 0:m.error)||void 0===D?void 0:D.message}`);o.debug(`Saving Cache (ID: ${y})`),yield c.saveCache(y,C,r);}catch(t){let e=t;if(e.name===p.name)throw t;e.name===d.name?o.info(`Failed to save: ${e.message}`):o.warning(`Failed to save: ${e.message}`);}finally{// Try to delete the archive to save space try{yield u.unlinkFile(C);}catch(e){o.debug(`Failed to delete archive: ${e}`);}}return y;});}e.exports.ReserveCacheError=d,e.exports.isFeatureAvailable=x,e.exports.restoreCache=f,e.exports.saveCache=g;}),parcelRequire.register("ju5qo",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,i,a);}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});},o=e.exports&&e.exports.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this;},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,n){a(i,n,(t=e[r](t)).done,t.value);});};}function a(e,t,r,i){Promise.resolve(i).then(function(t){e({value:t,done:r});},t);}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isGhes=e.exports.assertDefined=e.exports.getGnuTarPathOnWindows=e.exports.getCacheFileName=e.exports.getCompressionMethod=e.exports.unlinkFile=e.exports.resolvePaths=e.exports.getArchiveFileSizeInBytes=e.exports.createTempDirectory=void 0;let s=a(parcelRequire("lcRzN")),u=a(parcelRequire("jlr6Q")),c=a(parcelRequire("jgwdK")),l=a(parcelRequire("fcBgE")),p=a($k14yv$fs),d=a($k14yv$path),m=a(parcelRequire("lJEXJ")),h=a($k14yv$util);var x=parcelRequire("6c5Th"),f=parcelRequire("78Azy");// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23 function g(){return n(this,void 0,void 0,function*(){let e="win32"===process.platform,t=process.env.RUNNER_TEMP||"";if(!t){let r;r=e?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",t=d.join(r,"actions","temp");}let r=d.join(t,(0,x.v4)());return yield l.mkdirP(r),r;});}function D(e){return p.statSync(e).size;}function y(e){var t,r,i,a,u;return n(this,void 0,void 0,function*(){let n=[],l=null!==(u=process.env.GITHUB_WORKSPACE)&&void 0!==u?u:process.cwd(),p=yield c.create(e.join("\n"),{implicitDescendants:!1});try{for(var m,h=!0,x=o(p.globGenerator());!(t=(m=yield x.next()).done);){a=m.value,h=!1;try{let e=a,t=d.relative(l,e).replace(RegExp(`\\${d.sep}`,"g"),"/");s.debug(`Matched: ${t}`),""===t?n.push("."):n.push(`${t}`);}finally{h=!0;}}}catch(e){r={error:e};}finally{try{!h&&!t&&(i=x.return)&&(yield i.call(x));}finally{if(r)throw r.error;}}return n;});}function b(e){return n(this,void 0,void 0,function*(){return h.promisify(p.unlink)(e);});}function v(e,t=[]){return n(this,void 0,void 0,function*(){let r="";t.push("--version"),s.debug(`Checking ${e} ${t.join(" ")}`);try{yield u.exec(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});}catch(e){s.debug(e.message);}return r=r.trim(),s.debug(r),r;});}// Use zstandard if possible to maximize cache performance function C(){return n(this,void 0,void 0,function*(){let e=yield v("zstd",["--quiet"]),t=m.clean(e);return(s.debug(`zstd version: ${t}`),""===e)?f.CompressionMethod.Gzip:f.CompressionMethod.ZstdWithoutLong;});}function E(e){return e===f.CompressionMethod.Gzip?f.CacheFilename.Gzip:f.CacheFilename.Zstd;}function A(){return n(this,void 0,void 0,function*(){if(p.existsSync(f.GnuTarPathOnWindows))return f.GnuTarPathOnWindows;let e=yield v("tar");return e.toLowerCase().includes("gnu tar")?l.which("tar"):"";});}function S(e,t){if(void 0===t)throw Error(`Expected ${e} but value was undefiend`);return t;}function B(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com");return"GITHUB.COM"!==e.hostname.toUpperCase();}e.exports.createTempDirectory=g,e.exports.getArchiveFileSizeInBytes=D,e.exports.resolvePaths=y,e.exports.unlinkFile=b,e.exports.getCompressionMethod=C,e.exports.getCacheFileName=E,e.exports.getGnuTarPathOnWindows=A,e.exports.assertDefined=S,e.exports.isGhes=B;}),parcelRequire.register("jgwdK",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.create=void 0;var i=parcelRequire("jdb10");/** * Constructs a globber * * @param patterns Patterns separated by newlines * @param options Glob options */function a(e,t){return r(this,void 0,void 0,function*(){return yield i.DefaultGlobber.create(e,t);});}e.exports.create=a;}),parcelRequire.register("jdb10",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});},o=e.exports&&e.exports.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this;},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,n){a(i,n,(t=e[r](t)).done,t.value);});};}function a(e,t,r,i){Promise.resolve(i).then(function(t){e({value:t,done:r});},t);}},s=e.exports&&e.exports.__await||function(e){return this instanceof s?(this.v=e,this):new s(e);},u=e.exports&&e.exports.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,a=r.apply(e,t||[]),n=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this;},i;function o(e){a[e]&&(i[e]=function(t){return new Promise(function(r,i){n.push([e,t,r,i])>1||u(e,t);});});}function u(e,t){try{c(a[e](t));}catch(e){d(n[0][3],e);}}function c(e){e.value instanceof s?Promise.resolve(e.value.v).then(l,p):d(n[0][2],e);}function l(e){u("next",e);}function p(e){u("throw",e);}function d(e,t){e(t),n.shift(),n.length&&u(n[0][0],n[0][1]);}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.DefaultGlobber=void 0;let c=a(parcelRequire("lcRzN")),l=a($k14yv$fs),p=a(parcelRequire("gcUtG")),d=a($k14yv$path),m=a(parcelRequire("jeE5j"));var h=parcelRequire("3MqmT"),x=parcelRequire("aY7Rr"),f=parcelRequire("ad8Hv");let g="win32"===process.platform;class D{constructor(e){this.patterns=[],this.searchPaths=[],this.options=p.getOptions(e);}getSearchPaths(){// Return a copy return this.searchPaths.slice();}glob(){var e,t;return n(this,void 0,void 0,function*(){let r=[];try{for(var i,a=o(this.globGenerator());!(i=yield a.next()).done;){let e=i.value;r.push(e);}}catch(t){e={error:t};}finally{try{i&&!i.done&&(t=a.return)&&(yield t.call(a));}finally{if(e)throw e.error;}}return r;});}globGenerator(){return u(this,arguments,function*(){// Fill in defaults options let e=p.getOptions(this.options),t=[];for(let r of this.patterns)t.push(r),e.implicitDescendants&&(r.trailingSeparator||"**"!==r.segments[r.segments.length-1])&&t.push(new x.Pattern(r.negate,!0,r.segments.concat("**")));// Push the search paths let r=[];for(let e of m.getSearchPaths(t)){c.debug(`Search path '${e}'`);// Exists? try{// Intentionally using lstat. Detection for broken symlink // will be performed later (if following symlinks). yield s(l.promises.lstat(e));}catch(e){if("ENOENT"===e.code)continue;throw e;}r.unshift(new f.SearchState(e,1));}// Search let i=[];// used to detect cycles for(;r.length;){// Pop let a=r.pop(),n=m.match(t,a.path),o=!!n||m.partialMatch(t,a.path);if(!n&&!o)continue;// Stat let u=yield s(D.stat(a,e,i));// Broken symlink, or symlink cycle detected, or no longer exists if(u){// Directory if(u.isDirectory()){// Matched if(n&h.MatchKind.Directory)yield yield s(a.path);else if(!o)continue;// Push the child items in reverse let e=a.level+1,t=(yield s(l.promises.readdir(a.path))).map(t=>new f.SearchState(d.join(a.path,t),e));r.push(...t.reverse());}else n&h.MatchKind.File&&(yield yield s(a.path));}}});}/** * Constructs a DefaultGlobber */static create(e,t){return n(this,void 0,void 0,function*(){let r=new D(t);g&&(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n"));let i=e.split("\n").map(e=>e.trim());for(let e of i)!e||e.startsWith("#")||r.patterns.push(new x.Pattern(e));return r.searchPaths.push(...m.getSearchPaths(r.patterns)),r;});}static stat(e,t,r){return n(this,void 0,void 0,function*(){// Note: // `stat` returns info about the target of a symlink (or symlink chain) // `lstat` returns info about a symlink itself let i;if(t.followSymbolicLinks)try{// Use `stat` (following symlinks) i=yield l.promises.stat(e.path);}catch(r){if("ENOENT"===r.code){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return;}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`);}throw r;}else i=yield l.promises.lstat(e.path);// Note, isDirectory() returns false for the lstat of a symlink if(i.isDirectory()&&t.followSymbolicLinks){// Get the realpath let t=yield l.promises.realpath(e.path);// Fixup the traversal chain to match the item level for(;r.length>=e.level;)r.pop();// Test for a cycle if(r.some(e=>e===t)){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return;}// Update the traversal chain r.push(t);}return i;});}}e.exports.DefaultGlobber=D;}),parcelRequire.register("gcUtG",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getOptions=void 0;let n=a(parcelRequire("lcRzN"));/** * Returns a copy with defaults filled in. */function o(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return e&&("boolean"==typeof e.followSymbolicLinks&&(t.followSymbolicLinks=e.followSymbolicLinks,n.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)),"boolean"==typeof e.implicitDescendants&&(t.implicitDescendants=e.implicitDescendants,n.debug(`implicitDescendants '${t.implicitDescendants}'`)),"boolean"==typeof e.omitBrokenSymbolicLinks&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,n.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`))),t;}e.exports.getOptions=o;}),parcelRequire.register("jeE5j",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.partialMatch=e.exports.match=e.exports.getSearchPaths=void 0;let n=a(parcelRequire("irDzZ"));var o=parcelRequire("3MqmT");let s="win32"===process.platform;/** * Given an array of patterns, returns an array of paths to search. * Duplicates and paths under other included paths are filtered out. */function u(e){// Ignore negate patterns e=e.filter(e=>!e.negate);// Create a map of all search paths let t={};for(let r of e){let e=s?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate";}let r=[];for(let i of e){// Check if already included let e=s?i.searchPath.toUpperCase():i.searchPath;if("included"===t[e])continue;// Check for an ancestor search path let a=!1,o=e,u=n.dirname(o);for(;u!==o;){if(t[u]){a=!0;break;}o=u,u=n.dirname(o);}a||(r.push(i.searchPath),t[e]="included");}return r;}/** * Matches the patterns against the path */function c(e,t){let r=o.MatchKind.None;for(let i of e)i.negate?r&=~i.match(t):r|=i.match(t);return r;}/** * Checks whether to descend further into the directory */function l(e,t){return e.some(e=>!e.negate&&e.partialMatch(t));}e.exports.getSearchPaths=u,e.exports.match=c,e.exports.partialMatch=l;}),parcelRequire.register("irDzZ",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e};};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.safeTrimTrailingSeparator=e.exports.normalizeSeparators=e.exports.hasRoot=e.exports.hasAbsoluteRoot=e.exports.ensureAbsoluteRoot=e.exports.dirname=void 0;let o=a($k14yv$path),s=n($k14yv$assert),u="win32"===process.platform;/** * Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths. * * For example, on Linux/macOS: * - `/ => /` * - `/hello => /` * * For example, on Windows: * - `C:\ => C:\` * - `C:\hello => C:\` * - `C: => C:` * - `C:hello => C:` * - `\ => \` * - `\hello => \` * - `\\hello => \\hello` * - `\\hello\world => \\hello\world` */function c(e){// Windows UNC root, e.g. \\hello or \\hello\world if(// Normalize slashes and trim unnecessary trailing slash e=h(e),u&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;// Get dirname let t=o.dirname(e);return u&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=h(t)),t;}/** * Roots the path if not already rooted. On Windows, relative roots like `\` * or `C:` are expanded based on the current working directory. */function l(e,t){// Already rooted if(s.default(e,"ensureAbsoluteRoot parameter 'root' must not be empty"),s.default(t,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),p(t))return t;// Windows if(u){// Check for itemPath like C: or C:foo if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return(// Drive letter matches cwd? Expand to cwd (s.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()!==e[0].toUpperCase())?`${t[0]}:\\${t.substr(2)}`:// Drive only, e.g. C: 2===t.length?`${t[0]}:\\${e.substr(3)}`:(e.endsWith("\\")||(e+="\\"),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`));}if(m(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return s.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`;}}return s.default(p(e),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),e.endsWith("/")||u&&e.endsWith("\\")||(e+=o.sep),e+t;}/** * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: * `\\hello\share` and `C:\hello` (and using alternate separator). */function p(e){return(// Windows (s.default(e,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),// Normalize separators e=m(e),u)?e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e):e.startsWith("/"));}/** * On Linux/macOS, true if path starts with `/`. On Windows, true for paths like: * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator). */function d(e){return(// Windows (s.default(e,"isRooted parameter 'itemPath' must not be empty"),// Normalize separators e=m(e),u)?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/"));}/** * Removes redundant slashes and converts `/` to `\` on Windows */function m(e){// Windows if(e=e||"",u){// Convert slashes on Windows e=e.replace(/\//g,"\\");// Remove redundant slashes let t=/^\\\\+[^\\]/.test(e);// e.g. \\hello return(t?"\\":"")+e.replace(/\\\\+/g,"\\");// preserve leading \\ for UNC }// Remove redundant slashes return e.replace(/\/\/+/g,"/");}/** * Normalizes the path separators and trims the trailing separator (when safe). * For example, `/foo/ => /foo` but `/ => /` */function h(e){return(// Short-circuit if empty e?!// Normalize separators (e=m(e)).endsWith(o.sep)||e===o.sep||u&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1):"");}e.exports.dirname=c,e.exports.ensureAbsoluteRoot=l,e.exports.hasAbsoluteRoot=p,e.exports.hasRoot=d,e.exports.normalizeSeparators=m,e.exports.safeTrimTrailingSeparator=h;}),parcelRequire.register("3MqmT",function(e,t){var r;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MatchKind=void 0,function(e){/** Not matched */e[e.None=0]="None",/** Matched if the path is a directory */e[e.Directory=1]="Directory",/** Matched if the path is a regular file */e[e.File=2]="File",/** Matched */e[e.All=3]="All";}(r=e.exports.MatchKind||(e.exports.MatchKind={}));}),parcelRequire.register("aY7Rr",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e};};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Pattern=void 0;let o=a($k14yv$os),s=a($k14yv$path),u=a(parcelRequire("irDzZ")),c=n($k14yv$assert);var l=parcelRequire("8sa3G"),p=parcelRequire("3MqmT"),d=parcelRequire("fbRJC");let m="win32"===process.platform;class h{constructor(e,t=!1,r,i){let a;if(/** * Indicates whether matches should be excluded from the result set */this.negate=!1,"string"==typeof e)a=e.trim();else{// Convert to pattern r=r||[],c.default(r.length,"Parameter 'segments' must not empty");let t=h.getLiteral(r[0]);c.default(t&&u.hasAbsoluteRoot(t),"Parameter 'segments' first element must be a root path"),a=new d.Path(r).toString().trim(),e&&(a=`!${a}`);}// Negate for(;a.startsWith("!");)this.negate=!this.negate,a=a.substr(1).trim();// Normalize slashes and ensures absolute root a=h.fixupPattern(a,i),// Segments this.segments=new d.Path(a).segments,// Trailing slash indicates the pattern should only match directories, not regular files this.trailingSeparator=u.normalizeSeparators(a).endsWith(s.sep),a=u.safeTrimTrailingSeparator(a);// Search path (literal path prior to the first glob segment) let n=!1,o=this.segments.map(e=>h.getLiteral(e)).filter(e=>!n&&!(n=""===e));this.searchPath=new d.Path(o).toString(),// Root RegExp (required when determining partial match) this.rootRegExp=new RegExp(h.regExpEscape(o[0]),m?"i":""),this.isImplicitPattern=t;// Create minimatch let p={dot:!0,nobrace:!0,nocase:m,nocomment:!0,noext:!0,nonegate:!0};a=m?a.replace(/\\/g,"/"):a,this.minimatch=new l.Minimatch(a,p);}/** * Matches the pattern against the specified path */match(e){return(// Match ("**"===this.segments[this.segments.length-1]?// Normalize slashes (e=u.normalizeSeparators(e)).endsWith(s.sep)||!1!==this.isImplicitPattern||(// For example, formats like C: and C:foo on Windows are resolved to an absolute root. e=`${e}${s.sep}`):e=u.safeTrimTrailingSeparator(e),this.minimatch.match(e))?this.trailingSeparator?p.MatchKind.Directory:p.MatchKind.All:p.MatchKind.None);}/** * Indicates whether the pattern may match descendants of the specified path */partialMatch(e){return(// matchOne does not handle root path correctly (// Normalize slashes and trim unnecessary trailing slash e=u.safeTrimTrailingSeparator(e),u.dirname(e)===e)?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(m?/\\+/:/\/+/),this.minimatch.set[0],!0));}/** * Escapes glob patterns within a path */static globEscape(e){return(m?e:e.replace(/\\/g,"\\\\")// escape '\' on Linux/macOS ).replace(/(\[)(?=[^/]+\])/g,"[[]")// escape '[' when ']' follows within the path segment .replace(/\?/g,"[?]")// escape '?' .replace(/\*/g,"[*]");// escape '*' }/** * Normalizes slashes and ensures absolute root */static fixupPattern(e,t){// Empty c.default(e,"pattern cannot be empty");// Must not contain `.` segment, unless first segment // Must not contain `..` segment let r=new d.Path(e).segments.map(e=>h.getLiteral(e));// Replace leading `.` segment if(c.default(r.every((e,t)=>("."!==e||0===t)&&".."!==e),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),// Must not contain globs in root, e.g. Windows UNC path \\foo\b*r c.default(!u.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),"."===(// Normalize slashes e=u.normalizeSeparators(e))||e.startsWith(`.${s.sep}`))e=h.globEscape(process.cwd())+e.substr(1);else if("~"===e||e.startsWith(`~${s.sep}`))t=t||o.homedir(),c.default(t,"Unable to determine HOME directory"),c.default(u.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`),e=h.globEscape(t)+e.substr(1);else if(m&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=u.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));e.length>2&&!t.endsWith("\\")&&(t+="\\"),e=h.globEscape(t)+e.substr(2);}else if(m&&("\\"===e||e.match(/^\\[^\\]/))){let t=u.ensureAbsoluteRoot("C:\\dummy-root","\\");t.endsWith("\\")||(t+="\\"),e=h.globEscape(t)+e.substr(1);}else e=u.ensureAbsoluteRoot(h.globEscape(process.cwd()),e);return u.normalizeSeparators(e);}/** * Attempts to unescape a pattern segment to create a literal path segment. * Otherwise returns empty string. */static getLiteral(e){let t="";for(let r=0;r=0){// Cannot convert if(i.length>1)return"";// Convert to literal if(i){t+=i,r=a;continue;}}// Otherwise fall thru }// Append t+=i;}return t;}/** * Escapes regexp special characters * https://javascript.info/regexp-escaping */static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&");}}e.exports.Pattern=h;}),parcelRequire.register("8sa3G",function(e,t){e.exports=x,x.Minimatch=f;var r=function(){try{return $6278bd9ea450e724$import$e681ab6e5ccab411;}catch(e){}}()||{sep:"/"};x.sep=r.sep;var i=x.GLOBSTAR=f.GLOBSTAR={},a=parcelRequire("93RSZ"),n={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",s=o+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",l=p("().*{}+?[]^$\\!");// "abc" -> { a:true, b:true, c:true } function p(e){return e.split("").reduce(function(e,t){return e[t]=!0,e;},{});}// normalizes slashes. var d=/\/+/;function m(e,t){return t=t||{},function(r,i,a){return x(r,e,t);};}function h(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(t){r[t]=e[t];}),Object.keys(t).forEach(function(e){r[e]=t[e];}),r;}function x(e,t,r){return(// shortcut: comments match nothing. v(t),r||(r={}),(!!r.nocomment||"#"!==t.charAt(0))&&new f(t,r).match(e));}function f(e,t){if(!(this instanceof f))return new f(e,t);v(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===r.sep||(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,// make the set of regexps etc. this.make();}function g(){var e=this.pattern,t=this.options;// empty patterns and comments match nothing. if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return;}if(!e){this.empty=!0;return;}// step 1: figure out negation, etc. this.parseNegate();// step 2: expand braces var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments);}),this.debug(this.pattern,r),// step 3: now we have a set, so turn each one into a series of path-portion // matching patterns. // These will be regexps, except in the case of "**", which is // set to the GLOBSTAR object for globstar behavior, // and will not contain any / characters r=this.globParts=r.map(function(e){return e.split(d);}),this.debug(this.pattern,r),// glob --> regexps r=r.map(function(e,t,r){return e.map(this.parse,this);},this),this.debug(this.pattern,r),// filter out everything that didn't compile properly. r=r.filter(function(e){return-1===e.indexOf(!1);}),this.debug(this.pattern,r),this.set=r;}function D(){var e=this.pattern,t=!1,r=this.options,i=0;if(!r.nonegate){for(var a=0,n=e.length;a for // improving this regexp to avoid a ReDOS vulnerability. (t||(t=this instanceof f?this.options:{}),v(e=void 0===e?this.pattern:e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:a(e));}x.filter=m,x.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return x;var t=x,r=function(r,i,a){return t(r,i,h(e,a));};return r.Minimatch=function(r,i){return new t.Minimatch(r,h(e,i));},r.Minimatch.defaults=function(r){return t.defaults(h(e,r)).Minimatch;},r.filter=function(r,i){return t.filter(r,h(e,i));},r.defaults=function(r){return t.defaults(h(e,r));},r.makeRe=function(r,i){return t.makeRe(r,h(e,i));},r.braceExpand=function(r,i){return t.braceExpand(r,h(e,i));},r.match=function(r,i,a){return t.match(r,i,h(e,a));},r;},f.defaults=function(e){return x.defaults(e).Minimatch;},f.prototype.debug=function(){},f.prototype.make=g,f.prototype.parseNegate=D,// Brace expansion: // a{b,c}d -> abd acd // a{b,}c -> abc ac // a{0..3}d -> a0d a1d a2d a3d // a{b,c{d,e}f}g -> abg acdfg acefg // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg // // Invalid sets are not expanded. // a{2..}b -> a{2..}b // a{b}c -> a{b}c x.braceExpand=function(e,t){return y(e,t);},f.prototype.braceExpand=y;var b=65536,v=function(e){if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>b)throw TypeError("pattern is too long");};// parse a component of the expanded set. // At this point, no pattern may contain "/" in it // so we're going to return a 2d array, where each entry is the full // pattern, split on '/', and then turned into a regular expression. // A regexp is made at the end which joins each array with an // escaped /, and another full one which joins each regexp with |. // // Following the lead of Bash 4.1, note that "**" only has special meaning // when it is the *only* thing in a path portion. Otherwise, any series // of * is equivalent to a single *. Globstar behavior is enabled by // default, and can be disabled by setting options.noglobstar. f.prototype.parse=E;var C={};function E(e,t){v(e);var r=this.options;// shortcuts if("**"===e){if(!r.noglobstar)return i;e="*";}if(""===e)return"";var a="",u=!!r.nocase,c=!1,p=[],d=[],m=!1,h=-1,x=-1,f="."===e.charAt(0)?""// anything :r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function D(){if(y){// we had some state-tracking character // that wasn't consumed by this pass. switch(y){case"*":a+=s,u=!0;break;case"?":a+=o,u=!0;break;default:a+="\\"+y;}g.debug("clearStateChar %j %j",y,a),y=!1;}}for(var y,b,E=0,A=e.length;E) a+=B.close,"!"===B.type&&d.push(B),B.reEnd=a.length;continue;case"|":if(m||!p.length||c){a+="\\|",c=!1;continue;}D(),a+="|";continue;// these are mostly the same in regexp and glob case"[":if(// swallow any state-tracking char before the [ D(),m){a+="\\"+b;continue;}m=!0,x=E,h=a.length,a+=b;continue;case"]":// a right bracket shall lose its special // meaning and represent itself in // a bracket expression if it occurs // first in the list. -- POSIX.2 2.8.3.2 if(E===x+1||!m){a+="\\"+b,c=!1;continue;}// handle the case where we left a class open. // "[z-a]" is valid, equivalent to "\[z-a\]" // split where the last [ was, make sure we don't have // an invalid re. if so, re-walk the contents of the // would-be class to re-translate any characters that // were passed through as-is // TODO: It would probably be faster to determine this // without a try/catch and a new RegExp, but it's tricky // to do safely. For now, this is safe and works. var N=e.substring(x+1,E);try{RegExp("["+N+"]");}catch(e){// not a valid class! var F=this.parse(N,C);a=a.substr(0,h)+"\\["+F[0]+"\\]",u=u||F[1],m=!1;continue;}// finish up the class. u=!0,m=!1,a+=b;continue;default:// swallow any state char that wasn't consumed D(),c?c=!1:l[b]&&!("^"===b&&m)&&(a+="\\"),a+=b;}// switch }// for // handle the case where we had a +( thing at the *end* // of the pattern. // each pattern list stack adds 3 chars, and we need to go through // and escape any | chars that were passed through as-is for the regexp. // Go through and escape them, taking care not to double-escape any // | chars that were already escaped. for(m&&(// split where the last [ was, and escape it // this is a huge pita. We now have to re-walk // the contents of the would-be class to re-translate // any characters that were passed through as-is N=e.substr(x+1),F=this.parse(N,C),a=a.substr(0,h)+"\\["+F[0],u=u||F[1]),B=p.pop();B;B=p.pop()){var w=a.slice(B.reStart+B.open.length);this.debug("setting tail",a,B),// maybe some even number of \, then maybe 1 \, followed by a | w=w.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){// need to escape all those slashes *again*, without escaping the // one that we need for escaping the | character. As it works out, // escaping an even number of slashes can be done by simply repeating // it exactly after itself. That's why this trick works. // // I am sorry that you have to see this. return r||(r="\\"),t+t+r+"|";}),this.debug("tail=%j\n %s",w,w,B,a);var P="*"===B.type?s:"?"===B.type?o:"\\"+B.type;u=!0,a=a.slice(0,B.reStart)+P+"\\("+w;}// handle trailing things that only matter at the very end. D(),c&&(a+="\\\\");// only need to apply the nodot start if the re starts with // something that could conceivably capture a dot var T=!1;switch(a.charAt(0)){case"[":case".":case"(":T=!0;}// Hack to work around lack of negative lookbehind in JS // A pattern like: *.!(x).!(y|z) needs to ensure that a name // like 'a.xyz.yz' doesn't match. So, the first negative // lookahead, has to look ALL the way ahead, to the end of // the pattern. for(var O=d.length-1;O>-1;O--){var R=d[O],I=a.slice(0,R.reStart),z=a.slice(R.reStart,R.reEnd-8),k=a.slice(R.reEnd-8,R.reEnd),M=a.slice(R.reEnd);k+=M;// Handle nested stuff like *(*.js|!(*.json)), where open parens // mean that we should *not* include the ) in the bit that is considered // "after" the negated section. var q=I.split("(").length-1,L=M;for(E=0;E=0&&!(i=e[a]);a--);for(a=0;a no // - matchOne(y/z/c, c) -> no // - matchOne(z/c, c) -> no // - matchOne(c, c) yes, hit var d=n,m=o+1;if(m===u){// a ** at the end will just swallow the rest. // We have found a match. // however, it will not swallow /.x, unless // options.dot is set. // . and .. are *never* matched by **, for explosively // exponential reasons. for(this.debug("** at the end");n>> no match, partial?",e,d,t,m),d===s))return!0;return!1;}if("string"==typeof l?(c=p===l,this.debug("string match",l,p,c)):(c=p.match(l),this.debug("pattern match",l,p,c)),!c)return!1;}// Note: ending in / means that we'll get a final "" // at the end of the pattern. This can only match a // corresponding "" at the end of the file. // If the file ends in /, then it can only match a // a pattern that ends in /, unless the pattern just // doesn't have any more for it. But, a/b/ should *not* // match "a/b/*", even though "" matches against the // [^/]*? pattern, except in partial mode, where it might // simply not be reached yet. // However, a/b/ should still satisfy a/* // now either we fell off the end of the pattern, or we're done. if(n===s&&o===u)// an exact hit! return!0;if(n===s)// this is ok if we're doing the match as part of // a glob fs traversal. return r;/* istanbul ignore else */if(o===u)// this is only acceptable if we're on the very last // empty segment of a file with a trailing slash. // a/* should match a/b/ return n===s-1&&""===e[n];// should be unreachable. /* istanbul ignore next */throw Error("wtf?");};}),parcelRequire.register("93RSZ",function(e,t){var r=parcelRequire("5Xf9I"),i=parcelRequire("gMNE4");e.exports=m;var a="\x00SLASH"+Math.random()+"\x00",n="\x00OPEN"+Math.random()+"\x00",o="\x00CLOSE"+Math.random()+"\x00",s="\x00COMMA"+Math.random()+"\x00",u="\x00PERIOD"+Math.random()+"\x00";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0);}function l(e){return e.split("\\\\").join(a).split("\\{").join(n).split("\\}").join(o).split("\\,").join(s).split("\\.").join(u);}function p(e){return e.split(a).join("\\").split(n).join("{").split(o).join("}").split(s).join(",").split(u).join(".");}// Basically just str.split(","), but handling cases // where we have nested braced sections, which should be // treated as individual members, like {a,{b,c},d} function d(e){if(!e)return[""];var t=[],r=i("{","}",e);if(!r)return e.split(",");var a=r.pre,n=r.body,o=r.post,s=a.split(",");s[s.length-1]+="{"+n+"}";var u=d(o);return o.length&&(s[s.length-1]+=u.shift(),s.push.apply(s,u)),t.push.apply(t,s),t;}function m(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),D(l(e),!0).map(p)):[];}function h(e){return"{"+e+"}";}function x(e){return /^-?0\d/.test(e);}function f(e,t){return e<=t;}function g(e,t){return e>=t;}function D(e,t){var a=[],n=i("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),l=s||u,p=n.body.indexOf(",")>=0;if(!l&&!p)return(// {a},b} n.post.match(/,.*\}/)?D(e=n.pre+"{"+n.body+o+n.post):[e]);if(l)b=n.body.split(/\.\./);else if(1===(b=d(n.body)).length&&1===// x{{a,b}}y ==> x{a}y x{b}y (b=D(b[0],!1).map(h)).length){var m=n.post.length?D(n.post,!1):[""];return m.map(function(e){return n.pre+b[0]+e;});}// at this point, n is the parts, and we know it's not a comma set // with a single entry. // no need to expand pre, since it is guaranteed to be free of brace-sets var y=n.pre,m=n.post.length?D(n.post,!1):[""];if(l){var b,v,C,E=c(b[0]),A=c(b[1]),S=Math.max(b[0].length,b[1].length),B=3==b.length?Math.abs(c(b[2])):1,N=f;A0){var T=Array(P+1).join("0");C=w<0?"-"+T+C.slice(1):T+C;}}v.push(C);}}else v=r(b,function(e){return D(e,!1);});for(var O=0;O=0&&c>0){if(e===t)return[u,c];for(i=[],n=r.length;l>=0&&!s;)l==u?(i.push(l),u=r.indexOf(e,l+1)):1==i.length?s=[i.pop(),c]:((a=i.pop())=0?u:c;i.length&&(s=[n,o]);}return s;}e.exports=r,r.range=a;}),parcelRequire.register("fbRJC",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e};};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Path=void 0;let o=a($k14yv$path),s=a(parcelRequire("irDzZ")),u=n($k14yv$assert),c="win32"===process.platform;/** * Helper class for parsing paths into segments */class l{/** * Constructs a Path * @param itemPath Path or array of segments */constructor(e){// String if(this.segments=[],"string"==typeof e){// Not rooted if(u.default(e,"Parameter 'itemPath' must not be empty"),// Normalize slashes and trim unnecessary trailing slash e=s.safeTrimTrailingSeparator(e),s.hasRoot(e)){// Add all segments, while not at the root let t=e,r=s.dirname(t);for(;r!==t;){// Add the segment let e=o.basename(t);this.segments.unshift(e),// Truncate the last segment t=r,r=s.dirname(t);}// Remainder is the root this.segments.unshift(t);}else this.segments=e.split(o.sep);}else{// Must not be empty u.default(e.length>0,"Parameter 'itemPath' must not be an empty array");// Each segment for(let t=0;to)&&void 0===e.nsecs&&(x=0),x>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");o=h,s=x,i=d;// `time_low` var g=((268435455&(// Per 4.1.4 - Convert from unix epoch to Gregorian epoch h+=122192928e5))*1e4+x)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;// `time_mid` var D=h/4294967296*1e4&268435455;l[c++]=D>>>8&255,l[c++]=255&D,// `time_high_and_version` l[c++]=D>>>24&15|16,l[c++]=D>>>16&255,// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) l[c++]=d>>>8|128,// `clock_seq_low` l[c++]=255&d;// `node` for(var y=0;y<6;++y)l[c+y]=p[y];return t||n(l);}e.exports=u;}),parcelRequire.register("78Azy",function(e,t){var r,i,a;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ManifestFilename=e.exports.TarFilename=e.exports.SystemTarPathOnWindows=e.exports.GnuTarPathOnWindows=e.exports.SocketTimeout=e.exports.DefaultRetryDelay=e.exports.DefaultRetryAttempts=e.exports.ArchiveToolType=e.exports.CompressionMethod=e.exports.CacheFilename=void 0,function(e){e.Gzip="cache.tgz",e.Zstd="cache.tzst";}(r=e.exports.CacheFilename||(e.exports.CacheFilename={})),function(e){e.Gzip="gzip",// Long range mode was added to zstd in v1.3.2. // This enum is for earlier version of zstd that does not have --long support e.ZstdWithoutLong="zstd-without-long",e.Zstd="zstd";}(i=e.exports.CompressionMethod||(e.exports.CompressionMethod={})),function(e){e.GNU="gnu",e.BSD="bsd";}(a=e.exports.ArchiveToolType||(e.exports.ArchiveToolType={})),// The default number of retry attempts. e.exports.DefaultRetryAttempts=2,// The default delay in milliseconds between retry attempts. e.exports.DefaultRetryDelay=5e3,// Socket timeout in milliseconds during download. If no traffic is received // over the socket during this period, the socket is destroyed and the download // is aborted. e.exports.SocketTimeout=5e3,// The default path of GNUtar on hosted Windows runners e.exports.GnuTarPathOnWindows=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,// The default path of BSDtar on hosted Windows runners e.exports.SystemTarPathOnWindows=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,e.exports.TarFilename="cache.tar",e.exports.ManifestFilename="manifest.txt";}),parcelRequire.register("cOagO",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,i,a);}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.saveCache=e.exports.reserveCache=e.exports.downloadCache=e.exports.getCacheEntry=e.exports.getCacheVersion=void 0;let o=a(parcelRequire("lcRzN"));var s=parcelRequire("iC7fc"),u=parcelRequire("gaCjs");let c=a($k14yv$crypto),l=a($k14yv$fs),p=a(parcelRequire("ju5qo"));var d=parcelRequire("4DUXu"),m=parcelRequire("hbCiU"),h=parcelRequire("dnI1x");let x="1.0";function f(e){let t=process.env.ACTIONS_CACHE_URL||"";if(!t)throw Error("Cache Service Url not found, unable to restore cache.");let r=`${t}_apis/artifactcache/${e}`;return o.debug(`Resource Url: ${r}`),r;}function g(e,t){return`${e};api-version=${t}`;}function D(){let e={headers:{Accept:g("application/json","6.0-preview.1")}};return e;}function y(){let e=process.env.ACTIONS_RUNTIME_TOKEN||"",t=new u.BearerCredentialHandler(e);return new s.HttpClient("actions/cache",[t],D());}function b(e,t,r=!1){let i=e;return t&&i.push(t),"win32"!==process.platform||r||i.push("windows-only"),// Add salt to cache version to support breaking changes in cache entry i.push(x),c.createHash("sha256").update(i.join("|")).digest("hex");}function v(e,t,r){return n(this,void 0,void 0,function*(){let i=y(),a=b(t,null==r?void 0:r.compressionMethod,null==r?void 0:r.enableCrossOsArchive),s=`cache?keys=${encodeURIComponent(e.join(","))}&version=${a}`,u=yield(0,h.retryTypedResponse)("getCacheEntry",()=>n(this,void 0,void 0,function*(){return i.getJson(f(s));}));// Cache not found if(204===u.statusCode)return o.isDebug()&&(yield C(e[0],i,a)),null;if(!(0,h.isSuccessStatusCode)(u.statusCode))throw Error(`Cache service responded with ${u.statusCode}`);let c=u.result,l=null==c?void 0:c.archiveLocation;if(!l)throw Error("Cache not found.");return o.setSecret(l),o.debug("Cache Result:"),o.debug(JSON.stringify(c)),c;});}function C(e,t,r){return n(this,void 0,void 0,function*(){let i=`caches?key=${encodeURIComponent(e)}`,a=yield(0,h.retryTypedResponse)("listCache",()=>n(this,void 0,void 0,function*(){return t.getJson(f(i));}));if(200===a.statusCode){let t=a.result,i=null==t?void 0:t.totalCount;if(i&&i>0)for(let i of(o.debug(`No matching cache found for cache key '${e}', version '${r} 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 Other caches with similar key:`),(null==t?void 0:t.artifactCaches)||[]))o.debug(`Cache Key: ${null==i?void 0:i.cacheKey}, Cache Version: ${null==i?void 0:i.cacheVersion}, Cache Scope: ${null==i?void 0:i.scope}, Cache Created: ${null==i?void 0:i.creationTime}`);}});}function E(e,t,r){return n(this,void 0,void 0,function*(){let i=new $k14yv$url.URL(e),a=(0,m.getDownloadOptions)(r);i.hostname.endsWith(".blob.core.windows.net")?a.useAzureSdk?yield(0,d.downloadCacheStorageSDK)(e,t,a):a.concurrentBlobDownloads?yield(0,d.downloadCacheHttpClientConcurrent)(e,t,a):yield(0,d.downloadCacheHttpClient)(e,t):yield(0,d.downloadCacheHttpClient)(e,t);});}// Reserve Cache function A(e,t,r){return n(this,void 0,void 0,function*(){let i=y(),a=b(t,null==r?void 0:r.compressionMethod,null==r?void 0:r.enableCrossOsArchive),o={key:e,version:a,cacheSize:null==r?void 0:r.cacheSize},s=yield(0,h.retryTypedResponse)("reserveCache",()=>n(this,void 0,void 0,function*(){return i.postJson(f("caches"),o);}));return s;});}function S(e,t){// Format: `bytes start-end/filesize // start and end are inclusive // filesize can be * // For a 200 byte chunk starting at byte 0: // Content-Range: bytes 0-199/* return`bytes ${e}-${t}/*`;}function B(e,t,r,i,a){return n(this,void 0,void 0,function*(){o.debug(`Uploading chunk of size ${a-i+1} bytes at offset ${i} with content range: ${S(i,a)}`);let s={"Content-Type":"application/octet-stream","Content-Range":S(i,a)},u=yield(0,h.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${a})`,()=>n(this,void 0,void 0,function*(){return e.sendStream("PATCH",t,r(),s);}));if(!(0,h.isSuccessStatusCode)(u.message.statusCode))throw Error(`Cache service responded with ${u.message.statusCode} during upload chunk.`);});}function N(e,t,r,i){return n(this,void 0,void 0,function*(){// Upload Chunks let a=p.getArchiveFileSizeInBytes(r),s=f(`caches/${t.toString()}`),u=l.openSync(r,"r"),c=(0,m.getUploadOptions)(i),d=p.assertDefined("uploadConcurrency",c.uploadConcurrency),h=p.assertDefined("uploadChunkSize",c.uploadChunkSize),x=[...Array(d).keys()];o.debug("Awaiting all uploads");let g=0;try{yield Promise.all(x.map(()=>n(this,void 0,void 0,function*(){for(;gl.createReadStream(r,{fd:u,start:i,end:n,autoClose:!1}).on("error",e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`);}),i,n);}})));}finally{l.closeSync(u);}});}function F(e,t,r){return n(this,void 0,void 0,function*(){let i={size:r};return yield(0,h.retryTypedResponse)("commitCache",()=>n(this,void 0,void 0,function*(){return e.postJson(f(`caches/${t.toString()}`),i);}));});}function w(e,t,r){return n(this,void 0,void 0,function*(){let i=y();o.debug("Upload cache"),yield N(i,e,t,r),// Commit Cache o.debug("Commiting cache");let a=p.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(a/1048576)} MB (${a} B)`);let n=yield F(i,e,a);if(!(0,h.isSuccessStatusCode)(n.statusCode))throw Error(`Cache service responded with ${n.statusCode} during commit cache.`);o.info("Cache saved successfully");});}e.exports.getCacheVersion=b,e.exports.getCacheEntry=v,e.exports.downloadCache=E,e.exports.reserveCache=A,e.exports.saveCache=w;}),parcelRequire.register("4DUXu",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,i,a);}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return i(t,e),t;},n=e.exports&&e.exports.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r(function(t){t(e);});}return new(r||(r=Promise))(function(r,n){function o(e){try{u(i.next(e));}catch(e){n(e);}}function s(e){try{u(i.throw(e));}catch(e){n(e);}}function u(e){e.done?r(e.value):a(e.value).then(o,s);}u((i=i.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.downloadCacheStorageSDK=e.exports.downloadCacheHttpClientConcurrent=e.exports.downloadCacheHttpClient=e.exports.DownloadProgress=void 0;let o=a(parcelRequire("lcRzN"));var s=parcelRequire("iC7fc"),u=parcelRequire("i0GGG");let c=a($k14yv$buffer),l=a($k14yv$fs),p=a($k14yv$stream),d=a($k14yv$util),m=a(parcelRequire("ju5qo"));var h=parcelRequire("78Azy"),x=parcelRequire("dnI1x"),f=parcelRequire("708hs");/** * Pipes the body of a HTTP response to a stream * * @param response the HTTP response * @param output the writable stream */function g(e,t){return n(this,void 0,void 0,function*(){let r=d.promisify(p.pipeline);yield r(e.message,t);});}/** * Class for tracking the download state and displaying stats. */class D{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now();}/** * Progress to the next segment. Only call this method when the previous segment * is complete. * * @param segmentSize the length of the next segment */nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,o.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`);}/** * Sets the number of bytes received for the current segment. * * @param receivedBytes the number of bytes received */setReceivedBytes(e){this.receivedBytes=e;}/** * Returns the total number of bytes transferred. */getTransferredBytes(){return this.segmentOffset+this.receivedBytes;}/** * Returns true if the download is complete. */isDone(){return this.getTransferredBytes()===this.contentLength;}/** * Prints the current download stats. Once the download completes, this will print one * last line and then stop. */display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),r=Date.now()-this.startTime,i=(e/1048576/(r/1e3)).toFixed(1);o.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0);}/** * Returns a function used to handle TransferProgressEvents. */onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes);};}/** * Starts the timer that displays the stats. * * @param delayInMs the delay between each write */startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e));};this.timeoutHandle=setTimeout(t,e);}/** * Stops the timer that displays the stats. As this typically indicates the download * is complete, this will display one last line, unless the last line has already * been written. */stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display();}}/** * Download the cache using the Actions toolkit http-client * * @param archiveLocation the URL for the cache * @param archivePath the local path where the cache is saved */function y(e,t){return n(this,void 0,void 0,function*(){let r=l.createWriteStream(t),i=new s.HttpClient("actions/cache"),a=yield(0,x.retryHttpClientResponse)("downloadCache",()=>n(this,void 0,void 0,function*(){return i.get(e);}));// Abort download if no traffic received over the socket. a.message.socket.setTimeout(h.SocketTimeout,()=>{a.message.destroy(),o.debug(`Aborting download, socket timed out after ${h.SocketTimeout} ms`);}),yield g(a,r);// Validate download size. let u=a.message.headers["content-length"];if(u){let e=parseInt(u),r=m.getArchiveFileSizeInBytes(t);if(r!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${r}`);}else o.debug("Unable to validate download, no Content-Length header");});}/** * Download the cache using the Actions toolkit http-client concurrently * * @param archiveLocation the URL for the cache * @param archivePath the local path where the cache is saved */function b(e,t,r){var i;return n(this,void 0,void 0,function*(){let a=yield l.promises.open(t,"w"),o=new s.HttpClient("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let t;let s=yield(0,x.retryHttpClientResponse)("downloadCacheMetadata",()=>n(this,void 0,void 0,function*(){return yield o.request("HEAD",e,null,{});})),u=s.message.headers["content-length"];if(null==u)throw Error("Content-Length not found on blob response");let c=parseInt(u);if(Number.isNaN(c))throw Error(`Could not interpret Content-Length: ${c}`);let l=[],p=4194304;for(let t=0;tn(this,void 0,void 0,function*(){return yield v(o,e,t,r);})});}// reverse to use .pop instead of .shift l.reverse();let d=0,m=0,h=new D(c);h.startDisplayTimer();let f=h.onProgress(),g=[],y=()=>n(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(g));yield a.write(e.buffer,0,e.count,e.offset),d--,delete g[e.offset],m+=e.count,f({loadedBytes:m});});for(;t=l.pop();)g[t.offset]=t.promiseGetter(),++d>=(null!==(i=r.downloadConcurrency)&&void 0!==i?i:10)&&(yield y());for(;d>0;)yield y();}finally{o.dispose(),yield a.close();}});}function v(e,t,r,i){return n(this,void 0,void 0,function*(){let a=5,n=0;for(;;)try{let a=3e4,n=yield A(a,C(e,t,r,i));if("string"==typeof n)throw Error("downloadSegmentRetry failed due to timeout");return n;}catch(e){if(n>=a)throw e;n++;}});}function C(e,t,r,i){return n(this,void 0,void 0,function*(){let a=yield(0,x.retryHttpClientResponse)("downloadCachePart",()=>n(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${r}-${r+i-1}`});}));if(!a.readBodyBuffer)throw Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:i,buffer:yield a.readBodyBuffer()};});}/** * Download the cache using the Azure Storage SDK. Only call this method if the * URL points to an Azure Storage endpoint. * * @param archiveLocation the URL for the cache * @param archivePath the local path where the cache is saved * @param options the download options with the defaults set */function E(e,t,r){var i;return n(this,void 0,void 0,function*(){let a=new u.BlockBlobClient(e,void 0,{retryOptions:{// Override the timeout used when downloading each 4 MB chunk // The default is 2 min / MB, which is way too slow tryTimeoutInMs:r.timeoutInMs}}),n=yield a.getProperties(),s=null!==(i=n.contentLength)&&void 0!==i?i:-1;if(s<0)// We should never hit this condition, but just in case fall back to downloading the // file as one large stream o.debug("Unable to determine content length, downloading file with http-client..."),yield y(e,t);else{// Use downloadToBuffer for faster downloads, since internally it splits the // file into 4 MB chunks which can then be parallelized and retried independently // // If the file exceeds the buffer maximum length (~1 GB on 32-bit systems and ~2 GB // on 64-bit systems), split the download into multiple segments // ~2 GB = 2147483647, beyond this, we start getting out of range error. So, capping it accordingly. // Updated segment size to 128MB = 134217728 bytes, to complete a segment faster and fail fast let e=Math.min(134217728,c.constants.MAX_LENGTH),i=new D(s),n=l.openSync(t,"w");try{i.startDisplayTimer();let t=new f.AbortController(),o=t.signal;for(;!i.isDone();){let u=i.segmentOffset+i.segmentSize,c=Math.min(e,s-u);i.nextSegment(c);let p=yield A(r.segmentTimeoutInMs||36e5,a.downloadToBuffer(u,c,{abortSignal:o,concurrency:r.downloadConcurrency,onProgress:i.onProgress()}));if("timeout"===p)throw t.abort(),Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(p)&&l.writeFileSync(n,p);}}finally{i.stopDisplayTimer(),l.closeSync(n);}}});}e.exports.DownloadProgress=D,e.exports.downloadCacheHttpClient=y,e.exports.downloadCacheHttpClientConcurrent=b,e.exports.downloadCacheStorageSDK=E;let A=(e,t)=>n(void 0,void 0,void 0,function*(){let r;let i=new Promise(t=>{r=setTimeout(()=>t("timeout"),e);});return Promise.race([t,i]).then(e=>(clearTimeout(r),e));});}),parcelRequire.register("i0GGG",function(e,t){$parcel$export(e.exports,"BlockBlobClient",()=>R);var r=parcelRequire("9uR57"),i=parcelRequire("lrZDM"),a=parcelRequire("4PgmQ"),n=parcelRequire("1Vc6S"),o=parcelRequire("18oFr"),s=parcelRequire("8sP3n"),u=parcelRequire("2hiFM"),c=parcelRequire("3PTyM"),l=parcelRequire("fJtif"),p=parcelRequire("lncUR"),d=parcelRequire("cLpTG"),m=parcelRequire("4F713"),h=parcelRequire("arn1t"),x=parcelRequire("akPaM"),f=parcelRequire("fkxlr"),g=parcelRequire("aP5Z2"),D=parcelRequire("cayn8"),y=parcelRequire("gYUwj"),b=parcelRequire("2v8Hg"),v=parcelRequire("8PMUt"),C=parcelRequire("fqjk5"),E=parcelRequire("iokdY"),A=parcelRequire("bpW3y"),S=parcelRequire("5MFjo"),B=parcelRequire("gXPSw"),N=parcelRequire("e7JkV"),F=parcelRequire("1kLfv"),w=parcelRequire("1lqbk"),P=parcelRequire("3f6jw");class T extends C.StorageClient{constructor(e,t,r,/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/o){let s,u;if(o=o||{},(0,y.isPipelineLike)(t))// (url: string, pipeline: Pipeline) u=e,s=t;else if(i.isNode&&t instanceof d.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,a.isTokenCredential)(t))// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) u=e,o=r,s=(0,y.newPipeline)(t,o);else if(t||"string"==typeof t){if(t&&"string"==typeof t&&r&&"string"==typeof r){// (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions) let a=t,c=r,l=(0,N.extractConnectionStringParts)(e);if("AccountConnString"===l.kind){if(i.isNode){let e=new d.StorageSharedKeyCredential(l.accountName,l.accountKey);u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c)),o.proxyOptions||(o.proxyOptions=(0,n.getDefaultProxySettings)(l.proxyUri)),s=(0,y.newPipeline)(e,o);}else throw Error("Account connection string is only supported in Node.js environment");}else if("SASConnString"===l.kind)u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=(0,y.newPipeline)(new p.AnonymousCredential(),o);else throw Error("Connection string must be either an Account connection string or a SAS connection string");}else throw Error("Expecting non-empty strings for containerName and blobName parameters");}else// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) // The second parameter is undefined. Use anonymous credential. u=e,r&&"string"!=typeof r&&(o=r),s=(0,y.newPipeline)(new p.AnonymousCredential(),o);super(u,s),({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl()),this.blobContext=new m.Blob(this.storageClientContext),this._snapshot=(0,N.getURLParameter)(this.url,S.URLConstants.Parameters.SNAPSHOT),this._versionId=(0,N.getURLParameter)(this.url,S.URLConstants.Parameters.VERSIONID);}/** * The name of the blob. */get name(){return this._name;}/** * The name of the storage container the blob is associated with. */get containerName(){return this._containerName;}/** * Creates a new BlobClient object identical to the source but with the specified snapshot timestamp. * Provide "" will remove the snapshot and return a Client to the base blob. * * @param snapshot - The snapshot timestamp. * @returns A new BlobClient object identical to the source but with the specified snapshot timestamp */withSnapshot(e){return new T((0,N.setURLParameter)(this.url,S.URLConstants.Parameters.SNAPSHOT,0===e.length?void 0:e),this.pipeline);}/** * Creates a new BlobClient object pointing to a version of this blob. * Provide "" will remove the versionId and return a Client to the base blob. * * @param versionId - The versionId. * @returns A new BlobClient object pointing to the version of this blob. */withVersion(e){return new T((0,N.setURLParameter)(this.url,S.URLConstants.Parameters.VERSIONID,0===e.length?void 0:e),this.pipeline);}/** * Creates a AppendBlobClient object. * */getAppendBlobClient(){return new O(this.url,this.pipeline);}/** * Creates a BlockBlobClient object. * */getBlockBlobClient(){return new R(this.url,this.pipeline);}/** * Creates a PageBlobClient object. * */getPageBlobClient(){return new I(this.url,this.pipeline);}/** * Reads or downloads a blob from the system, including its metadata and properties. * You can also call Get Blob to read a snapshot. * * * In Node.js, data returns in a Readable stream readableStreamBody * * In browsers, data returns in a promise blobBody * * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob * * @param offset - From which position of the blob to download, greater than or equal to 0 * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined * @param options - Optional options to Blob Download operation. * * * Example usage (Node.js): * * ```js * // Download and convert a blob to a string * const downloadBlockBlobResponse = await blobClient.download(); * const downloaded = await streamToBuffer(downloadBlockBlobResponse.readableStreamBody); * console.log("Downloaded blob content:", downloaded.toString()); * * async function streamToBuffer(readableStream) { * return new Promise((resolve, reject) => { * const chunks = []; * readableStream.on("data", (data) => { * chunks.push(data instanceof Buffer ? data : Buffer.from(data)); * }); * readableStream.on("end", () => { * resolve(Buffer.concat(chunks)); * }); * readableStream.on("error", reject); * }); * } * ``` * * Example usage (browser): * * ```js * // Download and convert a blob to a string * const downloadBlockBlobResponse = await blobClient.download(); * const downloaded = await blobToString(await downloadBlockBlobResponse.blobBody); * console.log( * "Downloaded blob content", * downloaded * ); * * async function blobToString(blob: Blob): Promise { * const fileReader = new FileReader(); * return new Promise((resolve, reject) => { * fileReader.onloadend = (ev: any) => { * resolve(ev.target!.result); * }; * fileReader.onerror = reject; * fileReader.readAsText(blob); * }); * } * ``` */async download(e=0,t,r={}){var a;r.conditions=r.conditions||{},r.conditions=r.conditions||{},(0,g.ensureCpkIfSpecified)(r.customerProvidedKey,this.isHttps);let{span:n,updatedOptions:o}=(0,B.createSpan)("BlobClient-download",r);try{let n=await this.blobContext.download(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(a=r.conditions)||void 0===a?void 0:a.tagConditions}),requestOptions:{onDownloadProgress:i.isNode?void 0:r.onProgress},range:0!==e||t?(0,v.rangeToString)({offset:e,count:t}):void 0,rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey},(0,B.convertTracingToRequestOptionsBase)(o))),s=Object.assign(Object.assign({},n),{_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:(0,N.parseObjectReplicationRecord)(n.objectReplicationRules)});// Return browser response immediately if(!i.isNode)return s;if((void 0===r.maxRetryRequests||r.maxRetryRequests<0)&&(r.maxRetryRequests=S.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS),void 0===n.contentLength)throw RangeError("File download response doesn't contain valid content length header");if(!n.etag)throw RangeError("File download response doesn't contain valid etag header");return new c.BlobDownloadResponse(s,async t=>{var i;let a={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||n.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:null===(i=r.conditions)||void 0===i?void 0:i.tagConditions},range:(0,v.rangeToString)({count:e+n.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};// Debug purpose only // console.log( // `Read from internal stream, range: ${ // updatedOptions.range // }, options: ${JSON.stringify(updatedOptions)}` // ); return(await this.blobContext.download(Object.assign({abortSignal:r.abortSignal},a))).readableStreamBody;},e,n.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress});}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Returns true if the Azure blob resource represented by this client exists; false otherwise. * * NOTE: use this function with care since an existing blob might be deleted by other clients or * applications. Vice versa new blobs might be added by other clients or applications after this * function completes. * * @param options - options to Exists operation. */async exists(e={}){let{span:t,updatedOptions:r}=(0,B.createSpan)("BlobClient-exists",e);try{return(0,g.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0;}catch(e){if(404===e.statusCode)return!1;if(409===e.statusCode&&(e.details.errorCode===S.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===S.BlobDoesNotUseCustomerSpecifiedEncryption))return!0;throw t.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{t.end();}}/** * Returns all user-defined metadata, standard HTTP properties, and system properties * for the blob. It does not return the content of the blob. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-properties * * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if * they originally contained uppercase characters. This differs from the metadata keys returned by * the methods of {@link ContainerClient} that list blobs using the `includeMetadata` option, which * will retain their original casing. * * @param options - Optional options to Get Properties operation. */async getProperties(e={}){var t;let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-getProperties",e);try{e.conditions=e.conditions||{},(0,g.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);let r=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},(0,B.convertTracingToRequestOptionsBase)(i)));return Object.assign(Object.assign({},r),{_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:(0,N.parseObjectReplicationRecord)(r.objectReplicationRules)});}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * Marks the specified blob or snapshot for deletion. The blob is later deleted * during garbage collection. Note that in order to delete a blob, you must delete * all of its snapshots. You can delete both at the same time with the Delete * Blob operation. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob * * @param options - Optional options to Blob Delete operation. */async delete(e={}){var t;let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(i)));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * Marks the specified blob or snapshot for deletion if it exists. The blob is later deleted * during garbage collection. Note that in order to delete a blob, you must delete * all of its snapshots. You can delete both at the same time with the Delete * Blob operation. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob * * @param options - Optional options to Blob Delete operation. */async deleteIfExists(e={}){var t,r;let{span:i,updatedOptions:a}=(0,B.createSpan)("BlobClient-deleteIfExists",e);try{let e=await this.delete(a);return Object.assign(Object.assign({succeeded:!0},e),{_response:e._response});}catch(e){if((null===(t=e.details)||void 0===t?void 0:t.errorCode)==="BlobNotFound")return i.setStatus({code:u.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."}),Object.assign(Object.assign({succeeded:!1},null===(r=e.response)||void 0===r?void 0:r.parsedHeaders),{_response:e.response});throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * Restores the contents and metadata of soft deleted blob and any associated * soft deleted snapshots. Undelete Blob is supported only on version 2017-07-29 * or later. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/undelete-blob * * @param options - Optional options to Blob Undelete operation. */async undelete(e={}){let{span:t,updatedOptions:r}=(0,B.createSpan)("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},(0,B.convertTracingToRequestOptionsBase)(r)));}catch(e){throw t.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{t.end();}}/** * Sets system properties on the blob. * * If no value provided, or no value provided for the specified blob HTTP headers, * these blob HTTP headers without a value will be cleared. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties * * @param blobHTTPHeaders - If no value provided, or no value provided for * the specified blob HTTP headers, these blob HTTP * headers without a value will be cleared. * A common header to set is `blobContentType` * enabling the browser to provide functionality * based on file type. * @param options - Optional options to Blob Set HTTP Headers operation. */async setHTTPHeaders(e,t={}){var r;let{span:i,updatedOptions:a}=(0,B.createSpan)("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{return(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps),await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(a)));}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * Sets user-defined metadata for the specified blob as one or more name-value pairs. * * If no option provided, or no metadata defined in the parameter, the blob * metadata will be removed. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata * * @param metadata - Replace existing metadata with this value. * If no value provided the existing metadata will be removed. * @param options - Optional options to Set Metadata operation. */async setMetadata(e,t={}){var r;let{span:i,updatedOptions:a}=(0,B.createSpan)("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{return(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps),await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(a)));}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * Sets tags on the underlying blob. * A blob can have up to 10 tags. Tag keys must be between 1 and 128 characters. Tag values must be between 0 and 256 characters. * Valid tag key and value characters include lower and upper case letters, digits (0-9), * space (' '), plus ('+'), minus ('-'), period ('.'), foward slash ('/'), colon (':'), equals ('='), and underscore ('_'). * * @param tags - * @param options - */async setTags(e,t={}){var r;let{span:i,updatedOptions:a}=(0,B.createSpan)("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(a)),{tags:(0,N.toBlobTags)(e)}));}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * Gets the tags associated with the underlying blob. * * @param options - */async getTags(e={}){var t;let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-getTags",e);try{let r=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(i))),a=Object.assign(Object.assign({},r),{_response:r._response,tags:(0,N.toTags)({blobTagSet:r.blobTagSet})||{}});return a;}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * Get a {@link BlobLeaseClient} that manages leases on the blob. * * @param proposeLeaseId - Initial proposed lease Id. * @returns A new BlobLeaseClient object for managing leases on the blob. */getBlobLeaseClient(e){return new P.BlobLeaseClient(this,e);}/** * Creates a read-only snapshot of a blob. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/snapshot-blob * * @param options - Optional options to the Blob Create Snapshot operation. */async createSnapshot(e={}){var t;let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{return(0,g.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps),await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(i)));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * Asynchronously copies a blob to a destination within the storage account. * This method returns a long running operation poller that allows you to wait * indefinitely until the copy is completed. * You can also cancel a copy before it is completed by calling `cancelOperation` on the poller. * Note that the onProgress callback will not be invoked if the operation completes in the first * request, and attempting to cancel a completed copy will result in an error being thrown. * * In version 2012-02-12 and later, the source for a Copy Blob operation can be * a committed blob in any Azure storage account. * Beginning with version 2015-02-21, the source for a Copy Blob operation can be * an Azure file in any Azure storage account. * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob * operation to copy from another storage account. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob * * Example using automatic polling: * * ```js * const copyPoller = await blobClient.beginCopyFromURL('url'); * const result = await copyPoller.pollUntilDone(); * ``` * * Example using manual polling: * * ```js * const copyPoller = await blobClient.beginCopyFromURL('url'); * while (!poller.isDone()) { * await poller.poll(); * } * const result = copyPoller.getResult(); * ``` * * Example using progress updates: * * ```js * const copyPoller = await blobClient.beginCopyFromURL('url', { * onProgress(state) { * console.log(`Progress: ${state.copyProgress}`); * } * }); * const result = await copyPoller.pollUntilDone(); * ``` * * Example using a changing polling interval (default 15 seconds): * * ```js * const copyPoller = await blobClient.beginCopyFromURL('url', { * intervalInMs: 1000 // poll blob every 1 second for copy progress * }); * const result = await copyPoller.pollUntilDone(); * ``` * * Example using copy cancellation: * * ```js * const copyPoller = await blobClient.beginCopyFromURL('url'); * // cancel operation after starting it. * try { * await copyPoller.cancelOperation(); * // calls to get the result now throw PollerCancelledError * await copyPoller.getResult(); * } catch (err) { * if (err.name === 'PollerCancelledError') { * console.log('The copy was cancelled.'); * } * } * ``` * * @param copySource - url to the source Azure Blob/File. * @param options - Optional options to the Blob Start Copy From URL operation. */async beginCopyFromURL(e,t={}){let r={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},i=new b.BlobBeginCopyFromUrlPoller({blobClient:r,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return(// Trigger the startCopyFromURL call by calling poll. // Any errors from this method should be surfaced to the user. await i.poll(),i);}/** * Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero * length and full metadata. Version 2012-02-12 and newer. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob * * @param copyId - Id of the Copy From URL operation. * @param options - Optional options to the Blob Abort Copy From URL operation. */async abortCopyFromURL(e,t={}){let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},(0,B.convertTracingToRequestOptionsBase)(i)));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * The synchronous Copy From URL operation copies a blob or an internet resource to a new blob. It will not * return a response until the copy is complete. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url * * @param copySource - The source URL to copy from, Shared Access Signature(SAS) maybe needed for authentication * @param options - */async syncCopyFromURL(e,t={}){var r,i,a;let{span:n,updatedOptions:o}=(0,B.createSpan)("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:(0,N.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,g.toAccessTier)(t.tier),blobTagsString:(0,N.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.expiriesOn,immutabilityPolicyMode:null===(a=t.immutabilityPolicy)||void 0===a?void 0:a.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Sets the tier on a blob. The operation is allowed on a page blob in a premium * storage account and on a block blob in a blob storage account (locally redundant * storage only). A premium page blob's tier determines the allowed size, IOPS, * and bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive * storage type. This operation does not update the blob's ETag. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-tier * * @param tier - The tier to be set on the blob. Valid values are Hot, Cool, or Archive. * @param options - Optional options to the Blob Set Tier operation. */async setAccessTier(e,t={}){var r;let{span:i,updatedOptions:a}=(0,B.createSpan)("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier((0,g.toAccessTier)(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),rehydratePriority:t.rehydratePriority},(0,B.convertTracingToRequestOptionsBase)(a)));}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}async downloadToBuffer(e,t,r,i={}){let a;let n=0,o=0,s=i;e instanceof Buffer?(a=e,n=t||0,o="number"==typeof r?r:0):(n="number"==typeof e?e:0,o="number"==typeof t?t:0,s=r||{});let{span:c,updatedOptions:l}=(0,B.createSpan)("BlobClient-downloadToBuffer",s);try{if(s.blockSize||(s.blockSize=0),s.blockSize<0)throw RangeError("blockSize option must be >= 0");if(0===s.blockSize&&(s.blockSize=S.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES),n<0)throw RangeError("offset option must be >= 0");if(o&&o<=0)throw RangeError("count option must be greater than 0");// Customer doesn't specify length, get it if(s.conditions||(s.conditions={}),!o){let e=await this.getProperties(Object.assign(Object.assign({},s),{tracingOptions:Object.assign(Object.assign({},s.tracingOptions),(0,B.convertTracingToRequestOptionsBase)(l))}));if((o=e.contentLength-n)<0)throw RangeError(`offset ${n} shouldn't be larger than blob size ${e.contentLength}`);}// Allocate the buffer of size = count if the buffer is not provided if(!a)try{a=Buffer.alloc(o);}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${e.message}`);}if(a.length{// Exclusive chunk end position let t=n+o;r+s.blockSize /containername/blob let i=r.getPath().match("/([^/]*)(/(.*))?");e=i[1],t=i[3];}else if((0,N.isIpEndpointStyle)(r)){// IPv4/IPv6 address hosts... Example - http://192.0.0.10:10001/devstoreaccount1/containername/blob // Single word domain without a [dot] in the endpoint... Example - http://localhost:10001/devstoreaccount1/containername/blob // .getPath() -> /devstoreaccount1/containername/blob let i=r.getPath().match("/([^/]*)/([^/]*)(/(.*))?");e=i[2],t=i[4];}else{// "https://customdomain.com/containername/blob". // .getPath() -> /containername/blob let i=r.getPath().match("/([^/]*)(/(.*))?");e=i[1],t=i[3];}if(// decode the encoded blobName, containerName - to get all the special characters that might be present in them e=decodeURIComponent(e),// Azure Storage Server will replace "\" with "/" in the blob names // doing the same in the SDK side so that the user doesn't have to replace "\" instances in the blobName t=(t=decodeURIComponent(t)).replace(/\\/g,"/"),!e)throw Error("Provided containerName is invalid.");return{blobName:t,containerName:e};}catch(e){throw Error("Unable to extract blobName and containerName with provided information.");}}/** * Asynchronously copies a blob to a destination within the storage account. * In version 2012-02-12 and later, the source for a Copy Blob operation can be * a committed blob in any Azure storage account. * Beginning with version 2015-02-21, the source for a Copy Blob operation can be * an Azure file in any Azure storage account. * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob * operation to copy from another storage account. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob * * @param copySource - url to the source Azure Blob/File. * @param options - Optional options to the Blob Start Copy From URL operation. */async startCopyFromURL(e,t={}){var r,i,a;let{span:n,updatedOptions:o}=(0,B.createSpan)("BlobClient-startCopyFromURL",t);t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.startCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.expiriesOn,immutabilityPolicyMode:null===(a=t.immutabilityPolicy)||void 0===a?void 0:a.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:(0,g.toAccessTier)(t.tier),blobTagsString:(0,N.toBlobTagsString)(t.tags),sealBlob:t.sealBlob},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Only available for BlobClient constructed with a shared key credential. * * Generates a Blob Service Shared Access Signature (SAS) URI based on the client properties * and parameters passed in. The SAS is signed by the shared key credential of the client. * * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas * * @param options - Optional parameters. * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token. */generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof d.StorageSharedKeyCredential))throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let r=(0,w.generateBlobSASQueryParameters)(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).toString();t((0,N.appendToURLQuery)(this.url,r));});}/** * Delete the immutablility policy on the blob. * * @param options - Optional options to delete immutability policy on the blob. */async deleteImmutabilityPolicy(e){let{span:t,updatedOptions:r}=(0,B.createSpan)("BlobClient-deleteImmutabilityPolicy",e);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:null==e?void 0:e.abortSignal},(0,B.convertTracingToRequestOptionsBase)(r)));}catch(e){throw t.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{t.end();}}/** * Set immutablility policy on the blob. * * @param options - Optional options to set immutability policy on the blob. */async setImmutabilityPolicy(e,t){let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-setImmutabilityPolicy",t);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:null==t?void 0:t.abortSignal,immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,modifiedAccessConditions:null==t?void 0:t.modifiedAccessCondition},(0,B.convertTracingToRequestOptionsBase)(i)));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * Set legal hold on the blob. * * @param options - Optional options to set legal hold on the blob. */async setLegalHold(e,t){let{span:r,updatedOptions:i}=(0,B.createSpan)("BlobClient-setLegalHold",t);try{return await this.blobContext.setLegalHold(e,Object.assign({abortSignal:null==t?void 0:t.abortSignal},(0,B.convertTracingToRequestOptionsBase)(i)));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}}class O extends T{constructor(e,t,r,/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/o){// In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead. // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options); let s,u;if(o=o||{},(0,y.isPipelineLike)(t))// (url: string, pipeline: Pipeline) u=e,s=t;else if(i.isNode&&t instanceof d.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,a.isTokenCredential)(t))// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) url = urlOrConnectionString; u=e,o=r,s=(0,y.newPipeline)(t,o);else if(t||"string"==typeof t){if(t&&"string"==typeof t&&r&&"string"==typeof r){// (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions) let a=t,c=r,l=(0,N.extractConnectionStringParts)(e);if("AccountConnString"===l.kind){if(i.isNode){let e=new d.StorageSharedKeyCredential(l.accountName,l.accountKey);u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c)),o.proxyOptions||(o.proxyOptions=(0,n.getDefaultProxySettings)(l.proxyUri)),s=(0,y.newPipeline)(e,o);}else throw Error("Account connection string is only supported in Node.js environment");}else if("SASConnString"===l.kind)u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=(0,y.newPipeline)(new p.AnonymousCredential(),o);else throw Error("Connection string must be either an Account connection string or a SAS connection string");}else throw Error("Expecting non-empty strings for containerName and blobName parameters");}else// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) u=e,// The second parameter is undefined. Use anonymous credential. s=(0,y.newPipeline)(new p.AnonymousCredential(),o);super(u,s),this.appendBlobContext=new h.AppendBlob(this.storageClientContext);}/** * Creates a new AppendBlobClient object identical to the source but with the * specified snapshot timestamp. * Provide "" will remove the snapshot and return a Client to the base blob. * * @param snapshot - The snapshot timestamp. * @returns A new AppendBlobClient object identical to the source but with the specified snapshot timestamp. */withSnapshot(e){return new O((0,N.setURLParameter)(this.url,S.URLConstants.Parameters.SNAPSHOT,0===e.length?void 0:e),this.pipeline);}/** * Creates a 0-length append blob. Call AppendBlock to append data to an append blob. * @see https://docs.microsoft.com/rest/api/storageservices/put-blob * * @param options - Options to the Append Block Create operation. * * * Example usage: * * ```js * const appendBlobClient = containerClient.getAppendBlobClient(""); * await appendBlobClient.create(); * ``` */async create(e={}){var t,r,i;let{span:a,updatedOptions:n}=(0,B.createSpan)("AppendBlobClient-create",e);e.conditions=e.conditions||{};try{return(0,g.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps),await this.appendBlobContext.create(0,Object.assign({abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:null===(r=e.immutabilityPolicy)||void 0===r?void 0:r.expiriesOn,immutabilityPolicyMode:null===(i=e.immutabilityPolicy)||void 0===i?void 0:i.policyMode,legalHold:e.legalHold,blobTagsString:(0,N.toBlobTagsString)(e.tags)},(0,B.convertTracingToRequestOptionsBase)(n)));}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * Creates a 0-length append blob. Call AppendBlock to append data to an append blob. * If the blob with the same name already exists, the content of the existing blob will remain unchanged. * @see https://docs.microsoft.com/rest/api/storageservices/put-blob * * @param options - */async createIfNotExists(e={}){var t,r;let{span:i,updatedOptions:a}=(0,B.createSpan)("AppendBlobClient-createIfNotExists",e),n={ifNoneMatch:S.ETagAny};try{let e=await this.create(Object.assign(Object.assign({},a),{conditions:n}));return Object.assign(Object.assign({succeeded:!0},e),{_response:e._response});}catch(e){if((null===(t=e.details)||void 0===t?void 0:t.errorCode)==="BlobAlreadyExists")return i.setStatus({code:u.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."}),Object.assign(Object.assign({succeeded:!1},null===(r=e.response)||void 0===r?void 0:r.parsedHeaders),{_response:e.response});throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * Seals the append blob, making it read only. * * @param options - */async seal(e={}){var t;let{span:r,updatedOptions:i}=(0,B.createSpan)("AppendBlobClient-seal",e);e.conditions=e.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(i)));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * Commits a new block of data to the end of the existing append blob. * @see https://docs.microsoft.com/rest/api/storageservices/append-block * * @param body - Data to be appended. * @param contentLength - Length of the body in bytes. * @param options - Options to the Append Block operation. * * * Example usage: * * ```js * const content = "Hello World!"; * * // Create a new append blob and append data to the blob. * const newAppendBlobClient = containerClient.getAppendBlobClient(""); * await newAppendBlobClient.create(); * await newAppendBlobClient.appendBlock(content, content.length); * * // Append data to an existing append blob. * const existingAppendBlobClient = containerClient.getAppendBlobClient(""); * await existingAppendBlobClient.appendBlock(content, content.length); * ``` */async appendBlock(e,t,r={}){var i;let{span:a,updatedOptions:n}=(0,B.createSpan)("AppendBlobClient-appendBlock",r);r.conditions=r.conditions||{};try{return(0,g.ensureCpkIfSpecified)(r.customerProvidedKey,this.isHttps),await this.appendBlobContext.appendBlock(t,e,Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(i=r.conditions)||void 0===i?void 0:i.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(n)));}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * The Append Block operation commits a new block of data to the end of an existing append blob * where the contents are read from a source url. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/append-block-from-url * * @param sourceURL - * The url to the blob that will be the source of the copy. A source blob in the same storage account can * be authenticated via Shared Key. However, if the source is a blob in another account, the source blob * must either be public or must be authenticated via a shared access signature. If the source blob is * public, no authentication is required to perform the operation. * @param sourceOffset - Offset in source to be appended * @param count - Number of bytes to be appended as a block * @param options - */async appendBlockFromURL(e,t,r,i={}){var a;let{span:n,updatedOptions:o}=(0,B.createSpan)("AppendBlobClient-appendBlockFromURL",i);i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{};try{return(0,g.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps),await this.appendBlobContext.appendBlockFromUrl(e,0,Object.assign({abortSignal:i.abortSignal,sourceRange:(0,v.rangeToString)({offset:t,count:r}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:null===(a=i.conditions)||void 0===a?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:(0,N.httpAuthorizationToString)(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}}class R extends T{constructor(e,t,r,/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/o){// In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead. // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options); let s,u;if(o=o||{},(0,y.isPipelineLike)(t))// (url: string, pipeline: Pipeline) u=e,s=t;else if(i.isNode&&t instanceof d.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,a.isTokenCredential)(t))// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) u=e,o=r,s=(0,y.newPipeline)(t,o);else if(t||"string"==typeof t){if(t&&"string"==typeof t&&r&&"string"==typeof r){// (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions) let a=t,c=r,l=(0,N.extractConnectionStringParts)(e);if("AccountConnString"===l.kind){if(i.isNode){let e=new d.StorageSharedKeyCredential(l.accountName,l.accountKey);u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c)),o.proxyOptions||(o.proxyOptions=(0,n.getDefaultProxySettings)(l.proxyUri)),s=(0,y.newPipeline)(e,o);}else throw Error("Account connection string is only supported in Node.js environment");}else if("SASConnString"===l.kind)u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=(0,y.newPipeline)(new p.AnonymousCredential(),o);else throw Error("Connection string must be either an Account connection string or a SAS connection string");}else throw Error("Expecting non-empty strings for containerName and blobName parameters");}else// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) // The second parameter is undefined. Use anonymous credential. u=e,r&&"string"!=typeof r&&(o=r),s=(0,y.newPipeline)(new p.AnonymousCredential(),o);super(u,s),this.blockBlobContext=new x.BlockBlob(this.storageClientContext),this._blobContext=new m.Blob(this.storageClientContext);}/** * Creates a new BlockBlobClient object identical to the source but with the * specified snapshot timestamp. * Provide "" will remove the snapshot and return a URL to the base blob. * * @param snapshot - The snapshot timestamp. * @returns A new BlockBlobClient object identical to the source but with the specified snapshot timestamp. */withSnapshot(e){return new R((0,N.setURLParameter)(this.url,S.URLConstants.Parameters.SNAPSHOT,0===e.length?void 0:e),this.pipeline);}/** * ONLY AVAILABLE IN NODE.JS RUNTIME. * * Quick query for a JSON or CSV formatted blob. * * Example usage (Node.js): * * ```js * // Query and convert a blob to a string * const queryBlockBlobResponse = await blockBlobClient.query("select * from BlobStorage"); * const downloaded = (await streamToBuffer(queryBlockBlobResponse.readableStreamBody)).toString(); * console.log("Query blob content:", downloaded); * * async function streamToBuffer(readableStream) { * return new Promise((resolve, reject) => { * const chunks = []; * readableStream.on("data", (data) => { * chunks.push(data instanceof Buffer ? data : Buffer.from(data)); * }); * readableStream.on("end", () => { * resolve(Buffer.concat(chunks)); * }); * readableStream.on("error", reject); * }); * } * ``` * * @param query - * @param options - */async query(e,t={}){var r;(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);let{span:a,updatedOptions:n}=(0,B.createSpan)("BlockBlobClient-query",t);try{if(!i.isNode)throw Error("This operation currently is only supported in Node.js.");(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);let a=await this._blobContext.query(Object.assign({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,N.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,N.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey},(0,B.convertTracingToRequestOptionsBase)(n)));return new l.BlobQueryResponse(a,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError});}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * Creates a new block blob, or updates the content of an existing block blob. * Updating an existing block blob overwrites any existing metadata on the blob. * Partial updates are not supported; the content of the existing blob is * overwritten with the new content. To perform a partial update of a block blob's, * use {@link stageBlock} and {@link commitBlockList}. * * This is a non-parallel uploading method, please use {@link uploadFile}, * {@link uploadStream} or {@link uploadBrowserData} for better performance * with concurrency uploading. * * @see https://docs.microsoft.com/rest/api/storageservices/put-blob * * @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function * which returns a new Readable stream whose offset is from data source beginning. * @param contentLength - Length of body in bytes. Use Buffer.byteLength() to calculate body length for a * string including non non-Base64/Hex-encoded characters. * @param options - Options to the Block Blob Upload operation. * @returns Response data for the Block Blob Upload operation. * * Example usage: * * ```js * const content = "Hello world!"; * const uploadBlobResponse = await blockBlobClient.upload(content, content.length); * ``` */async upload(e,t,r={}){var i,a,n;r.conditions=r.conditions||{};let{span:o,updatedOptions:s}=(0,B.createSpan)("BlockBlobClient-upload",r);try{return(0,g.ensureCpkIfSpecified)(r.customerProvidedKey,this.isHttps),await this.blockBlobContext.upload(t,e,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(i=r.conditions)||void 0===i?void 0:i.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:null===(a=r.immutabilityPolicy)||void 0===a?void 0:a.expiriesOn,immutabilityPolicyMode:null===(n=r.immutabilityPolicy)||void 0===n?void 0:n.policyMode,legalHold:r.legalHold,tier:(0,g.toAccessTier)(r.tier),blobTagsString:(0,N.toBlobTagsString)(r.tags)},(0,B.convertTracingToRequestOptionsBase)(s)));}catch(e){throw o.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{o.end();}}/** * Creates a new Block Blob where the contents of the blob are read from a given URL. * This API is supported beginning with the 2020-04-08 version. Partial updates * are not supported with Put Blob from URL; the content of an existing blob is overwritten with * the content of the new blob. To perform partial updates to a block blob’s contents using a * source URL, use {@link stageBlockFromURL} and {@link commitBlockList}. * * @param sourceURL - Specifies the URL of the blob. The value * may be a URL of up to 2 KB in length that specifies a blob. * The value should be URL-encoded as it would appear * in a request URI. The source blob must either be public * or must be authenticated via a shared access signature. * If the source blob is public, no authentication is required * to perform the operation. Here are some examples of source object URLs: * - https://myaccount.blob.core.windows.net/mycontainer/myblob * - https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot= * @param options - Optional parameters. */async syncUploadFromURL(e,t={}){var r,i,a,n,o;t.conditions=t.conditions||{};let{span:s,updatedOptions:c}=(0,B.createSpan)("BlockBlobClient-syncUploadFromURL",t);try{return(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps),await this.blockBlobContext.putBlobFromUrl(0,e,Object.assign(Object.assign(Object.assign({},t),{blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:t.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:null===(r=t.sourceConditions)||void 0===r?void 0:r.ifMatch,sourceIfModifiedSince:null===(i=t.sourceConditions)||void 0===i?void 0:i.ifModifiedSince,sourceIfNoneMatch:null===(a=t.sourceConditions)||void 0===a?void 0:a.ifNoneMatch,sourceIfUnmodifiedSince:null===(n=t.sourceConditions)||void 0===n?void 0:n.ifUnmodifiedSince,sourceIfTags:null===(o=t.sourceConditions)||void 0===o?void 0:o.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:(0,N.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,g.toAccessTier)(t.tier),blobTagsString:(0,N.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags}),(0,B.convertTracingToRequestOptionsBase)(c)));}catch(e){throw s.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{s.end();}}/** * Uploads the specified block to the block blob's "staging area" to be later * committed by a call to commitBlockList. * @see https://docs.microsoft.com/rest/api/storageservices/put-block * * @param blockId - A 64-byte value that is base64-encoded * @param body - Data to upload to the staging area. * @param contentLength - Number of bytes to upload. * @param options - Options to the Block Blob Stage Block operation. * @returns Response data for the Block Blob Stage Block operation. */async stageBlock(e,t,r,i={}){let{span:a,updatedOptions:n}=(0,B.createSpan)("BlockBlobClient-stageBlock",i);try{return(0,g.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps),await this.blockBlobContext.stageBlock(e,r,t,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(n)));}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * The Stage Block From URL operation creates a new block to be committed as part * of a blob where the contents are read from a URL. * This API is available starting in version 2018-03-28. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/put-block-from-url * * @param blockId - A 64-byte value that is base64-encoded * @param sourceURL - Specifies the URL of the blob. The value * may be a URL of up to 2 KB in length that specifies a blob. * The value should be URL-encoded as it would appear * in a request URI. The source blob must either be public * or must be authenticated via a shared access signature. * If the source blob is public, no authentication is required * to perform the operation. Here are some examples of source object URLs: * - https://myaccount.blob.core.windows.net/mycontainer/myblob * - https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot= * @param offset - From which position of the blob to download, greater than or equal to 0 * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined * @param options - Options to the Block Blob Stage Block From URL operation. * @returns Response data for the Block Blob Stage Block From URL operation. */async stageBlockFromURL(e,t,r=0,i,a={}){let{span:n,updatedOptions:o}=(0,B.createSpan)("BlockBlobClient-stageBlockFromURL",a);try{return(0,g.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps),await this.blockBlobContext.stageBlockFromURL(e,0,t,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,sourceRange:0!==r||i?(0,v.rangeToString)({offset:r,count:i}):void 0,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,copySourceAuthorization:(0,N.httpAuthorizationToString)(a.sourceAuthorization)},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Writes a blob by specifying the list of block IDs that make up the blob. * In order to be written as part of a blob, a block must have been successfully written * to the server in a prior {@link stageBlock} operation. You can call {@link commitBlockList} to * update a blob by uploading only those blocks that have changed, then committing the new and existing * blocks together. Any blocks not specified in the block list and permanently deleted. * @see https://docs.microsoft.com/rest/api/storageservices/put-block-list * * @param blocks - Array of 64-byte value that is base64-encoded * @param options - Options to the Block Blob Commit Block List operation. * @returns Response data for the Block Blob Commit Block List operation. */async commitBlockList(e,t={}){var r,i,a;t.conditions=t.conditions||{};let{span:n,updatedOptions:o}=(0,B.createSpan)("BlockBlobClient-commitBlockList",t);try{return(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps),await this.blockBlobContext.commitBlockList({latest:e},Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.expiriesOn,immutabilityPolicyMode:null===(a=t.immutabilityPolicy)||void 0===a?void 0:a.policyMode,legalHold:t.legalHold,tier:(0,g.toAccessTier)(t.tier),blobTagsString:(0,N.toBlobTagsString)(t.tags)},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Returns the list of blocks that have been uploaded as part of a block blob * using the specified block list filter. * @see https://docs.microsoft.com/rest/api/storageservices/get-block-list * * @param listType - Specifies whether to return the list of committed blocks, * the list of uncommitted blocks, or both lists together. * @param options - Options to the Block Blob Get Block List operation. * @returns Response data for the Block Blob Get Block List operation. */async getBlockList(e,t={}){var r;let{span:i,updatedOptions:a}=(0,B.createSpan)("BlockBlobClient-getBlockList",t);try{let i=await this.blockBlobContext.getBlockList(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(a)));return i.committedBlocks||(i.committedBlocks=[]),i.uncommittedBlocks||(i.uncommittedBlocks=[]),i;}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}// High level functions /** * Uploads a Buffer(Node.js)/Blob(browsers)/ArrayBuffer/ArrayBufferView object to a BlockBlob. * * When data length is no more than the specifiled {@link BlockBlobParallelUploadOptions.maxSingleShotSize} (default is * {@link BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}), this method will use 1 {@link upload} call to finish the upload. * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call {@link commitBlockList} * to commit the block list. * * A common {@link BlockBlobParallelUploadOptions.blobHTTPHeaders} option to set is * `blobContentType`, enabling the browser to provide * functionality based on file type. * * @param data - Buffer(Node.js), Blob, ArrayBuffer or ArrayBufferView * @param options - */async uploadData(e,t={}){let{span:r,updatedOptions:a}=(0,B.createSpan)("BlockBlobClient-uploadData",t);try{if(i.isNode){let t;return t=e instanceof Buffer?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength),this.uploadSeekableInternal((e,r)=>t.slice(e,e+r),t.byteLength,a);}{let t=new Blob([e]);return this.uploadSeekableInternal((e,r)=>t.slice(e,e+r),t.size,a);}}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * ONLY AVAILABLE IN BROWSERS. * * Uploads a browser Blob/File/ArrayBuffer/ArrayBufferView object to block blob. * * When buffer length lesser than or equal to 256MB, this method will use 1 upload call to finish the upload. * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call * {@link commitBlockList} to commit the block list. * * A common {@link BlockBlobParallelUploadOptions.blobHTTPHeaders} option to set is * `blobContentType`, enabling the browser to provide * functionality based on file type. * * @deprecated Use {@link uploadData} instead. * * @param browserData - Blob, File, ArrayBuffer or ArrayBufferView * @param options - Options to upload browser data. * @returns Response data for the Blob Upload operation. */async uploadBrowserData(e,t={}){let{span:r,updatedOptions:i}=(0,B.createSpan)("BlockBlobClient-uploadBrowserData",t);try{let t=new Blob([e]);return await this.uploadSeekableInternal((e,r)=>t.slice(e,e+r),t.size,i);}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * * Uploads data to block blob. Requires a bodyFactory as the data source, * which need to return a {@link HttpRequestBody} object with the offset and size provided. * * When data length is no more than the specified {@link BlockBlobParallelUploadOptions.maxSingleShotSize} (default is * {@link BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}), this method will use 1 {@link upload} call to finish the upload. * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call {@link commitBlockList} * to commit the block list. * * @param bodyFactory - * @param size - size of the data to upload. * @param options - Options to Upload to Block Blob operation. * @returns Response data for the Blob Upload operation. */async uploadSeekableInternal(e,t,r={}){if(r.blockSize||(r.blockSize=0),r.blockSize<0||r.blockSize>S.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES)throw RangeError(`blockSize option must be >= 0 and <= ${S.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`);if(0===r.maxSingleShotSize||r.maxSingleShotSize||(r.maxSingleShotSize=S.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES),r.maxSingleShotSize<0||r.maxSingleShotSize>S.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES)throw RangeError(`maxSingleShotSize option must be >= 0 and <= ${S.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`);if(0===r.blockSize){if(t>S.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*S.BLOCK_BLOB_MAX_BLOCKS)throw RangeError(`${t} is too larger to upload to a block blob.`);t>r.maxSingleShotSize&&(r.blockSize=Math.ceil(t/S.BLOCK_BLOB_MAX_BLOCKS),r.blockSizeS.BLOCK_BLOB_MAX_BLOCKS)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${S.BLOCK_BLOB_MAX_BLOCKS}`);let n=[],o=(0,s.generateUuid)(),u=0,c=new E.Batch(r.concurrency);for(let s=0;s{let c=(0,N.generateBlockID)(o,s),l=r.blockSize*s,p=s===i-1?t:l+r.blockSize,d=p-l;n.push(c),await this.stageBlock(c,e(l,d),d,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:a.tracingOptions}),// Update progress after block is successfully uploaded to server, in case of block trying // TODO: Hook with convenience layer progress event in finer level u+=d,r.onProgress&&r.onProgress({loadedBytes:u});});return await c.do(),this.commitBlockList(n,a);}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * ONLY AVAILABLE IN NODE.JS RUNTIME. * * Uploads a local file in blocks to a block blob. * * When file size lesser than or equal to 256MB, this method will use 1 upload call to finish the upload. * Otherwise, this method will call stageBlock to upload blocks, and finally call commitBlockList * to commit the block list. * * @param filePath - Full path of local file * @param options - Options to Upload to Block Blob operation. * @returns Response data for the Blob Upload operation. */async uploadFile(e,t={}){let{span:r,updatedOptions:i}=(0,B.createSpan)("BlockBlobClient-uploadFile",t);try{let r=(await(0,F.fsStat)(e)).size;return await this.uploadSeekableInternal((t,r)=>()=>(0,F.fsCreateReadStream)(e,{autoClose:!0,end:r?t+r-1:1/0,start:t}),r,Object.assign(Object.assign({},t),{tracingOptions:Object.assign(Object.assign({},t.tracingOptions),(0,B.convertTracingToRequestOptionsBase)(i))}));}catch(e){throw r.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{r.end();}}/** * ONLY AVAILABLE IN NODE.JS RUNTIME. * * Uploads a Node.js Readable stream into block blob. * * PERFORMANCE IMPROVEMENT TIPS: * * Input stream highWaterMark is better to set a same value with bufferSize * parameter, which will avoid Buffer.concat() operations. * * @param stream - Node.js Readable stream * @param bufferSize - Size of every buffer allocated, also the block size in the uploaded block blob. Default value is 8MB * @param maxConcurrency - Max concurrency indicates the max number of buffers that can be allocated, * positive correlation with max uploading concurrency. Default value is 5 * @param options - Options to Upload Stream to Block Blob operation. * @returns Response data for the Blob Upload operation. */async uploadStream(e,t=S.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,r=5,i={}){i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={});let{span:a,updatedOptions:n}=(0,B.createSpan)("BlockBlobClient-uploadStream",i);try{let a=0,o=(0,s.generateUuid)(),u=0,c=[],l=new A.BufferScheduler(e,t,r,async(e,t)=>{let r=(0,N.generateBlockID)(o,a);c.push(r),a++,await this.stageBlock(r,e,t,{conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:n.tracingOptions}),// Update progress after block is successfully uploaded to server, in case of block trying u+=t,i.onProgress&&i.onProgress({loadedBytes:u});},// reduce the possibility when a outgoing handler waits for stream data, in // this situation, outgoing handlers are blocked. // Outgoing queue shouldn't be empty. Math.ceil(r/4*3));return await l.do(),await this.commitBlockList(c,Object.assign(Object.assign({},i),{tracingOptions:Object.assign(Object.assign({},i.tracingOptions),(0,B.convertTracingToRequestOptionsBase)(n))}));}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}}class I extends T{constructor(e,t,r,/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/o){// In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead. // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options); let s,u;if(o=o||{},(0,y.isPipelineLike)(t))// (url: string, pipeline: Pipeline) u=e,s=t;else if(i.isNode&&t instanceof d.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,a.isTokenCredential)(t))// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) u=e,o=r,s=(0,y.newPipeline)(t,o);else if(t||"string"==typeof t){if(t&&"string"==typeof t&&r&&"string"==typeof r){// (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions) let a=t,c=r,l=(0,N.extractConnectionStringParts)(e);if("AccountConnString"===l.kind){if(i.isNode){let e=new d.StorageSharedKeyCredential(l.accountName,l.accountKey);u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c)),o.proxyOptions||(o.proxyOptions=(0,n.getDefaultProxySettings)(l.proxyUri)),s=(0,y.newPipeline)(e,o);}else throw Error("Account connection string is only supported in Node.js environment");}else if("SASConnString"===l.kind)u=(0,N.appendToURLPath)((0,N.appendToURLPath)(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=(0,y.newPipeline)(new p.AnonymousCredential(),o);else throw Error("Connection string must be either an Account connection string or a SAS connection string");}else throw Error("Expecting non-empty strings for containerName and blobName parameters");}else// (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) // The second parameter is undefined. Use anonymous credential. u=e,s=(0,y.newPipeline)(new p.AnonymousCredential(),o);super(u,s),this.pageBlobContext=new f.PageBlob(this.storageClientContext);}/** * Creates a new PageBlobClient object identical to the source but with the * specified snapshot timestamp. * Provide "" will remove the snapshot and return a Client to the base blob. * * @param snapshot - The snapshot timestamp. * @returns A new PageBlobClient object identical to the source but with the specified snapshot timestamp. */withSnapshot(e){return new I((0,N.setURLParameter)(this.url,S.URLConstants.Parameters.SNAPSHOT,0===e.length?void 0:e),this.pipeline);}/** * Creates a page blob of the specified length. Call uploadPages to upload data * data to a page blob. * @see https://docs.microsoft.com/rest/api/storageservices/put-blob * * @param size - size of the page blob. * @param options - Options to the Page Blob Create operation. * @returns Response data for the Page Blob Create operation. */async create(e,t={}){var r,i,a;t.conditions=t.conditions||{};let{span:n,updatedOptions:o}=(0,B.createSpan)("PageBlobClient-create",t);try{return(0,g.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps),await this.pageBlobContext.create(0,e,Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.expiriesOn,immutabilityPolicyMode:null===(a=t.immutabilityPolicy)||void 0===a?void 0:a.policyMode,legalHold:t.legalHold,tier:(0,g.toAccessTier)(t.tier),blobTagsString:(0,N.toBlobTagsString)(t.tags)},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Creates a page blob of the specified length. Call uploadPages to upload data * data to a page blob. If the blob with the same name already exists, the content * of the existing blob will remain unchanged. * @see https://docs.microsoft.com/rest/api/storageservices/put-blob * * @param size - size of the page blob. * @param options - */async createIfNotExists(e,t={}){var r,i;let{span:a,updatedOptions:n}=(0,B.createSpan)("PageBlobClient-createIfNotExists",t);try{let r={ifNoneMatch:S.ETagAny},i=await this.create(e,Object.assign(Object.assign({},t),{conditions:r,tracingOptions:n.tracingOptions}));return Object.assign(Object.assign({succeeded:!0},i),{_response:i._response});}catch(e){if((null===(r=e.details)||void 0===r?void 0:r.errorCode)==="BlobAlreadyExists")return a.setStatus({code:u.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."}),Object.assign(Object.assign({succeeded:!1},null===(i=e.response)||void 0===i?void 0:i.parsedHeaders),{_response:e.response});throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512. * @see https://docs.microsoft.com/rest/api/storageservices/put-page * * @param body - Data to upload * @param offset - Offset of destination page blob * @param count - Content length of the body, also number of bytes to be uploaded * @param options - Options to the Page Blob Upload Pages operation. * @returns Response data for the Page Blob Upload Pages operation. */async uploadPages(e,t,r,i={}){var a;i.conditions=i.conditions||{};let{span:n,updatedOptions:o}=(0,B.createSpan)("PageBlobClient-uploadPages",i);try{return(0,g.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps),await this.pageBlobContext.uploadPages(r,e,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:null===(a=i.conditions)||void 0===a?void 0:a.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},range:(0,v.rangeToString)({offset:t,count:r}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * The Upload Pages operation writes a range of pages to a page blob where the * contents are read from a URL. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/put-page-from-url * * @param sourceURL - Specify a URL to the copy source, Shared Access Signature(SAS) maybe needed for authentication * @param sourceOffset - The source offset to copy from. Pass 0 to copy from the beginning of source page blob * @param destOffset - Offset of destination page blob * @param count - Number of bytes to be uploaded from source page blob * @param options - */async uploadPagesFromURL(e,t,r,i,a={}){var n;a.conditions=a.conditions||{},a.sourceConditions=a.sourceConditions||{};let{span:o,updatedOptions:s}=(0,B.createSpan)("PageBlobClient-uploadPagesFromURL",a);try{return(0,g.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps),await this.pageBlobContext.uploadPagesFromURL(e,(0,v.rangeToString)({offset:t,count:i}),0,(0,v.rangeToString)({offset:r,count:i}),Object.assign({abortSignal:a.abortSignal,sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,sequenceNumberAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:null===(n=a.conditions)||void 0===n?void 0:n.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions.ifMatch,sourceIfModifiedSince:a.sourceConditions.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions.ifUnmodifiedSince},cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,copySourceAuthorization:(0,N.httpAuthorizationToString)(a.sourceAuthorization)},(0,B.convertTracingToRequestOptionsBase)(s)));}catch(e){throw o.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{o.end();}}/** * Frees the specified pages from the page blob. * @see https://docs.microsoft.com/rest/api/storageservices/put-page * * @param offset - Starting byte position of the pages to clear. * @param count - Number of bytes to clear. * @param options - Options to the Page Blob Clear Pages operation. * @returns Response data for the Page Blob Clear Pages operation. */async clearPages(e=0,t,r={}){var i;r.conditions=r.conditions||{};let{span:a,updatedOptions:n}=(0,B.createSpan)("PageBlobClient-clearPages",r);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(i=r.conditions)||void 0===i?void 0:i.tagConditions}),range:(0,v.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(n)));}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * Returns the list of valid page ranges for a page blob or snapshot of a page blob. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param options - Options to the Page Blob Get Ranges operation. * @returns Response data for the Page Blob Get Ranges operation. */async getPageRanges(e=0,t,r={}){var i;r.conditions=r.conditions||{};let{span:a,updatedOptions:n}=(0,B.createSpan)("PageBlobClient-getPageRanges",r);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(i=r.conditions)||void 0===i?void 0:i.tagConditions}),range:(0,v.rangeToString)({offset:e,count:t})},(0,B.convertTracingToRequestOptionsBase)(n))).then(D.rangeResponseFromModel);}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * getPageRangesSegment returns a single segment of page ranges starting from the * specified Marker. Use an empty Marker to start enumeration from the beginning. * After getting a segment, process it, and then call getPageRangesSegment again * (passing the the previously-returned Marker) to get the next segment. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param marker - A string value that identifies the portion of the list to be returned with the next list operation. * @param options - Options to PageBlob Get Page Ranges Segment operation. */async listPageRangesSegment(e=0,t,r,i={}){var a;let{span:n,updatedOptions:o}=(0,B.createSpan)("PageBlobClient-getPageRangesSegment",i);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:null===(a=i.conditions)||void 0===a?void 0:a.tagConditions}),range:(0,v.rangeToString)({offset:e,count:t}),marker:r,maxPageSize:i.maxPageSize},(0,B.convertTracingToRequestOptionsBase)(o)));}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Returns an AsyncIterableIterator for {@link PageBlobGetPageRangesResponseModel} * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param marker - A string value that identifies the portion of * the get of page ranges to be returned with the next getting operation. The * operation returns the ContinuationToken value within the response body if the * getting operation did not return all page ranges remaining within the current page. * The ContinuationToken value can be used as the value for * the marker parameter in a subsequent call to request the next page of get * items. The marker value is opaque to the client. * @param options - Options to List Page Ranges operation. */listPageRangeItemSegments(e=0,t,i,a={}){return(0,r.__asyncGenerator)(this,arguments,function*(){let n;if(i||void 0===i)do i=(n=yield(0,r.__await)(this.listPageRangesSegment(e,t,i,a))).continuationToken,yield yield(0,r.__await)(yield(0,r.__await)(n));while(i);});}/** * Returns an AsyncIterableIterator of {@link PageRangeInfo} objects * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param options - Options to List Page Ranges operation. */listPageRangeItems(e=0,t,i={}){return(0,r.__asyncGenerator)(this,arguments,function*(){let a;try{for(var n,o,s,u=(0,r.__asyncValues)(this.listPageRangeItemSegments(e,t,a,i));!(s=yield(0,r.__await)(u.next())).done;){let e=s.value;yield(0,r.__await)(yield*(0,r.__asyncDelegator)((0,r.__asyncValues)((0,N.ExtractPageRangeInfoItems)(e))));}}catch(e){n={error:e};}finally{try{s&&!s.done&&(o=u.return)&&(yield(0,r.__await)(o.call(u)));}finally{if(n)throw n.error;}}});}/** * Returns an async iterable iterator to list of page ranges for a page blob. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * .byPage() returns an async iterable iterator to list of page ranges for a page blob. * * Example using `for await` syntax: * * ```js * // Get the pageBlobClient before you run these snippets, * // Can be obtained from `blobServiceClient.getContainerClient("").getPageBlobClient("");` * let i = 1; * for await (const pageRange of pageBlobClient.listPageRanges()) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * ``` * * Example using `iter.next()`: * * ```js * let i = 1; * let iter = pageBlobClient.listPageRanges(); * let pageRangeItem = await iter.next(); * while (!pageRangeItem.done) { * console.log(`Page range ${i++}: ${pageRangeItem.value.start} - ${pageRangeItem.value.end}, IsClear: ${pageRangeItem.value.isClear}`); * pageRangeItem = await iter.next(); * } * ``` * * Example using `byPage()`: * * ```js * // passing optional maxPageSize in the page settings * let i = 1; * for await (const response of pageBlobClient.listPageRanges().byPage({ maxPageSize: 20 })) { * for (const pageRange of response) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * } * ``` * * Example using paging with a marker: * * ```js * let i = 1; * let iterator = pageBlobClient.listPageRanges().byPage({ maxPageSize: 2 }); * let response = (await iterator.next()).value; * * // Prints 2 page ranges * for (const pageRange of response) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * * // Gets next marker * let marker = response.continuationToken; * * // Passing next marker as continuationToken * * iterator = pageBlobClient.listPageRanges().byPage({ continuationToken: marker, maxPageSize: 10 }); * response = (await iterator.next()).value; * * // Prints 10 page ranges * for (const blob of response) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * ``` * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param options - Options to the Page Blob Get Ranges operation. * @returns An asyncIterableIterator that supports paging. */listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};// AsyncIterableIterator to iterate over blobs let i=this.listPageRangeItems(e,t,r);return{/** * The next method, part of the iteration protocol */next:()=>i.next(),/** * The connection to the async iterator, part of the iteration protocol */[Symbol.asyncIterator](){return this;},/** * Return an AsyncIterableIterator that works a page at a time */byPage:(i={})=>this.listPageRangeItemSegments(e,t,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},r))};}/** * Gets the collection of page ranges that differ between a specified snapshot and this page blob. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * @param offset - Starting byte position of the page blob * @param count - Number of bytes to get ranges diff. * @param prevSnapshot - Timestamp of snapshot to retrieve the difference. * @param options - Options to the Page Blob Get Page Ranges Diff operation. * @returns Response data for the Page Blob Get Page Range Diff operation. */async getPageRangesDiff(e,t,r,i={}){var a;i.conditions=i.conditions||{};let{span:n,updatedOptions:o}=(0,B.createSpan)("PageBlobClient-getPageRangesDiff",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:null===(a=i.conditions)||void 0===a?void 0:a.tagConditions}),prevsnapshot:r,range:(0,v.rangeToString)({offset:e,count:t})},(0,B.convertTracingToRequestOptionsBase)(o))).then(D.rangeResponseFromModel);}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * getPageRangesDiffSegment returns a single segment of page ranges starting from the * specified Marker for difference between previous snapshot and the target page blob. * Use an empty Marker to start enumeration from the beginning. * After getting a segment, process it, and then call getPageRangesDiffSegment again * (passing the the previously-returned Marker) to get the next segment. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference. * @param marker - A string value that identifies the portion of the get to be returned with the next get operation. * @param options - Options to the Page Blob Get Page Ranges Diff operation. */async listPageRangesDiffSegment(e,t,r,i,a){var n;let{span:o,updatedOptions:s}=(0,B.createSpan)("PageBlobClient-getPageRangesDiffSegment",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:null==a?void 0:a.abortSignal,leaseAccessConditions:null==a?void 0:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},null==a?void 0:a.conditions),{ifTags:null===(n=null==a?void 0:a.conditions)||void 0===n?void 0:n.tagConditions}),prevsnapshot:r,range:(0,v.rangeToString)({offset:e,count:t}),marker:i,maxPageSize:null==a?void 0:a.maxPageSize},(0,B.convertTracingToRequestOptionsBase)(s)));}catch(e){throw o.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{o.end();}}/** * Returns an AsyncIterableIterator for {@link PageBlobGetPageRangesDiffResponseModel} * * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference. * @param marker - A string value that identifies the portion of * the get of page ranges to be returned with the next getting operation. The * operation returns the ContinuationToken value within the response body if the * getting operation did not return all page ranges remaining within the current page. * The ContinuationToken value can be used as the value for * the marker parameter in a subsequent call to request the next page of get * items. The marker value is opaque to the client. * @param options - Options to the Page Blob Get Page Ranges Diff operation. */listPageRangeDiffItemSegments(e,t,i,a,n){return(0,r.__asyncGenerator)(this,arguments,function*(){let o;if(a||void 0===a)do a=(o=yield(0,r.__await)(this.listPageRangesDiffSegment(e,t,i,a,n))).continuationToken,yield yield(0,r.__await)(yield(0,r.__await)(o));while(a);});}/** * Returns an AsyncIterableIterator of {@link PageRangeInfo} objects * * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference. * @param options - Options to the Page Blob Get Page Ranges Diff operation. */listPageRangeDiffItems(e,t,i,a){return(0,r.__asyncGenerator)(this,arguments,function*(){let n;try{for(var o,s,u,c=(0,r.__asyncValues)(this.listPageRangeDiffItemSegments(e,t,i,n,a));!(u=yield(0,r.__await)(c.next())).done;){let e=u.value;yield(0,r.__await)(yield*(0,r.__asyncDelegator)((0,r.__asyncValues)((0,N.ExtractPageRangeInfoItems)(e))));}}catch(e){o={error:e};}finally{try{u&&!u.done&&(s=c.return)&&(yield(0,r.__await)(s.call(c)));}finally{if(o)throw o.error;}}});}/** * Returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * .byPage() returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob. * * Example using `for await` syntax: * * ```js * // Get the pageBlobClient before you run these snippets, * // Can be obtained from `blobServiceClient.getContainerClient("").getPageBlobClient("");` * let i = 1; * for await (const pageRange of pageBlobClient.listPageRangesDiff()) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * ``` * * Example using `iter.next()`: * * ```js * let i = 1; * let iter = pageBlobClient.listPageRangesDiff(); * let pageRangeItem = await iter.next(); * while (!pageRangeItem.done) { * console.log(`Page range ${i++}: ${pageRangeItem.value.start} - ${pageRangeItem.value.end}, IsClear: ${pageRangeItem.value.isClear}`); * pageRangeItem = await iter.next(); * } * ``` * * Example using `byPage()`: * * ```js * // passing optional maxPageSize in the page settings * let i = 1; * for await (const response of pageBlobClient.listPageRangesDiff().byPage({ maxPageSize: 20 })) { * for (const pageRange of response) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * } * ``` * * Example using paging with a marker: * * ```js * let i = 1; * let iterator = pageBlobClient.listPageRangesDiff().byPage({ maxPageSize: 2 }); * let response = (await iterator.next()).value; * * // Prints 2 page ranges * for (const pageRange of response) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * * // Gets next marker * let marker = response.continuationToken; * * // Passing next marker as continuationToken * * iterator = pageBlobClient.listPageRangesDiff().byPage({ continuationToken: marker, maxPageSize: 10 }); * response = (await iterator.next()).value; * * // Prints 10 page ranges * for (const blob of response) { * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`); * } * ``` * @param offset - Starting byte position of the page ranges. * @param count - Number of bytes to get. * @param prevSnapshot - Timestamp of snapshot to retrieve the difference. * @param options - Options to the Page Blob Get Ranges operation. * @returns An asyncIterableIterator that supports paging. */listPageRangesDiff(e,t,r,i={}){i.conditions=i.conditions||{};// AsyncIterableIterator to iterate over blobs let a=this.listPageRangeDiffItems(e,t,r,Object.assign({},i));return{/** * The next method, part of the iteration protocol */next:()=>a.next(),/** * The connection to the async iterator, part of the iteration protocol */[Symbol.asyncIterator](){return this;},/** * Return an AsyncIterableIterator that works a page at a time */byPage:(a={})=>this.listPageRangeDiffItemSegments(e,t,r,a.continuationToken,Object.assign({maxPageSize:a.maxPageSize},i))};}/** * Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks. * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges * * @param offset - Starting byte position of the page blob * @param count - Number of bytes to get ranges diff. * @param prevSnapshotUrl - URL of snapshot to retrieve the difference. * @param options - Options to the Page Blob Get Page Ranges Diff operation. * @returns Response data for the Page Blob Get Page Range Diff operation. */async getPageRangesDiffForManagedDisks(e,t,r,i={}){var a;i.conditions=i.conditions||{};let{span:n,updatedOptions:o}=(0,B.createSpan)("PageBlobClient-GetPageRangesDiffForManagedDisks",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:null===(a=i.conditions)||void 0===a?void 0:a.tagConditions}),prevSnapshotUrl:r,range:(0,v.rangeToString)({offset:e,count:t})},(0,B.convertTracingToRequestOptionsBase)(o))).then(D.rangeResponseFromModel);}catch(e){throw n.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{n.end();}}/** * Resizes the page blob to the specified size (which must be a multiple of 512). * @see https://docs.microsoft.com/rest/api/storageservices/set-blob-properties * * @param size - Target size * @param options - Options to the Page Blob Resize operation. * @returns Response data for the Page Blob Resize operation. */async resize(e,t={}){var r;t.conditions=t.conditions||{};let{span:i,updatedOptions:a}=(0,B.createSpan)("PageBlobClient-resize",t);try{return await this.pageBlobContext.resize(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),encryptionScope:t.encryptionScope},(0,B.convertTracingToRequestOptionsBase)(a)));}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}/** * Sets a page blob's sequence number. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties * * @param sequenceNumberAction - Indicates how the service should modify the blob's sequence number. * @param sequenceNumber - Required if sequenceNumberAction is max or update * @param options - Options to the Page Blob Update Sequence Number operation. * @returns Response data for the Page Blob Update Sequence Number operation. */async updateSequenceNumber(e,t,r={}){var i;r.conditions=r.conditions||{};let{span:a,updatedOptions:n}=(0,B.createSpan)("PageBlobClient-updateSequenceNumber",r);try{return await this.pageBlobContext.updateSequenceNumber(e,Object.assign({abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(i=r.conditions)||void 0===i?void 0:i.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(n)));}catch(e){throw a.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{a.end();}}/** * Begins an operation to start an incremental copy from one page blob's snapshot to this page blob. * The snapshot is copied such that only the differential changes between the previously * copied snapshot are transferred to the destination. * The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual. * @see https://docs.microsoft.com/rest/api/storageservices/incremental-copy-blob * @see https://docs.microsoft.com/en-us/azure/virtual-machines/windows/incremental-snapshots * * @param copySource - Specifies the name of the source page blob snapshot. For example, * https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot= * @param options - Options to the Page Blob Copy Incremental operation. * @returns Response data for the Page Blob Copy Incremental operation. */async startCopyIncremental(e,t={}){var r;let{span:i,updatedOptions:a}=(0,B.createSpan)("PageBlobClient-startCopyIncremental",t);try{return await this.pageBlobContext.copyIncremental(e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},(0,B.convertTracingToRequestOptionsBase)(a)));}catch(e){throw i.setStatus({code:u.SpanStatusCode.ERROR,message:e.message}),e;}finally{i.end();}}}}),parcelRequire.register("9uR57",function(e,t){$parcel$export(e.exports,"__rest",()=>a),$parcel$export(e.exports,"__await",()=>o),$parcel$export(e.exports,"__asyncGenerator",()=>s),$parcel$export(e.exports,"__asyncDelegator",()=>u),$parcel$export(e.exports,"__asyncValues",()=>c);/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);})(e,t);},i=function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;rt.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);at.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r;}function n(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e};}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.");}function o(e){return this instanceof o?(this.v=e,this):new o(e);}function s(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,a=r.apply(e,t||[]),n=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this;},i;function s(e){a[e]&&(i[e]=function(t){return new Promise(function(r,i){n.push([e,t,r,i])>1||u(e,t);});});}function u(e,t){try{c(a[e](t));}catch(e){d(n[0][3],e);}}function c(e){e.value instanceof o?Promise.resolve(e.value.v).then(l,p):d(n[0][2],e);}function l(e){u("next",e);}function p(e){u("throw",e);}function d(e,t){e(t),n.shift(),n.length&&u(n[0][0],n[0][1]);}}function u(e){var t,r;return t={},i("next"),i("throw",function(e){throw e;}),i("return"),t[Symbol.iterator]=function(){return this;},t;function i(i,a){t[i]=e[i]?function(t){return(r=!r)?{value:o(e[i](t)),done:!1}:a?a(t):t;}:a;}}function c(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=n(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this;},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,n){a(i,n,(t=e[r](t)).done,t.value);});};}function a(e,t,r,i){Promise.resolve(i).then(function(t){e({value:t,done:r});},t);}}"function"==typeof SuppressedError&&SuppressedError;}),parcelRequire.register("lrZDM",function(e,t){var r,i,a,n;$parcel$export(e.exports,"isNode",()=>o),"undefined"!=typeof window&&window.document,"object"==typeof self&&"function"==typeof(null==self?void 0:self.importScripts)&&((null===(r=self.constructor)||void 0===r?void 0:r.name)==="DedicatedWorkerGlobalScope"||(null===(i=self.constructor)||void 0===i?void 0:i.name)==="ServiceWorkerGlobalScope"||null===(a=self.constructor)||void 0===a||a.name);let o="undefined"!=typeof process&&!!process.version&&!!(null===(n=process.versions)||void 0===n?void 0:n.node);"undefined"!=typeof Deno&&void 0!==Deno.version&&Deno.version.deno,"undefined"!=typeof Bun&&Bun.version,"undefined"!=typeof navigator&&(null==navigator||navigator.product);}),parcelRequire.register("4PgmQ",function(e,t){$parcel$export(e.exports,"isTokenCredential",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * Tests an object to determine whether it implements TokenCredential. * * @param credential - The assumed TokenCredential to be tested. */function r(e){// Check for an object with a 'getToken' function and possibly with // a 'signRequest' function. We do this check to make sure that // a ServiceClientCredentials implementor (like TokenClientCredentials // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if // it doesn't actually implement TokenCredential also. let t=e;return t&&"function"==typeof t.getToken&&(void 0===t.signRequest||t.getToken.length>0);}}),parcelRequire.register("1Vc6S",function(e,t){$parcel$export(e.exports,"getDefaultProxySettings",()=>d),$parcel$export(e.exports,"proxyPolicy",()=>m);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("42Oo8"),i=parcelRequire("9PBIu"),a=parcelRequire("18oFr"),n=parcelRequire("8sP3n");let o=[],s=!1,u=new Map();function c(){if(!process)return;let e=(0,n.getEnvironmentValue)(i.Constants.HTTPS_PROXY),t=(0,n.getEnvironmentValue)(i.Constants.ALL_PROXY),r=(0,n.getEnvironmentValue)(i.Constants.HTTP_PROXY);return e||t||r;}/** * Check whether the host of a given `uri` matches any pattern in the no proxy list. * If there's a match, any request sent to the same host shouldn't have the proxy settings set. * This implementation is a port of https://github.com/Azure/azure-sdk-for-net/blob/8cca811371159e527159c7eb65602477898683e2/sdk/core/Azure.Core/src/Pipeline/Internal/HttpEnvironmentProxy.cs#L210 */function l(e,t,r){if(0===t.length)return!1;let i=(0,a.URLBuilder).parse(e).getHost();if(null==r?void 0:r.has(i))return r.get(i);let n=!1;for(let e of t)"."===e[0]?i.endsWith(e)?n=!0:i.length===e.length-1&&i===e.slice(1)&&(n=!0):i===e&&(n=!0);return null==r||r.set(i,n),n;}function p(){let e=(0,n.getEnvironmentValue)(i.Constants.NO_PROXY);return(s=!0,e)?e.split(",").map(e=>e.trim()).filter(e=>e.length):[];}function d(e){if(!e&&!(e=c()))return;let{username:t,password:r,urlWithoutAuth:i}=h(e),n=(0,a.URLBuilder).parse(i),o=n.getScheme()?n.getScheme()+"://":"";return{host:o+n.getHost(),port:Number.parseInt(n.getPort()||"80"),username:t,password:r};}function m(e,t){return e||(e=d()),s||o.push(...p()),{create:(r,i)=>new x(r,i,e,null==t?void 0:t.customNoProxyList)};}function h(e){let t=e.indexOf("@");if(-1===t)return{urlWithoutAuth:e};let r=e.indexOf("://"),i=-1!==r?r+3:0,a=e.substring(i,t),n=a.indexOf(":"),o=-1!==n,s=o?a.substring(0,n):a,u=o?a.substring(n+1):void 0,c=e.substring(0,i)+e.substring(t+1);return{username:s,password:u,urlWithoutAuth:c};}class x extends r.BaseRequestPolicy{constructor(e,t,r,i){super(e,t),this.proxySettings=r,this.customNoProxyList=i;}sendRequest(e){var t;return e.proxySettings||l(e.url,null!==(t=this.customNoProxyList)&&void 0!==t?t:o,this.customNoProxyList?void 0:u)||(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e);}}}),parcelRequire.register("42Oo8",function(e,t){$parcel$export(e.exports,"BaseRequestPolicy",()=>i),$parcel$export(e.exports,"RequestPolicyOptions",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("4QB3s");class i{/** * The main method to implement that manipulates a request/response. */constructor(/** * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline. */e,/** * The options that can be passed to a given request policy. */t){this._nextPolicy=e,this._options=t;}/** * Get whether or not a log with the provided log level should be logged. * @param logLevel - The log level of the log that will be logged. * @returns Whether or not a log with the provided log level should be logged. */shouldLog(e){return this._options.shouldLog(e);}/** * Attempt to log the provided message to the provided logger. If no logger was provided or if * the log level does not meat the logger's threshold, then nothing will be logged. * @param logLevel - The log level of this log. * @param message - The message of this log. */log(e,t){this._options.log(e,t);}}class a{constructor(e){this._logger=e;}/** * Get whether or not a log with the provided log level should be logged. * @param logLevel - The log level of the log that will be logged. * @returns Whether or not a log with the provided log level should be logged. */shouldLog(e){return!!this._logger&&e!==r.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel;}/** * Attempt to log the provided message to the provided logger. If no logger was provided or if * the log level does not meet the logger's threshold, then nothing will be logged. * @param logLevel - The log level of this log. * @param message - The message of this log. */log(e,t){this._logger&&this.shouldLog(e)&&this._logger.log(e,t);}}}),parcelRequire.register("4QB3s",function(e,t){var r;$parcel$export(e.exports,"HttpPipelineLogLevel",()=>r),function(e){/** * A log level that indicates that no logs will be logged. */e[e.OFF=0]="OFF",/** * An error log. */e[e.ERROR=1]="ERROR",/** * A warning log. */e[e.WARNING=2]="WARNING",/** * An information log. */e[e.INFO=3]="INFO";}(r||(r={}));}),parcelRequire.register("9PBIu",function(e,t){$parcel$export(e.exports,"Constants",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * A set of constants used internally when processing requests. */let r={/** * The core-http version */coreHttpVersion:"3.0.3",/** * Specifies HTTP. */HTTP:"http:",/** * Specifies HTTPS. */HTTPS:"https:",/** * Specifies HTTP Proxy. */HTTP_PROXY:"HTTP_PROXY",/** * Specifies HTTPS Proxy. */HTTPS_PROXY:"HTTPS_PROXY",/** * Specifies NO Proxy. */NO_PROXY:"NO_PROXY",/** * Specifies ALL Proxy. */ALL_PROXY:"ALL_PROXY",HttpConstants:{/** * Http Verbs */HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD",PATCH:"PATCH"},StatusCodes:{TooManyRequests:429,ServiceUnavailable:503}},/** * Defines constants for use with HTTP headers. */HeaderConstants:{/** * The Authorization header. */AUTHORIZATION:"authorization",AUTHORIZATION_SCHEME:"Bearer",/** * The Retry-After response-header field can be used with a 503 (Service * Unavailable) or 349 (Too Many Requests) responses to indicate how long * the service is expected to be unavailable to the requesting client. */RETRY_AFTER:"Retry-After",/** * The UserAgent header. */USER_AGENT:"User-Agent"}};}),parcelRequire.register("18oFr",function(e,t){$parcel$export(e.exports,"URLQuery",()=>i),$parcel$export(e.exports,"URLBuilder",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("8sP3n");class i{constructor(){this._rawQuery={};}/** * Get whether or not there any query parameters in this URLQuery. */any(){return Object.keys(this._rawQuery).length>0;}/** * Get the keys of the query string. */keys(){return Object.keys(this._rawQuery);}/** * Set a query parameter with the provided name and value. If the parameterValue is undefined or * empty, then this will attempt to remove an existing query parameter with the provided * parameterName. */set(e,t){let r=t;if(e){if(null!=r){let t=Array.isArray(r)?r:r.toString();this._rawQuery[e]=t;}else delete this._rawQuery[e];}}/** * Get the value of the query parameter with the provided name. If no parameter exists with the * provided parameter name, then undefined will be returned. */get(e){return e?this._rawQuery[e]:void 0;}/** * Get the string representation of this query. The return value will not start with a "?". */toString(){let e="";for(let t in this._rawQuery){e&&(e+="&");let r=this._rawQuery[t];if(Array.isArray(r)){let i=[];for(let e of r)i.push(`${t}=${e}`);e+=i.join("&");}else e+=`${t}=${r}`;}return e;}/** * Parse a URLQuery from the provided text. */static parse(e){let t=new i();if(e){e.startsWith("?")&&(e=e.substring(1));let r="ParameterName",i="",a="";for(let n=0;n "https://microsoft.com" this.set(-1===r?e:e.substr(r+1),"SCHEME");}else this.set(e,"PATH");}else this._path=void 0;}/** * Append the provided path to this URL's existing path. If the provided path contains a query, * then it will be added to this URL as well. */appendPath(e){if(e){let t=this.getPath();t&&(t.endsWith("/")||(t+="/"),e.startsWith("/")&&(e=e.substring(1)),e=t+e),this.set(e,"PATH");}}/** * Get the path that has been set in this URL. */getPath(){return this._path;}/** * Set the query in this URL. */setQuery(e){e?this._query=i.parse(e):this._query=void 0;}/** * Set a query parameter with the provided name and value in this URL's query. If the provided * query parameter value is undefined or empty, then the query parameter will be removed if it * existed. */setQueryParameter(e,t){e&&(this._query||(this._query=new i()),this._query.set(e,t));}/** * Get the value of the query parameter with the provided query parameter name. If no query * parameter exists with the provided name, then undefined will be returned. */getQueryParameterValue(e){return this._query?this._query.get(e):void 0;}/** * Get the query in this URL. */getQuery(){return this._query?this._query.toString():void 0;}/** * Set the parts of this URL by parsing the provided text using the provided startState. */set(e,t){let r=new s(e,t);for(;r.next();){let e;let t=r.current();if(t)switch(t.type){case"SCHEME":this._scheme=t.text||void 0;break;case"HOST":this._host=t.text||void 0;break;case"PORT":this._port=t.text||void 0;break;case"PATH":e=t.text||void 0,this._path&&"/"!==this._path&&"/"===e||(this._path=e);break;case"QUERY":this._query=i.parse(t.text);break;default:throw Error(`Unrecognized URLTokenType: ${t.type}`);}}}/** * Serializes the URL as a string. * @returns the URL as a string. */toString(){let e="";return this._scheme&&(e+=`${this._scheme}://`),this._host&&(e+=this._host),this._port&&(e+=`:${this._port}`),this._path&&(this._path.startsWith("/")||(e+="/"),e+=this._path),this._query&&this._query.any()&&(e+=`?${this._query.toString()}`),e;}/** * If the provided searchValue is found in this URLBuilder, then replace it with the provided * replaceValue. */replaceAll(e,t){e&&(this.setScheme((0,r.replaceAll)(this.getScheme(),e,t)),this.setHost((0,r.replaceAll)(this.getHost(),e,t)),this.setPort((0,r.replaceAll)(this.getPort(),e,t)),this.setPath((0,r.replaceAll)(this.getPath(),e,t)),this.setQuery((0,r.replaceAll)(this.getQuery(),e,t)));}/** * Parses a given string URL into a new {@link URLBuilder}. */static parse(e){let t=new a();return t.set(e,"SCHEME_OR_HOST"),t;}}class n{constructor(e,t){this.text=e,this.type=t;}static scheme(e){return new n(e,"SCHEME");}static host(e){return new n(e,"HOST");}static port(e){return new n(e,"PORT");}static path(e){return new n(e,"PATH");}static query(e){return new n(e,"QUERY");}}function o(e){let t=e.charCodeAt(0);return 48/* '0' */<=t&&t<=57||65/* 'A' */<=t&&t<=90||97/* 'a' */<=t&&t<=122;}class s{constructor(e,t){this._text=e,this._textLength=e?e.length:0,this._currentState=null!=t?t:"SCHEME_OR_HOST",this._currentIndex=0;}/** * Get the current URLToken this URLTokenizer is pointing at, or undefined if the URLTokenizer * hasn't started or has finished tokenizing. */current(){return this._currentToken;}/** * Advance to the next URLToken and return whether or not a URLToken was found. */next(){if(c(this))switch(this._currentState){case"SCHEME":f(this);break;case"SCHEME_OR_HOST":g(this);break;case"HOST":D(this);break;case"PORT":y(this);break;case"PATH":b(this);break;case"QUERY":v(this);break;default:throw Error(`Unrecognized URLTokenizerState: ${this._currentState}`);}else this._currentToken=void 0;return!!this._currentToken;}}/** * Read the remaining characters from this Tokenizer's character stream. */function u(e){let t="";return e._currentIndexo(e));}/** * Read characters from this Tokenizer until one of the provided terminating characters is read or * the end of the character stream is reached. */function x(e,...t){return m(e,e=>-1===t.indexOf(e));}function f(e){let t=h(e);e._currentToken=n.scheme(t),c(e)?e._currentState="HOST":e._currentState="DONE";}function g(e){let t=x(e,":","/","?");c(e)?":"===l(e)?"://"===d(e,3)?(e._currentToken=n.scheme(t),e._currentState="HOST"):(e._currentToken=n.host(t),e._currentState="PORT"):(e._currentToken=n.host(t),"/"===l(e)?e._currentState="PATH":e._currentState="QUERY"):(e._currentToken=n.host(t),e._currentState="DONE");}function D(e){"://"===d(e,3)&&p(e,3);let t=x(e,":","/","?");e._currentToken=n.host(t),c(e)?":"===l(e)?e._currentState="PORT":"/"===l(e)?e._currentState="PATH":e._currentState="QUERY":e._currentState="DONE";}function y(e){":"===l(e)&&p(e);let t=x(e,"/","?");e._currentToken=n.port(t),c(e)?"/"===l(e)?e._currentState="PATH":e._currentState="QUERY":e._currentState="DONE";}function b(e){let t=x(e,"?");e._currentToken=n.path(t),c(e)?e._currentState="QUERY":e._currentState="DONE";}function v(e){"?"===l(e)&&p(e);let t=u(e);e._currentToken=n.query(t),e._currentState="DONE";}}),parcelRequire.register("8sP3n",function(e,t){$parcel$export(e.exports,"isValidUuid",()=>n),$parcel$export(e.exports,"generateUuid",()=>o),$parcel$export(e.exports,"prepareXMLRootList",()=>s),$parcel$export(e.exports,"isDuration",()=>c),$parcel$export(e.exports,"replaceAll",()=>l),$parcel$export(e.exports,"isPrimitiveType",()=>p),$parcel$export(e.exports,"getEnvironmentValue",()=>d),$parcel$export(e.exports,"isObject",()=>m),parcelRequire("9PBIu");var r=parcelRequire("2dg8H"),i=parcelRequire("4dndm");let a=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function n(e){return a.test(e);}function o(){return(0,i.default)();}function s(e,t,i,a){if(Array.isArray(e)||(e=[e]),!i||!a)return{[t]:e};let n={[t]:e};return n[r.XML_ATTRKEY]={[i]:a},n;}let u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function c(e){return u.test(e);}function l(e,t,r){return e&&t?e.split(t).join(r||""):e;}function p(e){return"object"!=typeof e&&"function"!=typeof e||null===e;}function d(e){return process.env[e]?process.env[e]:process.env[e.toLowerCase()]?process.env[e.toLowerCase()]:void 0;}function m(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date);}}),parcelRequire.register("2dg8H",function(e,t){$parcel$export(e.exports,"XML_ATTRKEY",()=>r),$parcel$export(e.exports,"XML_CHARKEY",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * Default key used to access the XML attributes. */let r="$",i="_";}),parcelRequire.register("2hiFM",function(e,t){$parcel$export(e.exports,"SpanKind",()=>r),$parcel$export(e.exports,"setSpan",()=>o),$parcel$export(e.exports,"isSpanContextValid",()=>s),$parcel$export(e.exports,"getTracer",()=>u),$parcel$export(e.exports,"context",()=>c),$parcel$export(e.exports,"SpanStatusCode",()=>i),// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. parcelRequire("d10no");var r,i,a=parcelRequire("bYZ28"),n=parcelRequire("o2G7a");function o(e,t){return(0,a.trace).setSpan(e,t);}function s(e){return(0,a.trace).isSpanContextValid(e);}function u(e,t){return(0,a.trace).getTracer(e||"azure/core-tracing",t);}!function(e){/** Default value. Indicates that the span is used internally. */e[e.INTERNAL=0]="INTERNAL",/** * Indicates that the span covers server-side handling of an RPC or other * remote request. */e[e.SERVER=1]="SERVER",/** * Indicates that the span covers the client-side wrapper around an RPC or * other remote request. */e[e.CLIENT=2]="CLIENT",/** * Indicates that the span describes producer sending a message to a * broker. Unlike client and server, there is no direct critical path latency * relationship between producer and consumer spans. */e[e.PRODUCER=3]="PRODUCER",/** * Indicates that the span describes consumer receiving a message from a * broker. Unlike client and server, there is no direct critical path latency * relationship between producer and consumer spans. */e[e.CONSUMER=4]="CONSUMER";}(r||(r={}));let c=n.context;!function(e){/** * The default status. */e[e.UNSET=0]="UNSET",/** * The operation has been validated by an Application developer or * Operator to have completed successfully. */e[e.OK=1]="OK",/** * The operation contains an error. */e[e.ERROR=2]="ERROR";}(i||(i={}));}),parcelRequire.register("d10no",function(e,t){$parcel$export(e.exports,"context",()=>parcelRequire("o2G7a").context),$parcel$export(e.exports,"trace",()=>parcelRequire("bYZ28").trace),parcelRequire("5PlQC");var r=parcelRequire("o2G7a"),i=parcelRequire("2h348"),a=parcelRequire("4aj4O"),n=parcelRequire("lxXwI"),o=parcelRequire("bYZ28");r.context,i.diag,a.metrics,n.propagation,o.trace;}),parcelRequire.register("5PlQC",function(e,t){$parcel$export(e.exports,"INVALID_SPANID",()=>i),$parcel$export(e.exports,"INVALID_TRACEID",()=>a),$parcel$export(e.exports,"INVALID_SPAN_CONTEXT",()=>n);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("81NGw"),i="0000000000000000",a="00000000000000000000000000000000",n={traceId:a,spanId:i,traceFlags:r.TraceFlags.NONE};}),parcelRequire.register("81NGw",function(e,t){var r;$parcel$export(e.exports,"TraceFlags",()=>r),function(e){/** Represents no flag set. */e[e.NONE=0]="NONE",/** Bit to represent whether trace is sampled in trace flags. */e[e.SAMPLED=1]="SAMPLED";}(r||(r={}));}),parcelRequire.register("o2G7a",function(e,t){$parcel$export(e.exports,"context",()=>r);var r=(0,parcelRequire("72h6l").ContextAPI).getInstance();}),parcelRequire.register("72h6l",function(e,t){$parcel$export(e.exports,"ContextAPI",()=>c);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("dO1zU"),i=parcelRequire("dvcyp"),a=parcelRequire("6APkH"),n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,n=r.call(e),o=[];try{for(;(void 0===t||t-->0)&&!(i=n.next()).done;)o.push(i.value);}catch(e){a={error:e};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error;}}return o;},o=function(e,t,r){if(r||2==arguments.length)for(var i,a=0,n=t.length;an);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("9NuL1"),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,n=r.call(e),o=[];try{for(;(void 0===t||t-->0)&&!(i=n.next()).done;)o.push(i.value);}catch(e){a={error:e};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error;}}return o;},a=function(e,t,r){if(r||2==arguments.length)for(var i,a=0,n=t.length;ar),$parcel$export(e.exports,"ROOT_CONTEXT",()=>i);var i=new(/** @class */function(){/** * Construct a new context which inherits values from an optional parent context. * * @param parentContext a context from which to inherit values */function e(t){// for minification var r=this;r._currentContext=t?new Map(t):new Map(),r.getValue=function(e){return r._currentContext.get(e);},r.setValue=function(t,i){var a=new e(r._currentContext);return a._currentContext.set(t,i),a;},r.deleteValue=function(t){var i=new e(r._currentContext);return i._currentContext.delete(t),i;};}return e;}())();}),parcelRequire.register("dvcyp",function(e,t){$parcel$export(e.exports,"registerGlobal",()=>s),$parcel$export(e.exports,"getGlobal",()=>u),$parcel$export(e.exports,"unregisterGlobal",()=>c);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("2zH50"),i=parcelRequire("lNmW8"),a=parcelRequire("hFqQj"),n=Symbol.for("opentelemetry.js.api."+(0,i.VERSION).split(".")[0]),o=r._globalThis;function s(e,t,r,a){void 0===a&&(a=!1);var s,u=o[n]=null!==(s=o[n])&&void 0!==s?s:{version:i.VERSION};if(!a&&u[e]){// already registered an API of this type var c=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(c.stack||c.message),!1;}if(u.version!==i.VERSION){// All registered APIs must be of the same version exactly var c=Error("@opentelemetry/api: Registration of version v"+u.version+" for "+e+" does not match previously registered API v"+i.VERSION);return r.error(c.stack||c.message),!1;}return u[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+i.VERSION+"."),!0;}function u(e){var t,r,i=null===(t=o[n])||void 0===t?void 0:t.version;if(i&&(0,a.isCompatible)(i))return null===(r=o[n])||void 0===r?void 0:r[e];}function c(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+i.VERSION+".");var r=o[n];r&&delete r[e];}}),parcelRequire.register("2zH50",function(e,t){$parcel$export(e.exports,"_globalThis",()=>r);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** only globals that common to node and browsers are allowed */ // eslint-disable-next-line node/no-unsupported-features/es-builtins var r="object"==typeof globalThis?globalThis:$parcel$global;}),parcelRequire.register("lNmW8",function(e,t){$parcel$export(e.exports,"VERSION",()=>r);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // this is autogenerated file, see scripts/version-update.js var r="1.4.1";}),parcelRequire.register("hFqQj",function(e,t){$parcel$export(e.exports,"isCompatible",()=>a);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("lNmW8"),i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,a=function(e){var t=new Set([e]),r=new Set(),a=e.match(i);if(!a)return function(){return!1;};var n={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};// if ownVersion has a prerelease tag, versions must match exactly if(null!=n.prerelease)return function(t){return t===e;};function o(e){return r.add(e),!1;}function s(e){return t.add(e),!0;}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var a=e.match(i);if(!a)// we cannot guarantee compatibility so we always noop return o(e);var u={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};return(// if globalVersion has a prerelease tag, versions must match exactly null!=u.prerelease||n.major!==u.major?o(e):0===n.major?n.minor===u.minor&&n.patch<=u.patch?s(e):o(e):n.minor<=u.minor?s(e):o(e));};}(r.VERSION);}),parcelRequire.register("6APkH",function(e,t){$parcel$export(e.exports,"DiagAPI",()=>c);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("aXGSP"),i=parcelRequire("wWHXg"),a=parcelRequire("izZPz"),n=parcelRequire("dvcyp"),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,n=r.call(e),o=[];try{for(;(void 0===t||t-->0)&&!(i=n.next()).done;)o.push(i.value);}catch(e){a={error:e};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error;}}return o;},s=function(e,t,r){if(r||2==arguments.length)for(var i,a=0,n=t.length;a";l.warn("Current logger will be overwritten from "+d),p.warn("Current logger will overwrite one already registered from "+d);}return(0,n.registerGlobal)("diag",p,t,!0);};t.setLogger=c,t.disable=function(){(0,n.unregisterGlobal)(u,t);},t.createComponentLogger=function(e){return new r.DiagComponentLogger(e);},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error");}return(/** Get the singleton instance of the DiagAPI API */e.instance=function(){return this._instance||(this._instance=new e()),this._instance;},e);}();}),parcelRequire.register("aXGSP",function(e,t){$parcel$export(e.exports,"DiagComponentLogger",()=>n);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("dvcyp"),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,n=r.call(e),o=[];try{for(;(void 0===t||t-->0)&&!(i=n.next()).done;)o.push(i.value);}catch(e){a={error:e};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error;}}return o;},a=function(e,t,r){if(r||2==arguments.length)for(var i,a=0,n=t.length;ai);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("izZPz");function i(e,t){function i(r,i){var a=t[r];return"function"==typeof a&&e>=i?a.bind(t):function(){};}return er.DiagLogLevel.ALL&&(e=r.DiagLogLevel.ALL),// In case the logger is null or undefined t=t||{},{error:i("error",r.DiagLogLevel.ERROR),warn:i("warn",r.DiagLogLevel.WARN),info:i("info",r.DiagLogLevel.INFO),debug:i("debug",r.DiagLogLevel.DEBUG),verbose:i("verbose",r.DiagLogLevel.VERBOSE)};}}),parcelRequire.register("izZPz",function(e,t){var r;$parcel$export(e.exports,"DiagLogLevel",()=>r),function(e){/** Diagnostic Logging level setting to disable all logging (except and forced logs) */e[e.NONE=0]="NONE",/** Identifies an error scenario */e[e.ERROR=30]="ERROR",/** Identifies a warning scenario */e[e.WARN=50]="WARN",/** General informational log message */e[e.INFO=60]="INFO",/** General debug log message */e[e.DEBUG=70]="DEBUG",/** * Detailed trace level logging should only be used for development, should only be set * in a development environment. */e[e.VERBOSE=80]="VERBOSE",/** Used to set the logging level to include all logging */e[e.ALL=9999]="ALL";}(r||(r={}));}),parcelRequire.register("2h348",function(e,t){$parcel$export(e.exports,"diag",()=>r);var r=(0,parcelRequire("6APkH").DiagAPI).instance();}),parcelRequire.register("4aj4O",function(e,t){$parcel$export(e.exports,"metrics",()=>r);var r=(0,parcelRequire("lEuqz").MetricsAPI).getInstance();}),parcelRequire.register("lEuqz",function(e,t){$parcel$export(e.exports,"MetricsAPI",()=>o);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("5W7RE"),i=parcelRequire("dvcyp"),a=parcelRequire("6APkH"),n="metrics",o=/** @class */function(){/** Empty private constructor prevents end users from constructing a new instance of the API */function e(){}return(/** Get the singleton instance of the Metrics API */e.getInstance=function(){return this._instance||(this._instance=new e()),this._instance;},/** * Set the current global meter provider. * Returns true if the meter provider was successfully registered, else false. */e.prototype.setGlobalMeterProvider=function(e){return(0,i.registerGlobal)(n,e,(0,a.DiagAPI).instance());},/** * Returns the global meter provider. */e.prototype.getMeterProvider=function(){return(0,i.getGlobal)(n)||r.NOOP_METER_PROVIDER;},/** * Returns a meter from the global meter provider. */e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r);},/** Remove the global meter provider */e.prototype.disable=function(){(0,i.unregisterGlobal)(n,(0,a.DiagAPI).instance());},e);}();}),parcelRequire.register("5W7RE",function(e,t){$parcel$export(e.exports,"NOOP_METER_PROVIDER",()=>i);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("exXOw"),i=new(/** @class */function(){function e(){}return e.prototype.getMeter=function(e,t,i){return r.NOOP_METER;},e;}())();}),parcelRequire.register("exXOw",function(e,t){$parcel$export(e.exports,"NOOP_METER",()=>d);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);})(t,r);};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t;}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i());};}(),i=/** @class */function(){function e(){}return(/** * @see {@link Meter.createHistogram} */e.prototype.createHistogram=function(e,t){return h;},/** * @see {@link Meter.createCounter} */e.prototype.createCounter=function(e,t){return m;},/** * @see {@link Meter.createUpDownCounter} */e.prototype.createUpDownCounter=function(e,t){return x;},/** * @see {@link Meter.createObservableGauge} */e.prototype.createObservableGauge=function(e,t){return g;},/** * @see {@link Meter.createObservableCounter} */e.prototype.createObservableCounter=function(e,t){return f;},/** * @see {@link Meter.createObservableUpDownCounter} */e.prototype.createObservableUpDownCounter=function(e,t){return D;},/** * @see {@link Meter.addBatchObservableCallback} */e.prototype.addBatchObservableCallback=function(e,t){},/** * @see {@link Meter.removeBatchObservableCallback} */e.prototype.removeBatchObservableCallback=function(e){},e);}(),a=/** @class */function(){return function(){};}(),n=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.add=function(e,t){},t;}(a),o=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.add=function(e,t){},t;}(a),s=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.record=function(e,t){},t;}(a),u=/** @class */function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e;}(),c=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t;}(u),l=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t;}(u),p=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t;}(u),d=new i(),m=new n(),h=new s(),x=new o(),f=new c(),g=new l(),D=new p();}),parcelRequire.register("lxXwI",function(e,t){$parcel$export(e.exports,"propagation",()=>r);var r=(0,parcelRequire("632O2").PropagationAPI).getInstance();}),parcelRequire.register("632O2",function(e,t){$parcel$export(e.exports,"PropagationAPI",()=>l);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("dvcyp"),i=parcelRequire("iynhm"),a=parcelRequire("5v0TN"),n=parcelRequire("yBBjw"),o=parcelRequire("4BDad"),s=parcelRequire("6APkH"),u="propagation",c=new i.NoopTextMapPropagator(),l=/** @class */function(){/** Empty private constructor prevents end users from constructing a new instance of the API */function e(){this.createBaggage=o.createBaggage,this.getBaggage=n.getBaggage,this.getActiveBaggage=n.getActiveBaggage,this.setBaggage=n.setBaggage,this.deleteBaggage=n.deleteBaggage;}return(/** Get the singleton instance of the Propagator API */e.getInstance=function(){return this._instance||(this._instance=new e()),this._instance;},/** * Set the current propagator. * * @returns true if the propagator was successfully registered, else false */e.prototype.setGlobalPropagator=function(e){return(0,r.registerGlobal)(u,e,(0,s.DiagAPI).instance());},/** * Inject context into a carrier to be propagated inter-process * * @param context Context carrying tracing data to inject * @param carrier carrier to inject context into * @param setter Function used to set values on the carrier */e.prototype.inject=function(e,t,r){return void 0===r&&(r=a.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,r);},/** * Extract context from a carrier * * @param context Context which the newly created context will inherit from * @param carrier Carrier to extract context from * @param getter Function used to extract keys from a carrier */e.prototype.extract=function(e,t,r){return void 0===r&&(r=a.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,r);},/** * Return a list of all fields which may be used by the propagator. */e.prototype.fields=function(){return this._getGlobalPropagator().fields();},/** Remove the global propagator */e.prototype.disable=function(){(0,r.unregisterGlobal)(u,(0,s.DiagAPI).instance());},e.prototype._getGlobalPropagator=function(){return(0,r.getGlobal)(u)||c;},e);}();}),parcelRequire.register("iynhm",function(e,t){$parcel$export(e.exports,"NoopTextMapPropagator",()=>r);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * No-op implementations of {@link TextMapPropagator}. */var r=/** @class */function(){function e(){}return(/** Noop inject function does nothing */e.prototype.inject=function(e,t){},/** Noop extract function does nothing and returns the input context */e.prototype.extract=function(e,t){return e;},e.prototype.fields=function(){return[];},e);}();}),parcelRequire.register("5v0TN",function(e,t){$parcel$export(e.exports,"defaultTextMapGetter",()=>r),$parcel$export(e.exports,"defaultTextMapSetter",()=>i);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r={get:function(e,t){if(null!=e)return e[t];},keys:function(e){return null==e?[]:Object.keys(e);}},i={set:function(e,t,r){null!=e&&(e[t]=r);}};}),parcelRequire.register("yBBjw",function(e,t){$parcel$export(e.exports,"getBaggage",()=>a),$parcel$export(e.exports,"getActiveBaggage",()=>n),$parcel$export(e.exports,"setBaggage",()=>o),$parcel$export(e.exports,"deleteBaggage",()=>s);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("72h6l"),i=(0,parcelRequire("9NuL1").createContextKey)("OpenTelemetry Baggage Key");function a(e){return e.getValue(i)||void 0;}function n(){return a((0,r.ContextAPI).getInstance().active());}function o(e,t){return e.setValue(i,t);}function s(e){return e.deleteValue(i);}}),parcelRequire.register("4BDad",function(e,t){$parcel$export(e.exports,"createBaggage",()=>a);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("6APkH"),i=parcelRequire("elPA9");function a(e){return void 0===e&&(e={}),new i.BaggageImpl(new Map(Object.entries(e)));}parcelRequire("czXeZ"),(0,r.DiagAPI).instance();}),parcelRequire.register("elPA9",function(e,t){$parcel$export(e.exports,"BaggageImpl",()=>a);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,n=r.call(e),o=[];try{for(;(void 0===t||t-->0)&&!(i=n.next()).done;)o.push(i.value);}catch(e){a={error:e};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error;}}return o;},i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e};}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.");},a=/** @class */function(){function e(e){this._entries=e?new Map(e):new Map();}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t);},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=r(e,2);return[t[0],t[1]];});},e.prototype.setEntry=function(t,r){var i=new e(this._entries);return i._entries.set(t,r),i;},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r;},e.prototype.removeEntries=function(){for(var t,r,a=[],n=0;nr);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Symbol used to make BaggageEntryMetadata an opaque type */var r=Symbol("BaggageEntryMetadata");}),parcelRequire.register("bYZ28",function(e,t){$parcel$export(e.exports,"trace",()=>r);var r=(0,parcelRequire("jFmyP").TraceAPI).getInstance();}),parcelRequire.register("jFmyP",function(e,t){$parcel$export(e.exports,"TraceAPI",()=>u);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("dvcyp"),i=parcelRequire("3p2ZM"),a=parcelRequire("7Gaki"),n=parcelRequire("1rF3w"),o=parcelRequire("6APkH"),s="trace",u=/** @class */function(){/** Empty private constructor prevents end users from constructing a new instance of the API */function e(){this._proxyTracerProvider=new i.ProxyTracerProvider(),this.wrapSpanContext=a.wrapSpanContext,this.isSpanContextValid=a.isSpanContextValid,this.deleteSpan=n.deleteSpan,this.getSpan=n.getSpan,this.getActiveSpan=n.getActiveSpan,this.getSpanContext=n.getSpanContext,this.setSpan=n.setSpan,this.setSpanContext=n.setSpanContext;}return(/** Get the singleton instance of the Trace API */e.getInstance=function(){return this._instance||(this._instance=new e()),this._instance;},/** * Set the current global tracer. * * @returns true if the tracer provider was successfully registered, else false */e.prototype.setGlobalTracerProvider=function(e){var t=(0,r.registerGlobal)(s,this._proxyTracerProvider,(0,o.DiagAPI).instance());return t&&this._proxyTracerProvider.setDelegate(e),t;},/** * Returns the global tracer provider. */e.prototype.getTracerProvider=function(){return(0,r.getGlobal)(s)||this._proxyTracerProvider;},/** * Returns a tracer from the global tracer provider. */e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t);},/** Remove the global tracer provider */e.prototype.disable=function(){(0,r.unregisterGlobal)(s,(0,o.DiagAPI).instance()),this._proxyTracerProvider=new i.ProxyTracerProvider();},e);}();}),parcelRequire.register("3p2ZM",function(e,t){$parcel$export(e.exports,"ProxyTracerProvider",()=>a);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("fUIQl"),i=new(parcelRequire("7thqo").NoopTracerProvider)(),a=/** @class */function(){function e(){}return(/** * Get a {@link ProxyTracer} */e.prototype.getTracer=function(e,t,i){var a;return null!==(a=this.getDelegateTracer(e,t,i))&&void 0!==a?a:new r.ProxyTracer(this,e,t,i);},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:i;},/** * Set the delegate tracer provider */e.prototype.setDelegate=function(e){this._delegate=e;},e.prototype.getDelegateTracer=function(e,t,r){var i;return null===(i=this._delegate)||void 0===i?void 0:i.getTracer(e,t,r);},e);}();}),parcelRequire.register("fUIQl",function(e,t){$parcel$export(e.exports,"ProxyTracer",()=>i);var r=new(parcelRequire("8q9Nn").NoopTracer)(),i=/** @class */function(){function e(e,t,r,i){this._provider=e,this.name=t,this.version=r,this.options=i;}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r);},e.prototype.startActiveSpan=function(e,t,r,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments);},/** * Try to get a tracer from the proxy tracer provider. * If the proxy tracer provider has no delegate, return a noop tracer. */e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):r;},e;}();}),parcelRequire.register("8q9Nn",function(e,t){$parcel$export(e.exports,"NoopTracer",()=>s);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("72h6l"),i=parcelRequire("1rF3w"),a=parcelRequire("c2cFl"),n=parcelRequire("7Gaki"),o=(0,r.ContextAPI).getInstance(),s=/** @class */function(){function e(){}return(// startSpan starts a noop span. e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=o.active()),null==t?void 0:t.root)return new a.NonRecordingSpan();var s=r&&(0,i.getSpanContext)(r);return u(s)&&(0,n.isSpanContextValid)(s)?new a.NonRecordingSpan(s):new a.NonRecordingSpan();},e.prototype.startActiveSpan=function(e,t,r,a){if(!(arguments.length<2)){2==arguments.length?u=t:3==arguments.length?(n=t,u=r):(n=t,s=r,u=a);var n,s,u,c=null!=s?s:o.active(),l=this.startSpan(e,n,c),p=(0,i.setSpan)(c,l);return o.with(p,u,void 0,l);}},e);}();function u(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags;}}),parcelRequire.register("1rF3w",function(e,t){$parcel$export(e.exports,"getSpan",()=>o),$parcel$export(e.exports,"getActiveSpan",()=>s),$parcel$export(e.exports,"setSpan",()=>u),$parcel$export(e.exports,"deleteSpan",()=>c),$parcel$export(e.exports,"setSpanContext",()=>l),$parcel$export(e.exports,"getSpanContext",()=>p);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("9NuL1"),i=parcelRequire("c2cFl"),a=parcelRequire("72h6l"),n=(0,r.createContextKey)("OpenTelemetry Context Key SPAN");function o(e){return e.getValue(n)||void 0;}function s(){return o((0,a.ContextAPI).getInstance().active());}function u(e,t){return e.setValue(n,t);}function c(e){return e.deleteValue(n);}function l(e,t){return u(e,new i.NonRecordingSpan(t));}function p(e){var t;return null===(t=o(e))||void 0===t?void 0:t.spanContext();}}),parcelRequire.register("c2cFl",function(e,t){$parcel$export(e.exports,"NonRecordingSpan",()=>i);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("5PlQC"),i=/** @class */function(){function e(e){void 0===e&&(e=r.INVALID_SPAN_CONTEXT),this._spanContext=e;}return(// Returns a SpanContext. e.prototype.spanContext=function(){return this._spanContext;},// By default does nothing e.prototype.setAttribute=function(e,t){return this;},// By default does nothing e.prototype.setAttributes=function(e){return this;},// By default does nothing e.prototype.addEvent=function(e,t){return this;},// By default does nothing e.prototype.setStatus=function(e){return this;},// By default does nothing e.prototype.updateName=function(e){return this;},// By default does nothing e.prototype.end=function(e){},// isRecording always returns false for NonRecordingSpan. e.prototype.isRecording=function(){return!1;},// By default does nothing e.prototype.recordException=function(e,t){},e);}();}),parcelRequire.register("7Gaki",function(e,t){$parcel$export(e.exports,"isSpanContextValid",()=>u),$parcel$export(e.exports,"wrapSpanContext",()=>c);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("5PlQC"),i=parcelRequire("c2cFl"),a=/^([0-9a-f]{32})$/i,n=/^[0-9a-f]{16}$/i;function o(e){return a.test(e)&&e!==r.INVALID_TRACEID;}function s(e){return n.test(e)&&e!==r.INVALID_SPANID;}function u(e){return o(e.traceId)&&s(e.spanId);}function c(e){return new i.NonRecordingSpan(e);}}),parcelRequire.register("7thqo",function(e,t){$parcel$export(e.exports,"NoopTracerProvider",()=>i);/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var r=parcelRequire("8q9Nn"),i=/** @class */function(){function e(){}return e.prototype.getTracer=function(e,t,i){return new r.NoopTracer();},e;}();}),parcelRequire.register("3PTyM",function(e,t){$parcel$export(e.exports,"BlobDownloadResponse",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("lrZDM"),i=parcelRequire("e8Rvv");class a{/** * Creates an instance of BlobDownloadResponse. * * @param originalResponse - * @param getter - * @param offset - * @param count - * @param options - */constructor(e,t,r,a,n={}){this.originalResponse=e,this.blobDownloadStream=new i.RetriableReadableStream(this.originalResponse.readableStreamBody,t,r,a,n);}/** * Indicates that the service supports * requests for partial file content. * * @readonly */get acceptRanges(){return this.originalResponse.acceptRanges;}/** * Returns if it was previously specified * for the file. * * @readonly */get cacheControl(){return this.originalResponse.cacheControl;}/** * Returns the value that was specified * for the 'x-ms-content-disposition' header and specifies how to process the * response. * * @readonly */get contentDisposition(){return this.originalResponse.contentDisposition;}/** * Returns the value that was specified * for the Content-Encoding request header. * * @readonly */get contentEncoding(){return this.originalResponse.contentEncoding;}/** * Returns the value that was specified * for the Content-Language request header. * * @readonly */get contentLanguage(){return this.originalResponse.contentLanguage;}/** * The current sequence number for a * page blob. This header is not returned for block blobs or append blobs. * * @readonly */get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber;}/** * The blob's type. Possible values include: * 'BlockBlob', 'PageBlob', 'AppendBlob'. * * @readonly */get blobType(){return this.originalResponse.blobType;}/** * The number of bytes present in the * response body. * * @readonly */get contentLength(){return this.originalResponse.contentLength;}/** * If the file has an MD5 hash and the * request is to read the full file, this response header is returned so that * the client can check for message content integrity. If the request is to * read a specified range and the 'x-ms-range-get-content-md5' is set to * true, then the request returns an MD5 hash for the range, as long as the * range size is less than or equal to 4 MB. If neither of these sets of * conditions is true, then no value is returned for the 'Content-MD5' * header. * * @readonly */get contentMD5(){return this.originalResponse.contentMD5;}/** * Indicates the range of bytes returned if * the client requested a subset of the file by setting the Range request * header. * * @readonly */get contentRange(){return this.originalResponse.contentRange;}/** * The content type specified for the file. * The default content type is 'application/octet-stream' * * @readonly */get contentType(){return this.originalResponse.contentType;}/** * Conclusion time of the last attempted * Copy File operation where this file was the destination file. This value * can specify the time of a completed, aborted, or failed copy attempt. * * @readonly */get copyCompletedOn(){return this.originalResponse.copyCompletedOn;}/** * String identifier for the last attempted Copy * File operation where this file was the destination file. * * @readonly */get copyId(){return this.originalResponse.copyId;}/** * Contains the number of bytes copied and * the total bytes in the source in the last attempted Copy File operation * where this file was the destination file. Can show between 0 and * Content-Length bytes copied. * * @readonly */get copyProgress(){return this.originalResponse.copyProgress;}/** * URL up to 2KB in length that specifies the * source file used in the last attempted Copy File operation where this file * was the destination file. * * @readonly */get copySource(){return this.originalResponse.copySource;}/** * State of the copy operation * identified by 'x-ms-copy-id'. Possible values include: 'pending', * 'success', 'aborted', 'failed' * * @readonly */get copyStatus(){return this.originalResponse.copyStatus;}/** * Only appears when * x-ms-copy-status is failed or pending. Describes cause of fatal or * non-fatal copy operation failure. * * @readonly */get copyStatusDescription(){return this.originalResponse.copyStatusDescription;}/** * When a blob is leased, * specifies whether the lease is of infinite or fixed duration. Possible * values include: 'infinite', 'fixed'. * * @readonly */get leaseDuration(){return this.originalResponse.leaseDuration;}/** * Lease state of the blob. Possible * values include: 'available', 'leased', 'expired', 'breaking', 'broken'. * * @readonly */get leaseState(){return this.originalResponse.leaseState;}/** * The current lease status of the * blob. Possible values include: 'locked', 'unlocked'. * * @readonly */get leaseStatus(){return this.originalResponse.leaseStatus;}/** * A UTC date/time value generated by the service that * indicates the time at which the response was initiated. * * @readonly */get date(){return this.originalResponse.date;}/** * The number of committed blocks * present in the blob. This header is returned only for append blobs. * * @readonly */get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount;}/** * The ETag contains a value that you can use to * perform operations conditionally, in quotes. * * @readonly */get etag(){return this.originalResponse.etag;}/** * The number of tags associated with the blob * * @readonly */get tagCount(){return this.originalResponse.tagCount;}/** * The error code. * * @readonly */get errorCode(){return this.originalResponse.errorCode;}/** * The value of this header is set to * true if the file data and application metadata are completely encrypted * using the specified algorithm. Otherwise, the value is set to false (when * the file is unencrypted, or if only parts of the file/application metadata * are encrypted). * * @readonly */get isServerEncrypted(){return this.originalResponse.isServerEncrypted;}/** * If the blob has a MD5 hash, and if * request contains range header (Range or x-ms-range), this response header * is returned with the value of the whole blob's MD5 value. This value may * or may not be equal to the value returned in Content-MD5 header, with the * latter calculated from the requested range. * * @readonly */get blobContentMD5(){return this.originalResponse.blobContentMD5;}/** * Returns the date and time the file was last * modified. Any operation that modifies the file or its properties updates * the last modified time. * * @readonly */get lastModified(){return this.originalResponse.lastModified;}/** * Returns the UTC date and time generated by the service that indicates the time at which the blob was * last read or written to. * * @readonly */get lastAccessed(){return this.originalResponse.lastAccessed;}/** * Returns the date and time the blob was created. * * @readonly */get createdOn(){return this.originalResponse.createdOn;}/** * A name-value pair * to associate with a file storage object. * * @readonly */get metadata(){return this.originalResponse.metadata;}/** * This header uniquely identifies the request * that was made and can be used for troubleshooting the request. * * @readonly */get requestId(){return this.originalResponse.requestId;}/** * If a client request id header is sent in the request, this header will be present in the * response with the same value. * * @readonly */get clientRequestId(){return this.originalResponse.clientRequestId;}/** * Indicates the version of the Blob service used * to execute the request. * * @readonly */get version(){return this.originalResponse.version;}/** * Indicates the versionId of the downloaded blob version. * * @readonly */get versionId(){return this.originalResponse.versionId;}/** * Indicates whether version of this blob is a current version. * * @readonly */get isCurrentVersion(){return this.originalResponse.isCurrentVersion;}/** * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned * when the blob was encrypted with a customer-provided key. * * @readonly */get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256;}/** * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to * true, then the request returns a crc64 for the range, as long as the range size is less than * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is * specified in the same request, it will fail with 400(Bad Request) */get contentCrc64(){return this.originalResponse.contentCrc64;}/** * Object Replication Policy Id of the destination blob. * * @readonly */get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId;}/** * Parsed Object Replication Policy Id, Rule Id(s) and status of the source blob. * * @readonly */get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties;}/** * If this blob has been sealed. * * @readonly */get isSealed(){return this.originalResponse.isSealed;}/** * UTC date/time value generated by the service that indicates the time at which the blob immutability policy will expire. * * @readonly */get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn;}/** * Indicates immutability policy mode. * * @readonly */get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode;}/** * Indicates if a legal hold is present on the blob. * * @readonly */get legalHold(){return this.originalResponse.legalHold;}/** * The response body as a browser Blob. * Always undefined in node.js. * * @readonly */get contentAsBlob(){return this.originalResponse.blobBody;}/** * The response body as a node.js Readable stream. * Always undefined in the browser. * * It will automatically retry when internal read stream unexpected ends. * * @readonly */get readableStreamBody(){return r.isNode?this.blobDownloadStream:void 0;}/** * The HTTP response. */get _response(){return this.originalResponse._response;}}}),parcelRequire.register("e8Rvv",function(e,t){$parcel$export(e.exports,"RetriableReadableStream",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. class r extends $k14yv$stream.Readable{/** * Creates an instance of RetriableReadableStream. * * @param source - The current ReadableStream returned from getter * @param getter - A method calling downloading request returning * a new ReadableStream from specified offset * @param offset - Offset position in original data source to read * @param count - How much data in original data source to read * @param options - */constructor(e,t,r,i,a={}){super({highWaterMark:a.highWaterMark}),this.retries=0,this.sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.source.removeAllListeners("data"),this.source.emit("end");return;}// console.log( // `Offset: ${this.offset}, Received ${data.length} from internal stream` // ); this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause();},this.sourceErrorOrEndHandler=e=>{if(e&&"AbortError"===e.name){this.destroy(e);return;}// console.log( // `Source stream emits end or error, offset: ${ // this.offset // }, dest end : ${this.end}` // ); this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers();}).catch(e=>{this.destroy(e);})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`));},this.getter=t,this.source=e,this.start=r,this.offset=r,this.end=r+i-1,this.maxRetryRequests=a.maxRetryRequests&&a.maxRetryRequests>=0?a.maxRetryRequests:0,this.onProgress=a.onProgress,this.options=a,this.setSourceEventHandlers();}_read(){this.source.resume();}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler),this.source.on("end",this.sourceErrorOrEndHandler),this.source.on("error",this.sourceErrorOrEndHandler);}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler),this.source.removeListener("end",this.sourceErrorOrEndHandler),this.source.removeListener("error",this.sourceErrorOrEndHandler);}_destroy(e,t){// remove listener from source and release source this.removeSourceEventHandlers(),this.source.destroy(),t(null===e?void 0:e);}}}),parcelRequire.register("fJtif",function(e,t){$parcel$export(e.exports,"BlobQueryResponse",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("lrZDM"),i=parcelRequire("gXNtF");class a{/** * Creates an instance of BlobQueryResponse. * * @param originalResponse - * @param options - */constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new i.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t);}/** * Indicates that the service supports * requests for partial file content. * * @readonly */get acceptRanges(){return this.originalResponse.acceptRanges;}/** * Returns if it was previously specified * for the file. * * @readonly */get cacheControl(){return this.originalResponse.cacheControl;}/** * Returns the value that was specified * for the 'x-ms-content-disposition' header and specifies how to process the * response. * * @readonly */get contentDisposition(){return this.originalResponse.contentDisposition;}/** * Returns the value that was specified * for the Content-Encoding request header. * * @readonly */get contentEncoding(){return this.originalResponse.contentEncoding;}/** * Returns the value that was specified * for the Content-Language request header. * * @readonly */get contentLanguage(){return this.originalResponse.contentLanguage;}/** * The current sequence number for a * page blob. This header is not returned for block blobs or append blobs. * * @readonly */get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber;}/** * The blob's type. Possible values include: * 'BlockBlob', 'PageBlob', 'AppendBlob'. * * @readonly */get blobType(){return this.originalResponse.blobType;}/** * The number of bytes present in the * response body. * * @readonly */get contentLength(){return this.originalResponse.contentLength;}/** * If the file has an MD5 hash and the * request is to read the full file, this response header is returned so that * the client can check for message content integrity. If the request is to * read a specified range and the 'x-ms-range-get-content-md5' is set to * true, then the request returns an MD5 hash for the range, as long as the * range size is less than or equal to 4 MB. If neither of these sets of * conditions is true, then no value is returned for the 'Content-MD5' * header. * * @readonly */get contentMD5(){return this.originalResponse.contentMD5;}/** * Indicates the range of bytes returned if * the client requested a subset of the file by setting the Range request * header. * * @readonly */get contentRange(){return this.originalResponse.contentRange;}/** * The content type specified for the file. * The default content type is 'application/octet-stream' * * @readonly */get contentType(){return this.originalResponse.contentType;}/** * Conclusion time of the last attempted * Copy File operation where this file was the destination file. This value * can specify the time of a completed, aborted, or failed copy attempt. * * @readonly */get copyCompletedOn(){}/** * String identifier for the last attempted Copy * File operation where this file was the destination file. * * @readonly */get copyId(){return this.originalResponse.copyId;}/** * Contains the number of bytes copied and * the total bytes in the source in the last attempted Copy File operation * where this file was the destination file. Can show between 0 and * Content-Length bytes copied. * * @readonly */get copyProgress(){return this.originalResponse.copyProgress;}/** * URL up to 2KB in length that specifies the * source file used in the last attempted Copy File operation where this file * was the destination file. * * @readonly */get copySource(){return this.originalResponse.copySource;}/** * State of the copy operation * identified by 'x-ms-copy-id'. Possible values include: 'pending', * 'success', 'aborted', 'failed' * * @readonly */get copyStatus(){return this.originalResponse.copyStatus;}/** * Only appears when * x-ms-copy-status is failed or pending. Describes cause of fatal or * non-fatal copy operation failure. * * @readonly */get copyStatusDescription(){return this.originalResponse.copyStatusDescription;}/** * When a blob is leased, * specifies whether the lease is of infinite or fixed duration. Possible * values include: 'infinite', 'fixed'. * * @readonly */get leaseDuration(){return this.originalResponse.leaseDuration;}/** * Lease state of the blob. Possible * values include: 'available', 'leased', 'expired', 'breaking', 'broken'. * * @readonly */get leaseState(){return this.originalResponse.leaseState;}/** * The current lease status of the * blob. Possible values include: 'locked', 'unlocked'. * * @readonly */get leaseStatus(){return this.originalResponse.leaseStatus;}/** * A UTC date/time value generated by the service that * indicates the time at which the response was initiated. * * @readonly */get date(){return this.originalResponse.date;}/** * The number of committed blocks * present in the blob. This header is returned only for append blobs. * * @readonly */get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount;}/** * The ETag contains a value that you can use to * perform operations conditionally, in quotes. * * @readonly */get etag(){return this.originalResponse.etag;}/** * The error code. * * @readonly */get errorCode(){return this.originalResponse.errorCode;}/** * The value of this header is set to * true if the file data and application metadata are completely encrypted * using the specified algorithm. Otherwise, the value is set to false (when * the file is unencrypted, or if only parts of the file/application metadata * are encrypted). * * @readonly */get isServerEncrypted(){return this.originalResponse.isServerEncrypted;}/** * If the blob has a MD5 hash, and if * request contains range header (Range or x-ms-range), this response header * is returned with the value of the whole blob's MD5 value. This value may * or may not be equal to the value returned in Content-MD5 header, with the * latter calculated from the requested range. * * @readonly */get blobContentMD5(){return this.originalResponse.blobContentMD5;}/** * Returns the date and time the file was last * modified. Any operation that modifies the file or its properties updates * the last modified time. * * @readonly */get lastModified(){return this.originalResponse.lastModified;}/** * A name-value pair * to associate with a file storage object. * * @readonly */get metadata(){return this.originalResponse.metadata;}/** * This header uniquely identifies the request * that was made and can be used for troubleshooting the request. * * @readonly */get requestId(){return this.originalResponse.requestId;}/** * If a client request id header is sent in the request, this header will be present in the * response with the same value. * * @readonly */get clientRequestId(){return this.originalResponse.clientRequestId;}/** * Indicates the version of the File service used * to execute the request. * * @readonly */get version(){return this.originalResponse.version;}/** * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned * when the blob was encrypted with a customer-provided key. * * @readonly */get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256;}/** * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to * true, then the request returns a crc64 for the range, as long as the range size is less than * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is * specified in the same request, it will fail with 400(Bad Request) */get contentCrc64(){return this.originalResponse.contentCrc64;}/** * The response body as a browser Blob. * Always undefined in node.js. * * @readonly */get blobBody(){}/** * The response body as a node.js Readable stream. * Always undefined in the browser. * * It will parse avor data returned by blob query. * * @readonly */get readableStreamBody(){return r.isNode?this.blobDownloadStream:void 0;}/** * The HTTP response. */get _response(){return this.originalResponse._response;}}}),parcelRequire.register("gXNtF",function(e,t){$parcel$export(e.exports,"BlobQuickQueryStream",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("6gltH"),i=parcelRequire("4DO95");class a extends $k14yv$stream.Readable{/** * Creates an instance of BlobQuickQueryStream. * * @param source - The current ReadableStream returned from getter * @param options - */constructor(e,t={}){super(),this.avroPaused=!0,this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new r.AvroReader(new i.AvroReadableFromStream(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal});}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e);});}async readInternal(){let e;this.avroPaused=!1;do{if((e=await this.avroIter.next()).done)break;let t=e.value,r=t.$schema;if("string"!=typeof r)throw Error("Missing schema in avro record.");switch(r){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let e=t.data;if(e instanceof Uint8Array==!1)throw Error("Invalid data in avro result record.");this.push(Buffer.from(e))||(this.avroPaused=!0);}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let e=t.bytesScanned;if("number"!=typeof e)throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:e});}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let e=t.totalBytes;if("number"!=typeof e)throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:e});}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let e=t.fatal;if("boolean"!=typeof e)throw Error("Invalid fatal in avro error record.");let r=t.name;if("string"!=typeof r)throw Error("Invalid name in avro error record.");let i=t.description;if("string"!=typeof i)throw Error("Invalid description in avro error record.");let a=t.position;if("number"!=typeof a)throw Error("Invalid position in avro error record.");this.onError({position:a,name:r,isFatal:e,description:i});}break;default:throw Error(`Unknown schema ${r} in avro progress record.`);}}while(!e.done&&!this.avroPaused);}}}),parcelRequire.register("6gltH",function(e,t){$parcel$export(e.exports,"AvroReader",()=>o);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("9uR57");parcelRequire("9p2hp");var i=parcelRequire("kdMbX"),a=parcelRequire("6PkHc"),n=parcelRequire("iqCIj");class o{constructor(e,t,r,i){this._dataStream=e,this._headerStream=t||e,this._initialized=!1,this._blockOffset=r||0,this._objectIndex=i||0,this._initialBlockOffset=r||0;}get blockOffset(){return this._blockOffset;}get objectIndex(){return this._objectIndex;}async initialize(e={}){let t=await(0,a.AvroParser).readFixedBytes(this._headerStream,i.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,n.arraysEqual)(t,i.AVRO_INIT_BYTES))throw Error("Stream is not an Avro file.");// File metadata is written as if defined by the following map schema: // { "type": "map", "values": "bytes"} this._metadata=await(0,a.AvroParser).readMap(this._headerStream,a.AvroParser.readString,{abortSignal:e.abortSignal});// Validate codec let r=this._metadata[i.AVRO_CODEC_KEY];if(!(null==r||"null"===r))throw Error("Codecs are not supported");// The 16-byte, randomly-generated sync marker for this file. this._syncMarker=await(0,a.AvroParser).readFixedBytes(this._headerStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});// Parse the schema let o=JSON.parse(this._metadata[i.AVRO_SCHEMA_KEY]);if(this._itemType=(0,a.AvroType).fromSchema(o),0===this._blockOffset&&(this._blockOffset=this._initialBlockOffset+this._dataStream.position),this._itemsRemainingInBlock=await(0,a.AvroParser).readLong(this._dataStream,{abortSignal:e.abortSignal}),// skip block length await(0,a.AvroParser).readLong(this._dataStream,{abortSignal:e.abortSignal}),this._initialized=!0,this._objectIndex&&this._objectIndex>0)for(let t=0;t0;}parseObjects(e={}){return(0,r.__asyncGenerator)(this,arguments,function*(){for(this._initialized||(yield(0,r.__await)(this.initialize(e)));this.hasNext();){let t=yield(0,r.__await)(this._itemType.read(this._dataStream,{abortSignal:e.abortSignal}));if(this._itemsRemainingInBlock--,this._objectIndex++,0===this._itemsRemainingInBlock){let t=yield(0,r.__await)((0,a.AvroParser).readFixedBytes(this._dataStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal}));if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!(0,n.arraysEqual)(this._syncMarker,t))throw Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=yield(0,r.__await)((0,a.AvroParser).readLong(this._dataStream,{abortSignal:e.abortSignal}));}catch(e){// We hit the end of the stream. this._itemsRemainingInBlock=0;}this._itemsRemainingInBlock>0&&(yield(0,r.__await)((0,a.AvroParser).readLong(this._dataStream,{abortSignal:e.abortSignal})));}yield yield(0,r.__await)(t);}});}}}),parcelRequire.register("9p2hp",function(e,t){// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. parcelRequire("d72qk"),parcelRequire("6BYYC");}),parcelRequire.register("d72qk",function(e,t){// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. }),parcelRequire.register("6BYYC",function(e,t){parcelRequire("9uR57");}),parcelRequire.register("kdMbX",function(e,t){$parcel$export(e.exports,"AVRO_SYNC_MARKER_SIZE",()=>r),$parcel$export(e.exports,"AVRO_INIT_BYTES",()=>i),$parcel$export(e.exports,"AVRO_CODEC_KEY",()=>a),$parcel$export(e.exports,"AVRO_SCHEMA_KEY",()=>n);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. let r=16,i=new Uint8Array([79,98,106,1]),a="avro.codec",n="avro.schema";}),parcelRequire.register("6PkHc",function(e,t){var r,i;$parcel$export(e.exports,"AvroParser",()=>a),$parcel$export(e.exports,"AvroType",()=>n);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. class a{/** * Reads a fixed number of bytes from the stream. * * @param stream - * @param length - * @param options - */static async readFixedBytes(e,t,r={}){let i=await e.read(t,{abortSignal:r.abortSignal});if(i.length!==t)throw Error("Hit stream end.");return i;}/** * Reads a single byte from the stream. * * @param stream - * @param options - */static async readByte(e,t={}){let r=await a.readFixedBytes(e,1,t);return r[0];}// int and long are stored in variable-length zig-zag coding. // variable-length: https://lucene.apache.org/core/3_5_0/fileformats.html#VInt // zig-zag: https://developers.google.com/protocol-buffers/docs/encoding?csw=1#types static async readZigZagLong(e,t={}){let r,i,n,o=0,s=0;do i=128&(r=await a.readByte(e,t)),o|=(127&r)<Number.MAX_SAFE_INTEGER)throw Error("Integer overflow.");return i;}return o>>1^-(1&o);}static async readLong(e,t={}){return a.readZigZagLong(e,t);}static async readInt(e,t={}){return a.readZigZagLong(e,t);}static async readNull(){return null;}static async readBoolean(e,t={}){let r=await a.readByte(e,t);if(1===r)return!0;if(0===r)return!1;throw Error("Byte was not a boolean.");}static async readFloat(e,t={}){let r=await a.readFixedBytes(e,4,t),i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.getFloat32(0,!0);// littleEndian = true }static async readDouble(e,t={}){let r=await a.readFixedBytes(e,8,t),i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.getFloat64(0,!0);// littleEndian = true }static async readBytes(e,t={}){let r=await a.readLong(e,t);if(r<0)throw Error("Bytes size was negative.");return e.read(r,{abortSignal:t.abortSignal});}static async readString(e,t={}){let r=await a.readBytes(e,t),i=new TextDecoder();return i.decode(r);}static async readMapPair(e,t,r={}){let i=await a.readString(e,r),n=await t(e,r);return{key:i,value:n};}static async readMap(e,t,r={}){let i=(e,r={})=>a.readMapPair(e,t,r),n=await a.readArray(e,i,r),o={};for(let e of n)o[e.key]=e.value;return o;}static async readArray(e,t,r={}){let i=[];for(let n=await a.readLong(e,r);0!==n;n=await a.readLong(e,r))for(n<0&&(// Ignore block sizes await a.readLong(e,r),n=-n);n--;){let a=await t(e,r);i.push(a);}return i;}}(function(e){e.RECORD="record",e.ENUM="enum",e.ARRAY="array",e.MAP="map",e.UNION="union",e.FIXED="fixed";})(r||(r={})),function(e){e.NULL="null",e.BOOLEAN="boolean",e.INT="int",e.LONG="long",e.FLOAT="float",e.DOUBLE="double",e.BYTES="bytes",e.STRING="string";}(i||(i={}));class n{/** * Determines the AvroType from the Avro Schema. */static fromSchema(e){return"string"==typeof e?n.fromStringSchema(e):Array.isArray(e)?n.fromArraySchema(e):n.fromObjectSchema(e);}static fromStringSchema(e){switch(e){case i.NULL:case i.BOOLEAN:case i.INT:case i.LONG:case i.FLOAT:case i.DOUBLE:case i.BYTES:case i.STRING:return new o(e);default:throw Error(`Unexpected Avro type ${e}`);}}static fromArraySchema(e){return new u(e.map(n.fromSchema));}static fromObjectSchema(e){let t=e.type;// Primitives can be defined as strings or objects try{return n.fromStringSchema(t);}catch(e){// eslint-disable-line no-empty }switch(t){case r.RECORD:if(e.aliases)throw Error(`aliases currently is not supported, schema: ${e}`);if(!e.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${e}`);// eslint-disable-next-line no-case-declarations let i={};if(!e.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let t of e.fields)i[t.name]=n.fromSchema(t.type);return new l(i,e.name);case r.ENUM:if(e.aliases)throw Error(`aliases currently is not supported, schema: ${e}`);if(!e.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`);return new s(e.symbols);case r.MAP:if(!e.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new c(n.fromSchema(e.values));case r.ARRAY:case r.FIXED:default:throw Error(`Unexpected Avro type ${t} in ${e}`);}}}class o extends n{constructor(e){super(),this._primitive=e;}read(e,t={}){switch(this._primitive){case i.NULL:return a.readNull();case i.BOOLEAN:return a.readBoolean(e,t);case i.INT:return a.readInt(e,t);case i.LONG:return a.readLong(e,t);case i.FLOAT:return a.readFloat(e,t);case i.DOUBLE:return a.readDouble(e,t);case i.BYTES:return a.readBytes(e,t);case i.STRING:return a.readString(e,t);default:throw Error("Unknown Avro Primitive");}}}class s extends n{constructor(e){super(),this._symbols=e;}async read(e,t={}){let r=await a.readInt(e,t);return this._symbols[r];}}class u extends n{constructor(e){super(),this._types=e;}async read(e,t={}){// eslint-disable-line @typescript-eslint/ban-types let r=await a.readInt(e,t);return this._types[r].read(e,t);}}class c extends n{constructor(e){super(),this._itemType=e;}read(e,t={}){let r=(e,t)=>this._itemType.read(e,t);return a.readMap(e,r,t);}}class l extends n{constructor(e,t){super(),this._fields=e,this._name=t;}async read(e,t={}){let r={};for(let i in r.$schema=this._name,this._fields)Object.prototype.hasOwnProperty.call(this._fields,i)&&(r[i]=await this._fields[i].read(e,t));return r;}}}),parcelRequire.register("iqCIj",function(e,t){$parcel$export(e.exports,"arraysEqual",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. function r(e,t){if(e===t)return!0;// eslint-disable-next-line eqeqeq if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;rn);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("1Gs4H"),i=parcelRequire("708hs");let a=new i.AbortError("Reading from the avro stream was aborted.");class n extends r.AvroReadable{constructor(e){super(),this._readable=e,this._position=0;}toUint8Array(e){return"string"==typeof e?Buffer.from(e):e;}get position(){return this._position;}async read(e,t={}){var r;if(null===(r=t.abortSignal)||void 0===r?void 0:r.aborted)throw a;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(0===e)return new Uint8Array();if(!this._readable.readable)throw Error("Stream no longer readable.");// See if there is already enough data. let i=this._readable.read(e);return i?(this._position+=i.length,this.toUint8Array(i)):new Promise((r,i)=>{/* eslint-disable @typescript-eslint/no-use-before-define */let n=()=>{this._readable.removeListener("readable",o),this._readable.removeListener("error",s),this._readable.removeListener("end",s),this._readable.removeListener("close",s),t.abortSignal&&t.abortSignal.removeEventListener("abort",u);},o=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,n(),// callbackChunk.length maybe less than desired size if the stream ends. r(this.toUint8Array(t)));},s=()=>{n(),i();},u=()=>{n(),i(a);};this._readable.on("readable",o),this._readable.once("error",s),this._readable.once("end",s),this._readable.once("close",s),t.abortSignal&&t.abortSignal.addEventListener("abort",u);/* eslint-enable @typescript-eslint/no-use-before-define */});}}}),parcelRequire.register("1Gs4H",function(e,t){$parcel$export(e.exports,"AvroReadable",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. class r{}}),parcelRequire.register("708hs",function(e,t){$parcel$export(e.exports,"AbortError",()=>i),$parcel$export(e.exports,"AbortController",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("ftGSl");class i extends Error{constructor(e){super(e),this.name="AbortError";}}class a{// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types constructor(e){if(this._signal=new r.AbortSignal(),!e)return;for(let t of(Array.isArray(e)||(e=arguments),e))t.aborted?this.abort():t.addEventListener("abort",()=>{this.abort();});}/** * The AbortSignal associated with this controller that will signal aborted * when the abort method is called on this controller. * * @readonly */get signal(){return this._signal;}/** * Signal that any operations passed this controller's associated abort signal * to cancel any remaining work and throw an `AbortError`. */abort(){(0,r.abortSignal)(this._signal);}/** * Creates a new AbortSignal instance that will abort after the provided ms. * @param ms - Elapsed time in milliseconds to trigger an abort. */static timeout(e){let t=new r.AbortSignal(),i=setTimeout(r.abortSignal,e,t);return"function"==typeof i.unref&&i.unref(),t;}}}),parcelRequire.register("ftGSl",function(e,t){$parcel$export(e.exports,"AbortSignal",()=>a),$parcel$export(e.exports,"abortSignal",()=>n);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /// let r=new WeakMap(),i=new WeakMap();class a{constructor(){/** * onabort event listener. */this.onabort=null,r.set(this,[]),i.set(this,!1);}/** * Status of whether aborted or not. * * @readonly */get aborted(){if(!i.has(this))throw TypeError("Expected `this` to be an instance of AbortSignal.");return i.get(this);}/** * Creates a new AbortSignal instance that will never be aborted. * * @readonly */static get none(){return new a();}/** * Added new "abort" event listener, only support "abort" event. * * @param _type - Only support "abort" event * @param listener - The listener to be added */addEventListener(e,t){if(!r.has(this))throw TypeError("Expected `this` to be an instance of AbortSignal.");let i=r.get(this);i.push(t);}/** * Remove "abort" event listener, only support "abort" event. * * @param _type - Only support "abort" event * @param listener - The listener to be removed */removeEventListener(e,t){if(!r.has(this))throw TypeError("Expected `this` to be an instance of AbortSignal.");let i=r.get(this),a=i.indexOf(t);a>-1&&i.splice(a,1);}/** * Dispatches a synthetic event to the AbortSignal. */dispatchEvent(e){throw Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.");}}function n(e){if(e.aborted)return;e.onabort&&e.onabort.call(e);let t=r.get(e);t&&// (e.g. via removeListener calls) don't affect the listeners // we invoke. t.slice().forEach(t=>{t.call(e,{type:"abort"});}),i.set(e,!0);}}),parcelRequire.register("lncUR",function(e,t){$parcel$export(e.exports,"AnonymousCredential",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("acV1f"),i=parcelRequire("fkoc5");class a extends i.Credential{/** * Creates an {@link AnonymousCredentialPolicy} object. * * @param nextPolicy - * @param options - */create(e,t){return new r.AnonymousCredentialPolicy(e,t);}}}),parcelRequire.register("acV1f",function(e,t){$parcel$export(e.exports,"AnonymousCredentialPolicy",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("fR1l8");class i extends r.CredentialPolicy{/** * Creates an instance of AnonymousCredentialPolicy. * @param nextPolicy - * @param options - */ // The base class has a protected constructor. Adding a public one to enable constructing of this class. /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/constructor(e,t){super(e,t);}}}),parcelRequire.register("fR1l8",function(e,t){$parcel$export(e.exports,"CredentialPolicy",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("42Oo8");class i extends r.BaseRequestPolicy{/** * Sends out request. * * @param request - */sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e));}/** * Child classes must implement this method with request signing. This method * will be executed in {@link sendRequest}. * * @param request - */signRequest(e){// Child classes must override this method with request signing. This method // will be executed in sendRequest(). return e;}}}),parcelRequire.register("fkoc5",function(e,t){$parcel$export(e.exports,"Credential",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * Credential is an abstract class for Azure Storage HTTP requests signing. This * class will host an credentialPolicyCreator factory which generates CredentialPolicy. */class r{/** * Creates a RequestPolicy object. * * @param _nextPolicy - * @param _options - */create(e,t){throw Error("Method should be implemented in children classes.");}}}),parcelRequire.register("cLpTG",function(e,t){$parcel$export(e.exports,"StorageSharedKeyCredential",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("jD4bY"),i=parcelRequire("fkoc5");class a extends i.Credential{/** * Creates an instance of StorageSharedKeyCredential. * @param accountName - * @param accountKey - */constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,"base64");}/** * Creates a StorageSharedKeyCredentialPolicy object. * * @param nextPolicy - * @param options - */create(e,t){return new r.StorageSharedKeyCredentialPolicy(e,t,this);}/** * Generates a hash signature for an HTTP request or for a SAS. * * @param stringToSign - */computeHMACSHA256(e){return(0,$k14yv$crypto.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64");}}}),parcelRequire.register("jD4bY",function(e,t){$parcel$export(e.exports,"StorageSharedKeyCredentialPolicy",()=>n);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("5MFjo"),i=parcelRequire("e7JkV"),a=parcelRequire("fR1l8");class n extends a.CredentialPolicy{/** * Creates an instance of StorageSharedKeyCredentialPolicy. * @param nextPolicy - * @param options - * @param factory - */constructor(e,t,r){super(e,t),this.factory=r;}/** * Signs request. * * @param request - */signRequest(e){e.headers.set(r.HeaderConstants.X_MS_DATE,new Date().toUTCString()),e.body&&("string"==typeof e.body||void 0!==e.body)&&e.body.length>0&&e.headers.set(r.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,r.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,r.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,r.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,r.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,r.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,r.HeaderConstants.DATE),this.getHeaderValueToSign(e,r.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,r.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,r.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,r.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,r.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(t);// console.log(`[URL]:${request.url}`); // console.log(`[HEADERS]:${request.headers.toString()}`); // console.log(`[STRING TO SIGN]:${JSON.stringify(stringToSign)}`); // console.log(`[KEY]: ${request.headers.get(HeaderConstants.AUTHORIZATION)}`); return e.headers.set(r.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e;}/** * Retrieve header value according to shared key sign rules. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key * * @param request - * @param headerName - */getHeaderValueToSign(e,t){let i=e.headers.get(t);return i&&(t!==r.HeaderConstants.CONTENT_LENGTH||"0"!==i)?i:"";}/** * To construct the CanonicalizedHeaders portion of the signature string, follow these steps: * 1. Retrieve all headers for the resource that begin with x-ms-, including the x-ms-date header. * 2. Convert each HTTP header name to lowercase. * 3. Sort the headers lexicographically by header name, in ascending order. * Each header may appear only once in the string. * 4. Replace any linear whitespace in the header value with a single space. * 5. Trim any whitespace around the colon in the header. * 6. Finally, append a new-line character to each canonicalized header in the resulting list. * Construct the CanonicalizedHeaders string by concatenating all headers in this list into a single string. * * @param request - */getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(r.HeaderConstants.PREFIX_FOR_STORAGE));t.sort((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase()));let i="";return(// Remove duplicate headers (t=t.filter((e,t,r)=>!(t>0)||e.name.toLowerCase()!==r[t-1].name.toLowerCase())).forEach(e=>{i+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()} `;}),i);}/** * Retrieves the webResource canonicalized resource string. * * @param request - */getCanonicalizedResourceString(e){let t=(0,i.getURLPath)(e.url)||"/",r="";r+=`/${this.factory.accountName}${t}`;let a=(0,i.getURLQueries)(e.url),n={};if(a){let e=[];for(let t in a)if(Object.prototype.hasOwnProperty.call(a,t)){let r=t.toLowerCase();n[r]=a[t],e.push(r);}for(let t of(e.sort(),e))r+=` ${t}:${decodeURIComponent(n[t])}`;}return r;}}}),parcelRequire.register("5MFjo",function(e,t){$parcel$export(e.exports,"SDK_VERSION",()=>r),$parcel$export(e.exports,"SERVICE_VERSION",()=>i),$parcel$export(e.exports,"BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES",()=>a),$parcel$export(e.exports,"BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES",()=>n),$parcel$export(e.exports,"BLOCK_BLOB_MAX_BLOCKS",()=>o),$parcel$export(e.exports,"DEFAULT_BLOCK_BUFFER_SIZE_BYTES",()=>s),$parcel$export(e.exports,"DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES",()=>u),$parcel$export(e.exports,"DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS",()=>c),$parcel$export(e.exports,"REQUEST_TIMEOUT",()=>l),$parcel$export(e.exports,"StorageOAuthScopes",()=>p),$parcel$export(e.exports,"URLConstants",()=>d),$parcel$export(e.exports,"HeaderConstants",()=>m),$parcel$export(e.exports,"ETagNone",()=>h),$parcel$export(e.exports,"ETagAny",()=>x),$parcel$export(e.exports,"EncryptionAlgorithmAES25",()=>f),$parcel$export(e.exports,"DevelopmentConnectionString",()=>g),$parcel$export(e.exports,"StorageBlobLoggingAllowedHeaderNames",()=>D),$parcel$export(e.exports,"StorageBlobLoggingAllowedQueryParameters",()=>y),$parcel$export(e.exports,"BlobUsesCustomerSpecifiedEncryptionMsg",()=>b),$parcel$export(e.exports,"BlobDoesNotUseCustomerSpecifiedEncryption",()=>v),$parcel$export(e.exports,"PathStylePorts",()=>C);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. let r="12.15.0",i="2023-01-03",a=268435456,n=4194304e3,o=5e4,s=8388608,u=4194304,c=5,l=1e5,p="https://storage.azure.com/.default",d={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},m={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"},h="",x="*",f="AES256",g="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",D=["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"],y=["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"],b="BlobUsesCustomerSpecifiedEncryption",v="BlobDoesNotUseCustomerSpecifiedEncryption",C=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];}),parcelRequire.register("e7JkV",function(e,t){$parcel$export(e.exports,"escapeURLPath",()=>n),$parcel$export(e.exports,"extractConnectionStringParts",()=>u),$parcel$export(e.exports,"getAccountNameFromUrl",()=>A),$parcel$export(e.exports,"appendToURLPath",()=>l),$parcel$export(e.exports,"setURLParameter",()=>p),$parcel$export(e.exports,"getURLParameter",()=>d),$parcel$export(e.exports,"setURLHost",()=>m),$parcel$export(e.exports,"getURLPath",()=>h),$parcel$export(e.exports,"getURLScheme",()=>x),$parcel$export(e.exports,"getURLQueries",()=>f),$parcel$export(e.exports,"appendToURLQuery",()=>g),$parcel$export(e.exports,"truncatedISO8061Date",()=>D),$parcel$export(e.exports,"generateBlockID",()=>b),$parcel$export(e.exports,"delay",()=>v),$parcel$export(e.exports,"iEqual",()=>E),$parcel$export(e.exports,"isIpEndpointStyle",()=>S),$parcel$export(e.exports,"toBlobTagsString",()=>B),$parcel$export(e.exports,"toBlobTags",()=>N),$parcel$export(e.exports,"toTags",()=>F),$parcel$export(e.exports,"toQuerySerialization",()=>w),$parcel$export(e.exports,"parseObjectReplicationRecord",()=>P),$parcel$export(e.exports,"attachCredential",()=>T),$parcel$export(e.exports,"httpAuthorizationToString",()=>O),$parcel$export(e.exports,"ExtractPageRangeInfoItems",()=>R);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("18oFr"),i=parcelRequire("lrZDM");parcelRequire("awoW3");var a=parcelRequire("5MFjo");function n(e){let t=(0,r.URLBuilder).parse(e),i=t.getPath();return i=c(i=i||"/"),t.setPath(i),t.toString();}function o(e){// Development Connection String // https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#connect-to-the-emulator-account-using-the-well-known-account-name-and-key let t="";if(-1!==e.search("DevelopmentStorageProxyUri=")){// CONNECTION_STRING=UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://myProxyUri let r=e.split(";");for(let e of r)e.trim().startsWith("DevelopmentStorageProxyUri=")&&(t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]);}return t;}function s(e,t){let r=e.split(";");for(let e of r)if(e.trim().startsWith(t))return e.trim().match(t+"=(.*)")[1];return"";}function u(e){let t="";e.startsWith("UseDevelopmentStorage=true")&&(// Development connection string t=o(e),e=a.DevelopmentConnectionString);// Matching BlobEndpoint in the Account connection string let r=s(e,"BlobEndpoint");if(// Slicing off '/' at the end if exists // (The methods that use `extractConnectionStringParts` expect the url to not have `/` at the end) r=r.endsWith("/")?r.slice(0,-1):r,-1!==e.search("DefaultEndpointsProtocol=")&&-1!==e.search("AccountKey=")){// Account connection string let i="",a="",n=Buffer.from("accountKey","base64"),o="";if(// Get account name and key a=s(e,"AccountName"),n=Buffer.from(s(e,"AccountKey"),"base64"),!r){// BlobEndpoint is not present in the Account connection string // Can be obtained from `${defaultEndpointsProtocol}://${accountName}.blob.${endpointSuffix}` i=s(e,"DefaultEndpointsProtocol");let t=i.toLowerCase();if("https"!==t&&"http"!==t)throw Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(!(o=s(e,"EndpointSuffix")))throw Error("Invalid EndpointSuffix in the provided Connection String");r=`${i}://${a}.blob.${o}`;}if(a){if(0===n.length)throw Error("Invalid AccountKey in the provided Connection String");}else throw Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:a,accountKey:n,proxyUri:t};}{// SAS connection string let t=s(e,"SharedAccessSignature"),i=A(r);if(r){if(!t)throw Error("Invalid SharedAccessSignature in the provided SAS Connection String");}else throw Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:r,accountName:i,accountSas:t};}}/** * Internal escape method implemented Strategy Two mentioned in escapeURL() description. * * @param text - */function c(e){return encodeURIComponent(e).replace(/%2F/g,"/")// Don't escape for "/" .replace(/'/g,"%27")// Escape for "'" .replace(/\+/g,"%20").replace(/%25/g,"%");// Revert encoded "%" }function l(e,t){let i=(0,r.URLBuilder).parse(e),a=i.getPath();a=a?a.endsWith("/")?`${a}${t}`:`${a}/${t}`:t,i.setPath(a);let n=new URL(i.toString());return n.toString();}function p(e,t,i){let a=(0,r.URLBuilder).parse(e);return a.setQueryParameter(t,i),a.toString();}function d(e,t){let i=(0,r.URLBuilder).parse(e);return i.getQueryParameterValue(t);}function m(e,t){let i=(0,r.URLBuilder).parse(e);return i.setHost(t),i.toString();}function h(e){let t=(0,r.URLBuilder).parse(e);return t.getPath();}function x(e){let t=(0,r.URLBuilder).parse(e);return t.getScheme();}function f(e){let t=(0,r.URLBuilder).parse(e).getQuery();if(!t)return{};let i=(t=(t=t.trim()).startsWith("?")?t.substr(1):t).split("&");i=i.filter(e=>{let t=e.indexOf("="),r=e.lastIndexOf("=");return t>0&&t===r&&ra&&(e=e.slice(0,a));let n=e+C(t.toString(),r-e.length,"0");return y(n);}async function v(e,t,r){return new Promise((i,a)=>{let n;let o=()=>{void 0!==n&&clearTimeout(n),a(r);},s=()=>{void 0!==t&&t.removeEventListener("abort",o),i();};n=setTimeout(s,e),void 0!==t&&t.addEventListener("abort",o);});}function C(e,t,r=" "){return(// @ts-expect-error: TS doesn't know this code needs to run downlevel sometimes String.prototype.padStart?e.padStart(t,r):(r=r||" ",e.length>t)?e:((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),r.slice(0,t)+e));}function E(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase();}function A(e){let t;let i=(0,r.URLBuilder).parse(e);try{return t="blob"===i.getHost().split(".")[1]?i.getHost().split(".")[0]:S(i)?i.getPath().split("/")[1]:"";}catch(e){throw Error("Unable to extract accountName with provided information.");}}function S(e){if(void 0===e.getHost())return!1;let t=e.getHost()+(void 0===e.getPort()?"":":"+e.getPort());// Case 1: Ipv6, use a broad regex to find out candidates whose host contains two ':'. // Case 2: localhost(:port), use broad regex to match port part. // Case 3: Ipv4, use broad regex which just check if host contains Ipv4. // For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html. return /^.*:.*:.*$|^localhost(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||void 0!==e.getPort()&&(0,a.PathStylePorts).includes(e.getPort());}function B(e){if(void 0===e)return;let t=[];for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let i=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(i)}`);}return t.join("&");}function N(e){if(void 0===e)return;let t={blobTagSet:[]};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let i=e[r];t.blobTagSet.push({key:r,value:i});}return t;}function F(e){if(void 0===e)return;let t={};for(let r of e.blobTagSet)t[r.key]=r.value;return t;}function w(e){if(void 0!==e)switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.");}}function P(e){if(!e||"policy-id"in e)return;let t=[];for(let r in e){let i=r.split("_"),a="or-";i[0].startsWith(a)&&(i[0]=i[0].substring(a.length));let n={ruleId:i[1],replicationStatus:e[r]},o=t.findIndex(e=>e.policyId===i[0]);o>-1?t[o].rules.push(n):t.push({policyId:i[0],rules:[n]});}return t;}function T(e,t){return e.credential=t,e;}function O(e){return e?e.scheme+" "+e.value:void 0;}function*R(e){let t=[],r=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(r=e.clearRange);let i=0,a=0;for(;ii),$parcel$export(e.exports,"HttpHeaders",()=>a);class a{constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t]);}/** * Set a header in this collection with the provided name and value. The name is * case-insensitive. * @param headerName - The name of the header to set. This value is case-insensitive. * @param headerValue - The value of the header to set. */set(e,t){this._headersMap[r(e)]={name:e,value:t.toString()};}/** * Get the header value for the provided header name, or undefined if no header exists in this * collection with the provided name. * @param headerName - The name of the header. */get(e){let t=this._headersMap[r(e)];return t?t.value:void 0;}/** * Get whether or not this header collection contains a header entry for the provided header name. */contains(e){return!!this._headersMap[r(e)];}/** * Remove the header with the provided headerName. Return whether or not the header existed and * was removed. * @param headerName - The name of the header to remove. */remove(e){let t=this.contains(e);return delete this._headersMap[r(e)],t;}/** * Get the headers that are contained this collection as an object. */rawHeaders(){return this.toJson({preserveCase:!0});}/** * Get the headers that are contained in this collection as an array. */headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e;}/** * Get the header names that are contained in this collection. */headerNames(){let e=[],t=this.headersArray();for(let r=0;ro);/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */var r=parcelRequire("ivnR6"),i=parcelRequire("e5kiN"),a=parcelRequire("iGLpU"),n=parcelRequire("4lprA");class o{/** * Initialize a new instance of the class Blob class. * @param client Reference to the service client */constructor(e){this.client=e;}/** * The Download operation reads or downloads a blob from the system, including its metadata and * properties. You can also call Download to read a snapshot. * @param options The options parameters. */download(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,u);}/** * The Get Properties operation returns all user-defined metadata, standard HTTP properties, and system * properties for the blob. It does not return the content of the blob. * @param options The options parameters. */getProperties(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,c);}/** * If the storage account's soft delete feature is disabled then, when a blob is deleted, it is * permanently removed from the storage account. If the storage account's soft delete feature is * enabled, then, when a blob is deleted, it is marked for deletion and becomes inaccessible * immediately. However, the blob service retains the blob or snapshot for the number of days specified * by the DeleteRetentionPolicy section of [Storage service properties] * (Set-Blob-Service-Properties.md). After the specified number of days has passed, the blob's data is * permanently removed from the storage account. Note that you continue to be charged for the * soft-deleted blob's storage until it is permanently removed. Use the List Blobs API and specify the * "include=deleted" query parameter to discover which blobs and snapshots have been soft deleted. You * can then use the Undelete Blob API to restore a soft-deleted blob. All other operations on a * soft-deleted blob or snapshot causes the service to return an HTTP status code of 404 * (ResourceNotFound). * @param options The options parameters. */delete(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,l);}/** * Undelete a blob that was previously soft deleted * @param options The options parameters. */undelete(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,p);}/** * Sets the time a blob will expire and be deleted. * @param expiryOptions Required. Indicates mode of the expiry time * @param options The options parameters. */setExpiry(e,t){let i={expiryOptions:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,d);}/** * The Set HTTP Headers operation sets system properties on the blob * @param options The options parameters. */setHttpHeaders(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,m);}/** * The Set Immutability Policy operation sets the immutability policy on the blob * @param options The options parameters. */setImmutabilityPolicy(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,h);}/** * The Delete Immutability Policy operation deletes the immutability policy on the blob * @param options The options parameters. */deleteImmutabilityPolicy(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,x);}/** * The Set Legal Hold operation sets a legal hold on the blob. * @param legalHold Specified if a legal hold should be set on the blob. * @param options The options parameters. */setLegalHold(e,t){let i={legalHold:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,f);}/** * The Set Blob Metadata operation sets user-defined metadata for the specified blob as one or more * name-value pairs * @param options The options parameters. */setMetadata(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,g);}/** * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete * operations * @param options The options parameters. */acquireLease(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,D);}/** * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete * operations * @param leaseId Specifies the current lease ID on the resource. * @param options The options parameters. */releaseLease(e,t){let i={leaseId:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,y);}/** * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete * operations * @param leaseId Specifies the current lease ID on the resource. * @param options The options parameters. */renewLease(e,t){let i={leaseId:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,b);}/** * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete * operations * @param leaseId Specifies the current lease ID on the resource. * @param proposedLeaseId Proposed lease ID, in a GUID string format. The Blob service returns 400 * (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor * (String) for a list of valid GUID string formats. * @param options The options parameters. */changeLease(e,t,i){let a={leaseId:e,proposedLeaseId:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,v);}/** * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete * operations * @param options The options parameters. */breakLease(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,C);}/** * The Create Snapshot operation creates a read-only snapshot of a blob * @param options The options parameters. */createSnapshot(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,E);}/** * The Start Copy From URL operation copies a blob or an internet resource to a new blob. * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would * appear in a request URI. The source blob must either be public or must be authenticated via a shared * access signature. * @param options The options parameters. */startCopyFromURL(e,t){let i={copySource:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,A);}/** * The Copy From URL operation copies a blob or an internet resource to a new blob. It will not return * a response until the copy is complete. * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would * appear in a request URI. The source blob must either be public or must be authenticated via a shared * access signature. * @param options The options parameters. */copyFromURL(e,t){let i={copySource:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,S);}/** * The Abort Copy From URL operation aborts a pending Copy From URL operation, and leaves a destination * blob with zero length and full metadata. * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy Blob * operation. * @param options The options parameters. */abortCopyFromURL(e,t){let i={copyId:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,B);}/** * The Set Tier operation sets the tier on a blob. The operation is allowed on a page blob in a premium * storage account and on a block blob in a blob storage account (locally redundant storage only). A * premium page blob's tier determines the allowed size, IOPS, and bandwidth of the blob. A block * blob's tier determines Hot/Cool/Archive storage type. This operation does not update the blob's * ETag. * @param tier Indicates the tier to be set on the blob. * @param options The options parameters. */setTier(e,t){let i={tier:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,N);}/** * Returns the sku name and account kind * @param options The options parameters. */getAccountInfo(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,F);}/** * The Query operation enables users to select/project on blob data by providing simple query * expressions. * @param options The options parameters. */query(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,w);}/** * The Get Tags operation enables users to get the tags associated with a blob. * @param options The options parameters. */getTags(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,P);}/** * The Set Tags operation enables users to set tags on a blob. * @param options The options parameters. */setTags(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,T);}}// Operation Specifications let s=new i.Serializer(a,/* isXml */!0),u={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:a.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:a.BlobDownloadHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobDownloadExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.snapshot,n.versionId],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.range,n.rangeGetContentMD5,n.rangeGetContentCRC64,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},c={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:a.BlobGetPropertiesHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobGetPropertiesExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.snapshot,n.versionId],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},l={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:a.BlobDeleteHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobDeleteExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.snapshot,n.versionId,n.blobDeleteType],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.ifTags,n.deleteSnapshots],isXML:!0,serializer:s},p={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobUndeleteHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobUndeleteExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp8],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1],isXML:!0,serializer:s},d={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobSetExpiryHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetExpiryExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp11],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.expiryOptions,n.expiresOn],isXML:!0,serializer:s},m={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobSetHttpHeadersHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[n.comp,n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobCacheControl,n.blobContentType,n.blobContentMD5,n.blobContentEncoding,n.blobContentLanguage,n.blobContentDisposition],isXML:!0,serializer:s},h={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp12],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifUnmodifiedSince,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode],isXML:!0,serializer:s},x={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:a.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp12],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1],isXML:!0,serializer:s},f={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobSetLegalHoldHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetLegalHoldExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp13],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.legalHold],isXML:!0,serializer:s},g={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobSetMetadataHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetMetadataExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp6],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope],isXML:!0,serializer:s},D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlobAcquireLeaseHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobAcquireLeaseExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp10],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifModifiedSince,n.ifUnmodifiedSince,n.action,n.duration,n.proposedLeaseId,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobReleaseLeaseHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobReleaseLeaseExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp10],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifModifiedSince,n.ifUnmodifiedSince,n.action1,n.leaseId1,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},b={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobRenewLeaseHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobRenewLeaseExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp10],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifModifiedSince,n.ifUnmodifiedSince,n.leaseId1,n.action2,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobChangeLeaseHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobChangeLeaseExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp10],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifModifiedSince,n.ifUnmodifiedSince,n.leaseId1,n.action4,n.proposedLeaseId1,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},C={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:a.BlobBreakLeaseHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobBreakLeaseExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp10],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifModifiedSince,n.ifUnmodifiedSince,n.action3,n.breakPeriod,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},E={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlobCreateSnapshotHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobCreateSnapshotExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp14],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope],isXML:!0,serializer:s},A={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:a.BlobStartCopyFromURLHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.ifTags,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode,n.tier,n.rehydratePriority,n.sourceIfModifiedSince,n.sourceIfUnmodifiedSince,n.sourceIfMatch,n.sourceIfNoneMatch,n.sourceIfTags,n.copySource,n.blobTagsString,n.sealBlob,n.legalHold1],isXML:!0,serializer:s},S={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:a.BlobCopyFromURLHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobCopyFromURLExceptionHeaders}},queryParameters:[n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.ifTags,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode,n.encryptionScope,n.tier,n.sourceIfModifiedSince,n.sourceIfUnmodifiedSince,n.sourceIfMatch,n.sourceIfNoneMatch,n.copySource,n.blobTagsString,n.legalHold1,n.xMsRequiresSync,n.sourceContentMD5,n.copySourceAuthorization,n.copySourceTags],isXML:!0,serializer:s},B={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:a.BlobAbortCopyFromURLHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp15,n.copyId],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.copyActionAbortConstant],isXML:!0,serializer:s},N={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.BlobSetTierHeaders},202:{headersMapper:a.BlobSetTierHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetTierExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.snapshot,n.versionId,n.comp16],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifTags,n.rehydratePriority,n.tier1],isXML:!0,serializer:s},F={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:a.BlobGetAccountInfoHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobGetAccountInfoExceptionHeaders}},queryParameters:[n.comp,n.restype1],urlParameters:[n.url],headerParameters:[n.version,n.accept1],isXML:!0,serializer:s},w={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:a.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:a.BlobQueryHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobQueryExceptionHeaders}},requestBody:n.queryRequest,queryParameters:[n.timeoutInSeconds,n.snapshot,n.comp17],urlParameters:[n.url],headerParameters:[n.contentType,n.accept,n.version,n.requestId,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:s},P={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:a.BlobTags,headersMapper:a.BlobGetTagsHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobGetTagsExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.snapshot,n.versionId,n.comp18],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifTags],isXML:!0,serializer:s},T={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:a.BlobSetTagsHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlobSetTagsExceptionHeaders}},requestBody:n.tags,queryParameters:[n.timeoutInSeconds,n.versionId,n.comp18],urlParameters:[n.url],headerParameters:[n.contentType,n.accept,n.version,n.requestId,n.leaseId,n.ifTags,n.transactionalContentMD5,n.transactionalContentCrc64],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:s};}),parcelRequire.register("ivnR6",function(e,t){$parcel$export(e.exports,"operationOptionsToRequestOptionsBase",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("9uR57");function i(e){let{requestOptions:t,tracingOptions:i}=e,a=(0,r.__rest)(e,["requestOptions","tracingOptions"]),n=a;return t&&(n=Object.assign(Object.assign({},n),t)),i&&(n.tracingContext=i.tracingContext,// By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier. n.spanOptions=null==i?void 0:i.spanOptions),n;}}),parcelRequire.register("e5kiN",function(e,t){$parcel$export(e.exports,"Serializer",()=>n),$parcel$export(e.exports,"MapperType",()=>O);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /* eslint-disable eqeqeq */var r=parcelRequire("39aAY"),i=parcelRequire("8sP3n"),a=parcelRequire("2dg8H");class n{constructor(/** * The provided model mapper. */e={},/** * Whether the contents are XML or not. */t){this.modelMappers=e,this.isXML=t;}/** * Validates constraints, if any. This function will throw if the provided value does not respect those constraints. * @param mapper - The definition of data models. * @param value - The value. * @param objectName - Name of the object. Used in the error messages. * @deprecated Removing the constraints validation on client side. */validateConstraints(e,t,r){let i=(e,i)=>{throw Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${i}.`);};if(e.constraints&&void 0!=t){let r=t,{ExclusiveMaximum:a,ExclusiveMinimum:n,InclusiveMaximum:o,InclusiveMinimum:s,MaxItems:u,MaxLength:c,MinItems:l,MinLength:p,MultipleOf:d,Pattern:m,UniqueItems:h}=e.constraints;void 0!=a&&r>=a&&i("ExclusiveMaximum",a),void 0!=n&&r<=n&&i("ExclusiveMinimum",n),void 0!=o&&r>o&&i("InclusiveMaximum",o),void 0!=s&&ru&&i("MaxItems",u),void 0!=c&&x.length>c&&i("MaxLength",c),void 0!=l&&x.lengthr.indexOf(e)!==t)&&i("UniqueItems",h);}}/** * Serialize the given object based on its metadata defined in the mapper. * * @param mapper - The mapper which defines the metadata of the serializable object. * @param object - A valid Javascript object to be serialized. * @param objectName - Name of the serialized object. * @param options - additional options to deserialization. * @returns A valid serialized Javascript object. */serialize(e,t,r,i={}){var n,o,s;let u={rootName:null!==(n=i.rootName)&&void 0!==n?n:"",includeRoot:null!==(o=i.includeRoot)&&void 0!==o&&o,xmlCharKey:null!==(s=i.xmlCharKey)&&void 0!==s?s:a.XML_CHARKEY},c={},l=e.type.name;r||(r=e.serializedName),null!==l.match(/^Sequence$/i)&&(c=[]),e.isConstant&&(t=e.defaultValue);// This table of allowed values should help explain // the mapper.required and mapper.nullable properties. // X means "neither undefined or null are allowed". // || required // || true | false // nullable || ========================== // true || null | undefined/null // false || X | undefined // undefined || X | undefined/null let{required:p,nullable:y}=e;if(p&&y&&void 0===t)throw Error(`${r} cannot be undefined.`);if(p&&!y&&void 0==t)throw Error(`${r} cannot be null or undefined.`);if(!p&&!1===y&&null===t)throw Error(`${r} cannot be null.`);if(void 0==t)c=t;else if(null!==l.match(/^any$/i))c=t;else if(null!==l.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i))c=d(l,r,t);else if(null!==l.match(/^Enum$/i)){let i=e;c=m(r,i.type.allowedValues,t);}else null!==l.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)?c=f(l,t,r):null!==l.match(/^ByteArray$/i)?c=h(r,t):null!==l.match(/^Base64Url$/i)?c=x(r,t):null!==l.match(/^Sequence$/i)?c=g(this,e,t,r,!!this.isXML,u):null!==l.match(/^Dictionary$/i)?c=D(this,e,t,r,!!this.isXML,u):null!==l.match(/^Composite$/i)&&(c=C(this,e,t,r,!!this.isXML,u));return c;}/** * Deserialize the given object based on its metadata defined in the mapper. * * @param mapper - The mapper which defines the metadata of the serializable object. * @param responseBody - A valid Javascript entity to be deserialized. * @param objectName - Name of the deserialized object. * @param options - Controls behavior of XML parser and builder. * @returns A valid deserialized Javascript object. */deserialize(e,t,i,n={}){var o,s,c;let l;let d={rootName:null!==(o=n.rootName)&&void 0!==o?o:"",includeRoot:null!==(s=n.includeRoot)&&void 0!==s&&s,xmlCharKey:null!==(c=n.xmlCharKey)&&void 0!==c?c:a.XML_CHARKEY};if(void 0==t)return this.isXML&&"Sequence"===e.type.name&&!e.xmlIsWrapped&&(// between the list being empty versus being missing, // so let's do the more user-friendly thing and return an empty list. t=[]),void 0!==e.defaultValue&&(t=e.defaultValue),t;let m=e.type.name;if(i||(i=e.serializedName),null!==m.match(/^Composite$/i))l=S(this,e,t,i,d);else{if(this.isXML){let e=d.xmlCharKey,r=t;void 0!=r[a.XML_ATTRKEY]&&void 0!=r[e]&&(t=r[e]);}null!==m.match(/^Number$/i)?isNaN(l=parseFloat(t))&&(l=t):null!==m.match(/^Boolean$/i)?l="true"===t||"false"!==t&&t:null!==m.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)?l=t:null!==m.match(/^(Date|DateTime|DateTimeRfc1123)$/i)?l=new Date(t):null!==m.match(/^UnixTime$/i)?l=p(t):null!==m.match(/^ByteArray$/i)?l=r.decodeString(t):null!==m.match(/^Base64Url$/i)?l=u(t):null!==m.match(/^Sequence$/i)?l=N(this,e,t,i,d):null!==m.match(/^Dictionary$/i)&&(l=B(this,e,t,i,d));}return e.isConstant&&(l=e.defaultValue),l;}}function o(e,t){let r=e.length;for(;r-1>=0&&e[r-1]===t;)--r;return e.substr(0,r);}function s(e){if(!e)return;if(!(e instanceof Uint8Array))throw Error("Please provide an input of type Uint8Array for converting to Base64Url.");// Uint8Array to Base64. let t=r.encodeByteArray(e);// Base64 to Base64Url. return o(t,"=").replace(/\+/g,"-").replace(/\//g,"_");}function u(e){if(e){if(e&&"string"!=typeof e.valueOf())throw Error("Please provide an input of type string for converting to Uint8Array");// Base64 to Uint8Array. return(// Base64Url to Base64. e=e.replace(/-/g,"+").replace(/_/g,"/"),r.decodeString(e));}}function c(e){let t=[],r="";if(e){let i=e.split(".");for(let e of i)"\\"===e.charAt(e.length-1)?r+=e.substr(0,e.length-1)+".":(r+=e,t.push(r),r="");}return t;}function l(e){if(e)return"string"==typeof e.valueOf()&&(e=new Date(e)),Math.floor(e.getTime()/1e3);}function p(e){if(e)return new Date(1e3*e);}function d(e,t,r){if(null!=r){if(null!==e.match(/^Number$/i)){if("number"!=typeof r)throw Error(`${t} with value ${r} must be of type number.`);}else if(null!==e.match(/^String$/i)){if("string"!=typeof r.valueOf())throw Error(`${t} with value "${r}" must be of type string.`);}else if(null!==e.match(/^Uuid$/i)){if(!("string"==typeof r.valueOf()&&i.isValidUuid(r)))throw Error(`${t} with value "${r}" must be of type string and a valid uuid.`);}else if(null!==e.match(/^Boolean$/i)){if("boolean"!=typeof r)throw Error(`${t} with value ${r} must be of type boolean.`);}else if(null!==e.match(/^Stream$/i)){let e=typeof r;if("string"!==e&&"function"!==e&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!(("function"==typeof Blob||"object"==typeof Blob)&&r instanceof Blob))throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`);}}return r;}function m(e,t,r){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);let i=t.some(e=>"string"==typeof e.valueOf()?e.toLowerCase()===r.toLowerCase():e===r);if(!i)throw Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return r;}function h(e,t){let i="";if(void 0!=t){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);i=r.encodeByteArray(t);}return i;}function x(e,t){let r="";if(void 0!=t){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);r=s(t)||"";}return r;}function f(e,t,r){if(void 0!=t){if(null!==e.match(/^Date$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10);}else if(null!==e.match(/^DateTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString();}else if(null!==e.match(/^DateTimeRfc1123$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString();}else if(null!==e.match(/^UnixTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=l(t);}else if(null!==e.match(/^TimeSpan$/i)&&!i.isDuration(t))throw Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`);}return t;}function g(e,t,r,i,n,o){if(!Array.isArray(r))throw Error(`${i} must be of type Array.`);let s=t.type.element;if(!s||"object"!=typeof s)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${i}.`);let u=[];for(let t=0;te!==a);n&&(s[a]=e.serialize(l,r[a],i+'["'+a+'"]',o));}}return s;}return r;}function E(e,t,r,i){if(!r||!e.xmlNamespace)return t;let n=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns",o={[n]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[a.XML_ATTRKEY])return t;{let e=Object.assign({},t);return e[a.XML_ATTRKEY]=o,e;}}let s={};return s[i.xmlCharKey]=t,s[a.XML_ATTRKEY]=o,s;}function A(e,t){return[(0,a.XML_ATTRKEY),t.xmlCharKey].includes(e);}function S(e,t,r,i,n){var o,s;let u=null!==(o=n.xmlCharKey)&&void 0!==o?o:a.XML_CHARKEY;w(e,t)&&(t=F(e,t,r,"serializedName"));let l=v(e,t,i),p={},d=[];for(let o of Object.keys(l)){let m=l[o],h=c(l[o].serializedName);d.push(h[0]);let{serializedName:x,xmlName:f,xmlElementName:g}=m,D=i;""!==x&&void 0!==x&&(D=i+"."+x);let y=m.headerCollectionPrefix;if(y){let t={};for(let i of Object.keys(r))i.startsWith(y)&&(t[i.substring(y.length)]=e.deserialize(m.type.value,r[i],D,n)),d.push(i);p[o]=t;}else if(e.isXML){if(m.xmlIsAttribute&&r[a.XML_ATTRKEY])p[o]=e.deserialize(m,r[a.XML_ATTRKEY][f],D,n);else if(m.xmlIsMsText)void 0!==r[u]?p[o]=r[u]:"string"==typeof r&&(// `{ name: "content"}` instead of `{ name: { "_": "content" }}` p[o]=r);else{let t=g||f||x;if(m.xmlIsWrapped){/* a list of wrapped by For the xml example below ... ... the responseBody has { Cors: { CorsRule: [{...}, {...}] } } xmlName is "Cors" and xmlElementName is"CorsRule". */let t=r[f],i=null!==(s=null==t?void 0:t[g])&&void 0!==s?s:[];p[o]=e.deserialize(m,i,D,n),d.push(f);}else{let i=r[t];p[o]=e.deserialize(m,i,D,n),d.push(t);}}}else{let i,a;let s=r;// traversing the object step by step. for(let e of h){if(!s)break;s=s[e];}i=s;let u=t.type.polymorphicDiscriminator;// paging if(u&&o===u.clientName&&void 0==i&&(i=t.serializedName),Array.isArray(r[o])&&""===l[o].serializedName){i=r[o];let t=e.deserialize(m,i,D,n);// Copy over any properties that have already been added into the instance, where they do // not exist on the newly de-serialized array for(let[e,r]of Object.entries(p))Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r);p=t;}else(void 0!==i||void 0!==m.defaultValue)&&(a=e.deserialize(m,i,D,n),p[o]=a);}}let m=t.type.additionalProperties;if(m){let t=e=>{for(let t in l){let r=c(l[t].serializedName);if(r[0]===e)return!1;}return!0;};for(let a in r)t(a)&&(p[a]=e.deserialize(m,r[a],i+'["'+a+'"]',n));}else if(r)for(let e of Object.keys(r))void 0!==p[e]||d.includes(e)||A(e,n)||(p[e]=r[e]);return p;}function B(e,t,r,i,a){let n=t.type.value;if(!n||"object"!=typeof n)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${i}`);if(r){let t={};for(let o of Object.keys(r))t[o]=e.deserialize(n,r[o],i,a);return t;}return r;}function N(e,t,r,i,a){let n=t.type.element;if(!n||"object"!=typeof n)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${i}`);if(r){Array.isArray(r)||(r=[r]);let t=[];for(let o=0;o | -- the TypeScript definition is off here // https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length let t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64");}function i(e){return Buffer.from(e,"base64");}$parcel$export(e.exports,"encodeByteArray",()=>r),$parcel$export(e.exports,"decodeString",()=>i);}),parcelRequire.register("iGLpU",function(e,t){$parcel$export(e.exports,"BlobServiceProperties",()=>r),$parcel$export(e.exports,"Logging",()=>i),$parcel$export(e.exports,"RetentionPolicy",()=>a),$parcel$export(e.exports,"Metrics",()=>n),$parcel$export(e.exports,"CorsRule",()=>o),$parcel$export(e.exports,"StaticWebsite",()=>s),$parcel$export(e.exports,"StorageError",()=>u),$parcel$export(e.exports,"BlobServiceStatistics",()=>c),$parcel$export(e.exports,"GeoReplication",()=>l),$parcel$export(e.exports,"ListContainersSegmentResponse",()=>p),$parcel$export(e.exports,"ContainerItem",()=>d),$parcel$export(e.exports,"ContainerProperties",()=>m),$parcel$export(e.exports,"KeyInfo",()=>h),$parcel$export(e.exports,"UserDelegationKey",()=>x),$parcel$export(e.exports,"FilterBlobSegment",()=>f),$parcel$export(e.exports,"FilterBlobItem",()=>g),$parcel$export(e.exports,"BlobTags",()=>D),$parcel$export(e.exports,"BlobTag",()=>y),$parcel$export(e.exports,"SignedIdentifier",()=>b),$parcel$export(e.exports,"AccessPolicy",()=>v),$parcel$export(e.exports,"ListBlobsFlatSegmentResponse",()=>C),$parcel$export(e.exports,"BlobFlatListSegment",()=>E),$parcel$export(e.exports,"BlobItemInternal",()=>A),$parcel$export(e.exports,"BlobName",()=>S),$parcel$export(e.exports,"BlobPropertiesInternal",()=>B),$parcel$export(e.exports,"ListBlobsHierarchySegmentResponse",()=>N),$parcel$export(e.exports,"BlobHierarchyListSegment",()=>F),$parcel$export(e.exports,"BlobPrefix",()=>w),$parcel$export(e.exports,"BlockLookupList",()=>P),$parcel$export(e.exports,"BlockList",()=>T),$parcel$export(e.exports,"Block",()=>O),$parcel$export(e.exports,"PageList",()=>R),$parcel$export(e.exports,"PageRange",()=>I),$parcel$export(e.exports,"ClearRange",()=>z),$parcel$export(e.exports,"QueryRequest",()=>k),$parcel$export(e.exports,"QuerySerialization",()=>M),$parcel$export(e.exports,"QueryFormat",()=>q),$parcel$export(e.exports,"DelimitedTextConfiguration",()=>L),$parcel$export(e.exports,"JsonTextConfiguration",()=>j),$parcel$export(e.exports,"ArrowConfiguration",()=>H),$parcel$export(e.exports,"ArrowField",()=>U),$parcel$export(e.exports,"ServiceSetPropertiesHeaders",()=>$),$parcel$export(e.exports,"ServiceSetPropertiesExceptionHeaders",()=>V),$parcel$export(e.exports,"ServiceGetPropertiesHeaders",()=>K),$parcel$export(e.exports,"ServiceGetPropertiesExceptionHeaders",()=>G),$parcel$export(e.exports,"ServiceGetStatisticsHeaders",()=>W),$parcel$export(e.exports,"ServiceGetStatisticsExceptionHeaders",()=>X),$parcel$export(e.exports,"ServiceListContainersSegmentHeaders",()=>Y),$parcel$export(e.exports,"ServiceListContainersSegmentExceptionHeaders",()=>Q),$parcel$export(e.exports,"ServiceGetUserDelegationKeyHeaders",()=>J),$parcel$export(e.exports,"ServiceGetUserDelegationKeyExceptionHeaders",()=>Z),$parcel$export(e.exports,"ServiceGetAccountInfoHeaders",()=>ee),$parcel$export(e.exports,"ServiceGetAccountInfoExceptionHeaders",()=>et),$parcel$export(e.exports,"ServiceSubmitBatchHeaders",()=>er),$parcel$export(e.exports,"ServiceSubmitBatchExceptionHeaders",()=>ei),$parcel$export(e.exports,"ServiceFilterBlobsHeaders",()=>ea),$parcel$export(e.exports,"ServiceFilterBlobsExceptionHeaders",()=>en),$parcel$export(e.exports,"ContainerCreateHeaders",()=>eo),$parcel$export(e.exports,"ContainerCreateExceptionHeaders",()=>es),$parcel$export(e.exports,"ContainerGetPropertiesHeaders",()=>eu),$parcel$export(e.exports,"ContainerGetPropertiesExceptionHeaders",()=>ec),$parcel$export(e.exports,"ContainerDeleteHeaders",()=>el),$parcel$export(e.exports,"ContainerDeleteExceptionHeaders",()=>ep),$parcel$export(e.exports,"ContainerSetMetadataHeaders",()=>ed),$parcel$export(e.exports,"ContainerSetMetadataExceptionHeaders",()=>em),$parcel$export(e.exports,"ContainerGetAccessPolicyHeaders",()=>eh),$parcel$export(e.exports,"ContainerGetAccessPolicyExceptionHeaders",()=>ex),$parcel$export(e.exports,"ContainerSetAccessPolicyHeaders",()=>ef),$parcel$export(e.exports,"ContainerSetAccessPolicyExceptionHeaders",()=>eg),$parcel$export(e.exports,"ContainerRestoreHeaders",()=>eD),$parcel$export(e.exports,"ContainerRestoreExceptionHeaders",()=>ey),$parcel$export(e.exports,"ContainerRenameHeaders",()=>eb),$parcel$export(e.exports,"ContainerRenameExceptionHeaders",()=>ev),$parcel$export(e.exports,"ContainerSubmitBatchHeaders",()=>eC),$parcel$export(e.exports,"ContainerSubmitBatchExceptionHeaders",()=>eE),$parcel$export(e.exports,"ContainerFilterBlobsHeaders",()=>eA),$parcel$export(e.exports,"ContainerFilterBlobsExceptionHeaders",()=>eS),$parcel$export(e.exports,"ContainerAcquireLeaseHeaders",()=>eB),$parcel$export(e.exports,"ContainerAcquireLeaseExceptionHeaders",()=>eN),$parcel$export(e.exports,"ContainerReleaseLeaseHeaders",()=>eF),$parcel$export(e.exports,"ContainerReleaseLeaseExceptionHeaders",()=>ew),$parcel$export(e.exports,"ContainerRenewLeaseHeaders",()=>eP),$parcel$export(e.exports,"ContainerRenewLeaseExceptionHeaders",()=>eT),$parcel$export(e.exports,"ContainerBreakLeaseHeaders",()=>eO),$parcel$export(e.exports,"ContainerBreakLeaseExceptionHeaders",()=>eR),$parcel$export(e.exports,"ContainerChangeLeaseHeaders",()=>e_),$parcel$export(e.exports,"ContainerChangeLeaseExceptionHeaders",()=>eI),$parcel$export(e.exports,"ContainerListBlobFlatSegmentHeaders",()=>ez),$parcel$export(e.exports,"ContainerListBlobFlatSegmentExceptionHeaders",()=>ek),$parcel$export(e.exports,"ContainerListBlobHierarchySegmentHeaders",()=>eM),$parcel$export(e.exports,"ContainerListBlobHierarchySegmentExceptionHeaders",()=>eq),$parcel$export(e.exports,"ContainerGetAccountInfoHeaders",()=>eL),$parcel$export(e.exports,"ContainerGetAccountInfoExceptionHeaders",()=>ej),$parcel$export(e.exports,"BlobDownloadHeaders",()=>eH),$parcel$export(e.exports,"BlobDownloadExceptionHeaders",()=>eU),$parcel$export(e.exports,"BlobGetPropertiesHeaders",()=>e$),$parcel$export(e.exports,"BlobGetPropertiesExceptionHeaders",()=>eV),$parcel$export(e.exports,"BlobDeleteHeaders",()=>eK),$parcel$export(e.exports,"BlobDeleteExceptionHeaders",()=>eG),$parcel$export(e.exports,"BlobUndeleteHeaders",()=>eW),$parcel$export(e.exports,"BlobUndeleteExceptionHeaders",()=>eX),$parcel$export(e.exports,"BlobSetExpiryHeaders",()=>eY),$parcel$export(e.exports,"BlobSetExpiryExceptionHeaders",()=>eQ),$parcel$export(e.exports,"BlobSetHttpHeadersHeaders",()=>eJ),$parcel$export(e.exports,"BlobSetHttpHeadersExceptionHeaders",()=>eZ),$parcel$export(e.exports,"BlobSetImmutabilityPolicyHeaders",()=>e0),$parcel$export(e.exports,"BlobSetImmutabilityPolicyExceptionHeaders",()=>e2),$parcel$export(e.exports,"BlobDeleteImmutabilityPolicyHeaders",()=>e8),$parcel$export(e.exports,"BlobDeleteImmutabilityPolicyExceptionHeaders",()=>e4),$parcel$export(e.exports,"BlobSetLegalHoldHeaders",()=>e6),$parcel$export(e.exports,"BlobSetLegalHoldExceptionHeaders",()=>e3),$parcel$export(e.exports,"BlobSetMetadataHeaders",()=>e9),$parcel$export(e.exports,"BlobSetMetadataExceptionHeaders",()=>e5),$parcel$export(e.exports,"BlobAcquireLeaseHeaders",()=>e7),$parcel$export(e.exports,"BlobAcquireLeaseExceptionHeaders",()=>te),$parcel$export(e.exports,"BlobReleaseLeaseHeaders",()=>tt),$parcel$export(e.exports,"BlobReleaseLeaseExceptionHeaders",()=>tr),$parcel$export(e.exports,"BlobRenewLeaseHeaders",()=>ti),$parcel$export(e.exports,"BlobRenewLeaseExceptionHeaders",()=>ta),$parcel$export(e.exports,"BlobChangeLeaseHeaders",()=>tn),$parcel$export(e.exports,"BlobChangeLeaseExceptionHeaders",()=>to),$parcel$export(e.exports,"BlobBreakLeaseHeaders",()=>ts),$parcel$export(e.exports,"BlobBreakLeaseExceptionHeaders",()=>tu),$parcel$export(e.exports,"BlobCreateSnapshotHeaders",()=>tc),$parcel$export(e.exports,"BlobCreateSnapshotExceptionHeaders",()=>tl),$parcel$export(e.exports,"BlobStartCopyFromURLHeaders",()=>tp),$parcel$export(e.exports,"BlobStartCopyFromURLExceptionHeaders",()=>td),$parcel$export(e.exports,"BlobCopyFromURLHeaders",()=>tm),$parcel$export(e.exports,"BlobCopyFromURLExceptionHeaders",()=>th),$parcel$export(e.exports,"BlobAbortCopyFromURLHeaders",()=>tx),$parcel$export(e.exports,"BlobAbortCopyFromURLExceptionHeaders",()=>tf),$parcel$export(e.exports,"BlobSetTierHeaders",()=>tg),$parcel$export(e.exports,"BlobSetTierExceptionHeaders",()=>tD),$parcel$export(e.exports,"BlobGetAccountInfoHeaders",()=>ty),$parcel$export(e.exports,"BlobGetAccountInfoExceptionHeaders",()=>tb),$parcel$export(e.exports,"BlobQueryHeaders",()=>tv),$parcel$export(e.exports,"BlobQueryExceptionHeaders",()=>tC),$parcel$export(e.exports,"BlobGetTagsHeaders",()=>tE),$parcel$export(e.exports,"BlobGetTagsExceptionHeaders",()=>tA),$parcel$export(e.exports,"BlobSetTagsHeaders",()=>tS),$parcel$export(e.exports,"BlobSetTagsExceptionHeaders",()=>tB),$parcel$export(e.exports,"PageBlobCreateHeaders",()=>tN),$parcel$export(e.exports,"PageBlobCreateExceptionHeaders",()=>tF),$parcel$export(e.exports,"PageBlobUploadPagesHeaders",()=>tw),$parcel$export(e.exports,"PageBlobUploadPagesExceptionHeaders",()=>tP),$parcel$export(e.exports,"PageBlobClearPagesHeaders",()=>tT),$parcel$export(e.exports,"PageBlobClearPagesExceptionHeaders",()=>tO),$parcel$export(e.exports,"PageBlobUploadPagesFromURLHeaders",()=>tR),$parcel$export(e.exports,"PageBlobUploadPagesFromURLExceptionHeaders",()=>t_),$parcel$export(e.exports,"PageBlobGetPageRangesHeaders",()=>tI),$parcel$export(e.exports,"PageBlobGetPageRangesExceptionHeaders",()=>tz),$parcel$export(e.exports,"PageBlobGetPageRangesDiffHeaders",()=>tk),$parcel$export(e.exports,"PageBlobGetPageRangesDiffExceptionHeaders",()=>tM),$parcel$export(e.exports,"PageBlobResizeHeaders",()=>tq),$parcel$export(e.exports,"PageBlobResizeExceptionHeaders",()=>tL),$parcel$export(e.exports,"PageBlobUpdateSequenceNumberHeaders",()=>tj),$parcel$export(e.exports,"PageBlobUpdateSequenceNumberExceptionHeaders",()=>tH),$parcel$export(e.exports,"PageBlobCopyIncrementalHeaders",()=>tU),$parcel$export(e.exports,"PageBlobCopyIncrementalExceptionHeaders",()=>t$),$parcel$export(e.exports,"AppendBlobCreateHeaders",()=>tV),$parcel$export(e.exports,"AppendBlobCreateExceptionHeaders",()=>tK),$parcel$export(e.exports,"AppendBlobAppendBlockHeaders",()=>tG),$parcel$export(e.exports,"AppendBlobAppendBlockExceptionHeaders",()=>tW),$parcel$export(e.exports,"AppendBlobAppendBlockFromUrlHeaders",()=>tX),$parcel$export(e.exports,"AppendBlobAppendBlockFromUrlExceptionHeaders",()=>tY),$parcel$export(e.exports,"AppendBlobSealHeaders",()=>tQ),$parcel$export(e.exports,"AppendBlobSealExceptionHeaders",()=>tJ),$parcel$export(e.exports,"BlockBlobUploadHeaders",()=>tZ),$parcel$export(e.exports,"BlockBlobUploadExceptionHeaders",()=>t0),$parcel$export(e.exports,"BlockBlobPutBlobFromUrlHeaders",()=>t2),$parcel$export(e.exports,"BlockBlobPutBlobFromUrlExceptionHeaders",()=>t8),$parcel$export(e.exports,"BlockBlobStageBlockHeaders",()=>t4),$parcel$export(e.exports,"BlockBlobStageBlockExceptionHeaders",()=>t6),$parcel$export(e.exports,"BlockBlobStageBlockFromURLHeaders",()=>t3),$parcel$export(e.exports,"BlockBlobStageBlockFromURLExceptionHeaders",()=>t9),$parcel$export(e.exports,"BlockBlobCommitBlockListHeaders",()=>t5),$parcel$export(e.exports,"BlockBlobCommitBlockListExceptionHeaders",()=>t7),$parcel$export(e.exports,"BlockBlobGetBlockListHeaders",()=>re),$parcel$export(e.exports,"BlockBlobGetBlockListExceptionHeaders",()=>rt);/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */let r={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:!0,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"}}}}},i={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},a={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},n={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},o={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},s={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,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"}}}}},u={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}},c={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},l={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},p={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,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:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},d={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,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"}}}}}}},m={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,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"}}}}},h={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},x={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},f={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},g={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},D={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},y={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},b={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},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"}}}}},C={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,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"}}}}},E={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},A={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,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"}}}}},S={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},B={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:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,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"}}}}},N={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,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"}}}}},F={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:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},w={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},P={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"}}}}}}},T={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},O={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},R={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"}}}}},I={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},z={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},k={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,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"}}}}},M={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},q={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,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"}}}}},L={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"}}}}},j={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},H={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},U={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,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"}}}}},$={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"}}}}},V={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},K={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"}}}}},G={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},W={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"}}}}},X={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y={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"}}}}},Q={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},J={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"}}}}},Z={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ee={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"}}}}},et={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},er={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"}}}}},ei={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ea={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"}}}}},en={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eo={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"}}}}},es={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eu={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"}}}}},ec={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},el={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"}}}}},ep={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ed={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"}}}}},em={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eh={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"}}}}},ex={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ef={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"}}}}},eg={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eD={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"}}}}},ey={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eb={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"}}}}},ev={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eC={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"}}}}},eE={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eA={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"}}}}},eS={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eB={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"}}}}},eN={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eF={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"}}}}},ew={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eP={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"}}}}},eT={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eO={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"}}}}},eR={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e_={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"}}}}},eI={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ez={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"}}}}},ek={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eM={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"}}}}},eq={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eL={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"]}}}}},ej={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eH={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"}}}}},eU={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e$={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"}}}}},eV={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eK={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"}}}}},eG={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eW={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"}}}}},eX={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eY={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"}}}}},eQ={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eJ={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"}}}}},eZ={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e0={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"]}}}}},e2={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e8={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"}}}}},e4={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e6={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"}}}}},e3={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e9={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"}}}}},e5={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e7={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"}}}}},te={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tt={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"}}}}},tr={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ti={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"}}}}},ta={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tn={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"}}}}},to={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ts={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"}}}}},tu={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tc={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"}}}}},tl={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tp={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"}}}}},td={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tm={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:!0,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"}}}}},th={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tx={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"}}}}},tf={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tg={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"}}}}},tD={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ty={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"]}}}}},tb={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tv={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"}}}}},tC={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tE={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"}}}}},tA={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tS={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"}}}}},tB={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tN={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"}}}}},tF={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tw={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"}}}}},tP={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tT={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"}}}}},tO={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tR={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"}}}}},t_={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tI={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"}}}}},tz={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tk={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"}}}}},tM={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tq={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"}}}}},tL={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tj={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"}}}}},tH={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tU={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"}}}}},t$={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tV={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"}}}}},tK={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tG={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"}}}}},tW={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tX={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"}}}}},tY={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tQ={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"}}}}},tJ={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tZ={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"}}}}},t0={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t2={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"}}}}},t8={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t4={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"}}}}},t6={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t3={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"}}}}},t9={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t5={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"}}}}},t7={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},re={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"}}}}},rt={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};}),parcelRequire.register("4lprA",function(e,t){$parcel$export(e.exports,"contentType",()=>a),$parcel$export(e.exports,"accept",()=>n),$parcel$export(e.exports,"url",()=>o),$parcel$export(e.exports,"comp",()=>s),$parcel$export(e.exports,"timeoutInSeconds",()=>u),$parcel$export(e.exports,"version",()=>c),$parcel$export(e.exports,"requestId",()=>l),$parcel$export(e.exports,"accept1",()=>p),$parcel$export(e.exports,"comp2",()=>d),$parcel$export(e.exports,"prefix",()=>m),$parcel$export(e.exports,"marker",()=>h),$parcel$export(e.exports,"maxPageSize",()=>x),$parcel$export(e.exports,"restype1",()=>f),$parcel$export(e.exports,"body",()=>g),$parcel$export(e.exports,"comp4",()=>D),$parcel$export(e.exports,"contentLength",()=>y),$parcel$export(e.exports,"multipartContentType",()=>b),$parcel$export(e.exports,"comp5",()=>v),$parcel$export(e.exports,"where",()=>C),$parcel$export(e.exports,"restype2",()=>E),$parcel$export(e.exports,"metadata",()=>A),$parcel$export(e.exports,"access",()=>S),$parcel$export(e.exports,"defaultEncryptionScope",()=>B),$parcel$export(e.exports,"preventEncryptionScopeOverride",()=>N),$parcel$export(e.exports,"leaseId",()=>F),$parcel$export(e.exports,"ifModifiedSince",()=>w),$parcel$export(e.exports,"ifUnmodifiedSince",()=>P),$parcel$export(e.exports,"comp6",()=>T),$parcel$export(e.exports,"comp7",()=>O),$parcel$export(e.exports,"containerAcl",()=>R),$parcel$export(e.exports,"comp8",()=>I),$parcel$export(e.exports,"deletedContainerName",()=>z),$parcel$export(e.exports,"deletedContainerVersion",()=>k),$parcel$export(e.exports,"comp9",()=>M),$parcel$export(e.exports,"sourceContainerName",()=>q),$parcel$export(e.exports,"sourceLeaseId",()=>L),$parcel$export(e.exports,"comp10",()=>j),$parcel$export(e.exports,"action",()=>H),$parcel$export(e.exports,"duration",()=>U),$parcel$export(e.exports,"proposedLeaseId",()=>$),$parcel$export(e.exports,"action1",()=>V),$parcel$export(e.exports,"leaseId1",()=>K),$parcel$export(e.exports,"action2",()=>G),$parcel$export(e.exports,"action3",()=>W),$parcel$export(e.exports,"breakPeriod",()=>X),$parcel$export(e.exports,"action4",()=>Y),$parcel$export(e.exports,"proposedLeaseId1",()=>Q),$parcel$export(e.exports,"include1",()=>J),$parcel$export(e.exports,"delimiter",()=>Z),$parcel$export(e.exports,"snapshot",()=>ee),$parcel$export(e.exports,"versionId",()=>et),$parcel$export(e.exports,"range",()=>er),$parcel$export(e.exports,"rangeGetContentMD5",()=>ei),$parcel$export(e.exports,"rangeGetContentCRC64",()=>ea),$parcel$export(e.exports,"encryptionKey",()=>en),$parcel$export(e.exports,"encryptionKeySha256",()=>eo),$parcel$export(e.exports,"encryptionAlgorithm",()=>es),$parcel$export(e.exports,"ifMatch",()=>eu),$parcel$export(e.exports,"ifNoneMatch",()=>ec),$parcel$export(e.exports,"ifTags",()=>el),$parcel$export(e.exports,"deleteSnapshots",()=>ep),$parcel$export(e.exports,"blobDeleteType",()=>ed),$parcel$export(e.exports,"comp11",()=>em),$parcel$export(e.exports,"expiryOptions",()=>eh),$parcel$export(e.exports,"expiresOn",()=>ex),$parcel$export(e.exports,"blobCacheControl",()=>ef),$parcel$export(e.exports,"blobContentType",()=>eg),$parcel$export(e.exports,"blobContentMD5",()=>eD),$parcel$export(e.exports,"blobContentEncoding",()=>ey),$parcel$export(e.exports,"blobContentLanguage",()=>eb),$parcel$export(e.exports,"blobContentDisposition",()=>ev),$parcel$export(e.exports,"comp12",()=>eC),$parcel$export(e.exports,"immutabilityPolicyExpiry",()=>eE),$parcel$export(e.exports,"immutabilityPolicyMode",()=>eA),$parcel$export(e.exports,"comp13",()=>eS),$parcel$export(e.exports,"legalHold",()=>eB),$parcel$export(e.exports,"encryptionScope",()=>eN),$parcel$export(e.exports,"comp14",()=>eF),$parcel$export(e.exports,"tier",()=>ew),$parcel$export(e.exports,"rehydratePriority",()=>eP),$parcel$export(e.exports,"sourceIfModifiedSince",()=>eT),$parcel$export(e.exports,"sourceIfUnmodifiedSince",()=>eO),$parcel$export(e.exports,"sourceIfMatch",()=>eR),$parcel$export(e.exports,"sourceIfNoneMatch",()=>e_),$parcel$export(e.exports,"sourceIfTags",()=>eI),$parcel$export(e.exports,"copySource",()=>ez),$parcel$export(e.exports,"blobTagsString",()=>ek),$parcel$export(e.exports,"sealBlob",()=>eM),$parcel$export(e.exports,"legalHold1",()=>eq),$parcel$export(e.exports,"xMsRequiresSync",()=>eL),$parcel$export(e.exports,"sourceContentMD5",()=>ej),$parcel$export(e.exports,"copySourceAuthorization",()=>eH),$parcel$export(e.exports,"copySourceTags",()=>eU),$parcel$export(e.exports,"comp15",()=>e$),$parcel$export(e.exports,"copyActionAbortConstant",()=>eV),$parcel$export(e.exports,"copyId",()=>eK),$parcel$export(e.exports,"comp16",()=>eG),$parcel$export(e.exports,"tier1",()=>eW),$parcel$export(e.exports,"queryRequest",()=>eX),$parcel$export(e.exports,"comp17",()=>eY),$parcel$export(e.exports,"comp18",()=>eQ),$parcel$export(e.exports,"tags",()=>eJ),$parcel$export(e.exports,"transactionalContentMD5",()=>eZ),$parcel$export(e.exports,"transactionalContentCrc64",()=>e0),$parcel$export(e.exports,"blobType",()=>e2),$parcel$export(e.exports,"blobContentLength",()=>e8),$parcel$export(e.exports,"blobSequenceNumber",()=>e4),$parcel$export(e.exports,"contentType1",()=>e6),$parcel$export(e.exports,"body1",()=>e3),$parcel$export(e.exports,"accept2",()=>e9),$parcel$export(e.exports,"comp19",()=>e5),$parcel$export(e.exports,"pageWrite",()=>e7),$parcel$export(e.exports,"ifSequenceNumberLessThanOrEqualTo",()=>te),$parcel$export(e.exports,"ifSequenceNumberLessThan",()=>tt),$parcel$export(e.exports,"ifSequenceNumberEqualTo",()=>tr),$parcel$export(e.exports,"pageWrite1",()=>ti),$parcel$export(e.exports,"sourceUrl",()=>ta),$parcel$export(e.exports,"sourceRange",()=>tn),$parcel$export(e.exports,"sourceContentCrc64",()=>to),$parcel$export(e.exports,"range1",()=>ts),$parcel$export(e.exports,"comp20",()=>tu),$parcel$export(e.exports,"prevsnapshot",()=>tc),$parcel$export(e.exports,"prevSnapshotUrl",()=>tl),$parcel$export(e.exports,"sequenceNumberAction",()=>tp),$parcel$export(e.exports,"comp21",()=>td),$parcel$export(e.exports,"blobType1",()=>tm),$parcel$export(e.exports,"comp22",()=>th),$parcel$export(e.exports,"maxSize",()=>tx),$parcel$export(e.exports,"appendPosition",()=>tf),$parcel$export(e.exports,"sourceRange1",()=>tg),$parcel$export(e.exports,"comp23",()=>tD),$parcel$export(e.exports,"blobType2",()=>ty),$parcel$export(e.exports,"copySourceBlobProperties",()=>tb),$parcel$export(e.exports,"comp24",()=>tv),$parcel$export(e.exports,"blockId",()=>tC),$parcel$export(e.exports,"blocks",()=>tE),$parcel$export(e.exports,"comp25",()=>tA),$parcel$export(e.exports,"listType",()=>tS);/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */var r=parcelRequire("2xU1D"),i=parcelRequire("iGLpU");let a={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}};i.BlobServiceProperties;let n={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},o={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},s={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},u={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},c={parameterPath:"version",mapper:{defaultValue:"2023-01-03",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},l={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},p={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},d={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},m={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},h={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},x={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};r.QueryCollectionFormat.Csv,i.KeyInfo;let f={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},g={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},D={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},y={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},b={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},v={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},C={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},E={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},A={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}},S={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},B={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},N={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},F={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},w={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},P={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},T={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},O={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},R={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},I={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},z={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},k={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},M={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},q={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},L={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},j={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},H={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},U={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},$={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},V={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},K={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},G={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},W={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},X={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},Y={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Q={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},J={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:r.QueryCollectionFormat.Csv},Z={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ee={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},et={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},er={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},ei={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},ea={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},en={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},eo={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},es={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},eu={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},ec={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},el={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},ep={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},ed={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},em={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eh={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},ex={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},ef={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},eg={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},eD={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},ey={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},eb={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},ev={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},eC={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eE={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},eA={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},eS={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eB={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},eN={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},eF={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ew={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"]}}},eP={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},eT={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},eO={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},eR={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},e_={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},eI={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},ez={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ek={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},eM={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},eq={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},eL={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},ej={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},eH={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},eU={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},e$={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eV={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},eK={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},eG={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eW={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},eX={parameterPath:["options","queryRequest"],mapper:i.QueryRequest},eY={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eQ={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eJ={parameterPath:["options","tags"],mapper:i.BlobTags},eZ={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},e0={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},e2={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},e8={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},e4={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},e6={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},e3={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},e9={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},e5={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},e7={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},te={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},tt={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},tr={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},ti={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},ta={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},tn={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},to={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},ts={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},tu={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tc={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},tl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},tp={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},td={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tm={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},th={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tx={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},tf={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},tg={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},tD={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ty={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},tb={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},tv={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tC={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},tE={parameterPath:"blocks",mapper:i.BlockLookupList},tA={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tS={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};}),parcelRequire.register("2xU1D",function(e,t){var r;$parcel$export(e.exports,"QueryCollectionFormat",()=>r),function(e){/** * CSV: Each pair of segments joined by a single comma. */e.Csv=",",/** * SSV: Each pair of segments joined by a single space character. */e.Ssv=" ",/** * TSV: Each pair of segments joined by a single tab character. */e.Tsv=" ",/** * Pipes: Each pair of segments joined by a single pipe character. */e.Pipes="|",/** * Denotes this is an array of values that should be passed to the server in multiple key/value pairs, e.g. `?queryParam=value1&queryParam=value2` */e.Multi="Multi";}(r||(r={}));}),parcelRequire.register("arn1t",function(e,t){$parcel$export(e.exports,"AppendBlob",()=>o);/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */var r=parcelRequire("ivnR6"),i=parcelRequire("e5kiN"),a=parcelRequire("iGLpU"),n=parcelRequire("4lprA");class o{/** * Initialize a new instance of the class AppendBlob class. * @param client Reference to the service client */constructor(e){this.client=e;}/** * The Create Append Blob operation creates a new append blob. * @param contentLength The length of the request. * @param options The options parameters. */create(e,t){let i={contentLength:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,c);}/** * The Append Block operation commits a new block of data to the end of an existing append blob. The * Append Block operation is permitted only if the blob was created with x-ms-blob-type set to * AppendBlob. Append Block is supported only on version 2015-02-21 version or later. * @param contentLength The length of the request. * @param body Initial data * @param options The options parameters. */appendBlock(e,t,i){let a={contentLength:e,body:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,l);}/** * The Append Block operation commits a new block of data to the end of an existing append blob where * the contents are read from a source url. The Append Block operation is permitted only if the blob * was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version * 2015-02-21 version or later. * @param sourceUrl Specify a URL to the copy source. * @param contentLength The length of the request. * @param options The options parameters. */appendBlockFromUrl(e,t,i){let a={sourceUrl:e,contentLength:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,p);}/** * The Seal operation seals the Append Blob to make it read-only. Seal is supported only on version * 2019-12-12 version or later. * @param options The options parameters. */seal(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,d);}}// Operation Specifications let s=new i.Serializer(a,/* isXml */!0),u=new i.Serializer(a,/* isXml */!1),c={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.AppendBlobCreateHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.AppendBlobCreateExceptionHeaders}},queryParameters:[n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobCacheControl,n.blobContentType,n.blobContentMD5,n.blobContentEncoding,n.blobContentLanguage,n.blobContentDisposition,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode,n.encryptionScope,n.blobTagsString,n.legalHold1,n.blobType1],isXML:!0,serializer:s},l={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.AppendBlobAppendBlockHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.AppendBlobAppendBlockExceptionHeaders}},requestBody:n.body1,queryParameters:[n.timeoutInSeconds,n.comp22],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.contentLength,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope,n.transactionalContentMD5,n.transactionalContentCrc64,n.contentType1,n.accept2,n.maxSize,n.appendPosition],mediaType:"binary",serializer:u},p={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp22],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope,n.sourceIfModifiedSince,n.sourceIfUnmodifiedSince,n.sourceIfMatch,n.sourceIfNoneMatch,n.sourceContentMD5,n.copySourceAuthorization,n.transactionalContentMD5,n.sourceUrl,n.sourceContentCrc64,n.maxSize,n.appendPosition,n.sourceRange1],isXML:!0,serializer:s},d={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.AppendBlobSealHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.AppendBlobSealExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp23],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.appendPosition],isXML:!0,serializer:s};}),parcelRequire.register("akPaM",function(e,t){$parcel$export(e.exports,"BlockBlob",()=>o);/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */var r=parcelRequire("ivnR6"),i=parcelRequire("e5kiN"),a=parcelRequire("iGLpU"),n=parcelRequire("4lprA");class o{/** * Initialize a new instance of the class BlockBlob class. * @param client Reference to the service client */constructor(e){this.client=e;}/** * The Upload Block Blob operation updates the content of an existing block blob. Updating an existing * block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put * Blob; the content of the existing blob is overwritten with the content of the new blob. To perform a * partial update of the content of a block blob, use the Put Block List operation. * @param contentLength The length of the request. * @param body Initial data * @param options The options parameters. */upload(e,t,i){let a={contentLength:e,body:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,c);}/** * The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read * from a given URL. This API is supported beginning with the 2020-04-08 version. Partial updates are * not supported with Put Blob from URL; the content of an existing blob is overwritten with the * content of the new blob. To perform partial updates to a block blob’s contents using a source URL, * use the Put Block from URL API in conjunction with Put Block List. * @param contentLength The length of the request. * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would * appear in a request URI. The source blob must either be public or must be authenticated via a shared * access signature. * @param options The options parameters. */putBlobFromUrl(e,t,i){let a={contentLength:e,copySource:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,l);}/** * The Stage Block operation creates a new block to be committed as part of a blob * @param blockId A valid Base64 string value that identifies the block. Prior to encoding, the string * must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified * for the blockid parameter must be the same size for each block. * @param contentLength The length of the request. * @param body Initial data * @param options The options parameters. */stageBlock(e,t,i,a){let n={blockId:e,contentLength:t,body:i,options:r.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(n,p);}/** * The Stage Block operation creates a new block to be committed as part of a blob where the contents * are read from a URL. * @param blockId A valid Base64 string value that identifies the block. Prior to encoding, the string * must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified * for the blockid parameter must be the same size for each block. * @param contentLength The length of the request. * @param sourceUrl Specify a URL to the copy source. * @param options The options parameters. */stageBlockFromURL(e,t,i,a){let n={blockId:e,contentLength:t,sourceUrl:i,options:r.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(n,d);}/** * The Commit Block List operation writes a blob by specifying the list of block IDs that make up the * blob. In order to be written as part of a blob, a block must have been successfully written to the * server in a prior Put Block operation. You can call Put Block List to update a blob by uploading * only those blocks that have changed, then committing the new and existing blocks together. You can * do this by specifying whether to commit a block from the committed block list or from the * uncommitted block list, or to commit the most recently uploaded version of the block, whichever list * it may belong to. * @param blocks Blob Blocks. * @param options The options parameters. */commitBlockList(e,t){let i={blocks:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,m);}/** * The Get Block List operation retrieves the list of blocks that have been uploaded as part of a block * blob * @param listType Specifies whether to return the list of committed blocks, the list of uncommitted * blocks, or both lists together. * @param options The options parameters. */getBlockList(e,t){let i={listType:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,h);}}// Operation Specifications let s=new i.Serializer(a,/* isXml */!0),u=new i.Serializer(a,/* isXml */!1),c={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlockBlobUploadHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlockBlobUploadExceptionHeaders}},requestBody:n.body1,queryParameters:[n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.contentLength,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobCacheControl,n.blobContentType,n.blobContentMD5,n.blobContentEncoding,n.blobContentLanguage,n.blobContentDisposition,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode,n.encryptionScope,n.tier,n.blobTagsString,n.legalHold1,n.transactionalContentMD5,n.transactionalContentCrc64,n.contentType1,n.accept2,n.blobType2],mediaType:"binary",serializer:u},l={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobCacheControl,n.blobContentType,n.blobContentMD5,n.blobContentEncoding,n.blobContentLanguage,n.blobContentDisposition,n.encryptionScope,n.tier,n.sourceIfModifiedSince,n.sourceIfUnmodifiedSince,n.sourceIfMatch,n.sourceIfNoneMatch,n.sourceIfTags,n.copySource,n.blobTagsString,n.sourceContentMD5,n.copySourceAuthorization,n.copySourceTags,n.transactionalContentMD5,n.blobType2,n.copySourceBlobProperties],isXML:!0,serializer:s},p={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlockBlobStageBlockHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlockBlobStageBlockExceptionHeaders}},requestBody:n.body1,queryParameters:[n.timeoutInSeconds,n.comp24,n.blockId],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.contentLength,n.leaseId,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.encryptionScope,n.transactionalContentMD5,n.transactionalContentCrc64,n.contentType1,n.accept2],mediaType:"binary",serializer:u},d={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp24,n.blockId],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.leaseId,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.encryptionScope,n.sourceIfModifiedSince,n.sourceIfUnmodifiedSince,n.sourceIfMatch,n.sourceIfNoneMatch,n.sourceContentMD5,n.copySourceAuthorization,n.sourceUrl,n.sourceContentCrc64,n.sourceRange1],isXML:!0,serializer:s},m={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.BlockBlobCommitBlockListHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlockBlobCommitBlockListExceptionHeaders}},requestBody:n.blocks,queryParameters:[n.timeoutInSeconds,n.comp25],urlParameters:[n.url],headerParameters:[n.contentType,n.accept,n.version,n.requestId,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobCacheControl,n.blobContentType,n.blobContentMD5,n.blobContentEncoding,n.blobContentLanguage,n.blobContentDisposition,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode,n.encryptionScope,n.tier,n.blobTagsString,n.legalHold1,n.transactionalContentMD5,n.transactionalContentCrc64],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:s},h={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:a.BlockList,headersMapper:a.BlockBlobGetBlockListHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.snapshot,n.comp25,n.listType],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifTags],isXML:!0,serializer:s};}),parcelRequire.register("fkxlr",function(e,t){$parcel$export(e.exports,"PageBlob",()=>o);/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */var r=parcelRequire("ivnR6"),i=parcelRequire("e5kiN"),a=parcelRequire("iGLpU"),n=parcelRequire("4lprA");class o{/** * Initialize a new instance of the class PageBlob class. * @param client Reference to the service client */constructor(e){this.client=e;}/** * The Create operation creates a new page blob. * @param contentLength The length of the request. * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. The * page blob size must be aligned to a 512-byte boundary. * @param options The options parameters. */create(e,t,i){let a={contentLength:e,blobContentLength:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,c);}/** * The Upload Pages operation writes a range of pages to a page blob * @param contentLength The length of the request. * @param body Initial data * @param options The options parameters. */uploadPages(e,t,i){let a={contentLength:e,body:t,options:r.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,l);}/** * The Clear Pages operation clears a set of pages from a page blob * @param contentLength The length of the request. * @param options The options parameters. */clearPages(e,t){let i={contentLength:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,p);}/** * The Upload Pages operation writes a range of pages to a page blob where the contents are read from a * URL * @param sourceUrl Specify a URL to the copy source. * @param sourceRange Bytes of source data in the specified range. The length of this range should * match the ContentLength header and x-ms-range/Range destination range header. * @param contentLength The length of the request. * @param range The range of bytes to which the source range would be written. The range should be 512 * aligned and range-end is required. * @param options The options parameters. */uploadPagesFromURL(e,t,i,a,n){let o={sourceUrl:e,sourceRange:t,contentLength:i,range:a,options:r.operationOptionsToRequestOptionsBase(n||{})};return this.client.sendOperationRequest(o,d);}/** * The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot of a * page blob * @param options The options parameters. */getPageRanges(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,m);}/** * The Get Page Ranges Diff operation returns the list of valid page ranges for a page blob that were * changed between target blob and previous snapshot. * @param options The options parameters. */getPageRangesDiff(e){let t={options:r.operationOptionsToRequestOptionsBase(e||{})};return this.client.sendOperationRequest(t,h);}/** * Resize the Blob * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. The * page blob size must be aligned to a 512-byte boundary. * @param options The options parameters. */resize(e,t){let i={blobContentLength:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,x);}/** * Update the sequence number of the blob * @param sequenceNumberAction Required if the x-ms-blob-sequence-number header is set for the request. * This property applies to page blobs only. This property indicates how the service should modify the * blob's sequence number * @param options The options parameters. */updateSequenceNumber(e,t){let i={sequenceNumberAction:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,f);}/** * The Copy Incremental operation copies a snapshot of the source page blob to a destination page blob. * The snapshot is copied such that only the differential changes between the previously copied * snapshot are transferred to the destination. The copied snapshots are complete copies of the * original snapshot and can be read or copied from as usual. This API is supported since REST version * 2016-05-31. * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would * appear in a request URI. The source blob must either be public or must be authenticated via a shared * access signature. * @param options The options parameters. */copyIncremental(e,t){let i={copySource:e,options:r.operationOptionsToRequestOptionsBase(t||{})};return this.client.sendOperationRequest(i,g);}}// Operation Specifications let s=new i.Serializer(a,/* isXml */!0),u=new i.Serializer(a,/* isXml */!1),c={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.PageBlobCreateHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobCreateExceptionHeaders}},queryParameters:[n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.metadata,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobCacheControl,n.blobContentType,n.blobContentMD5,n.blobContentEncoding,n.blobContentLanguage,n.blobContentDisposition,n.immutabilityPolicyExpiry,n.immutabilityPolicyMode,n.encryptionScope,n.tier,n.blobTagsString,n.legalHold1,n.blobType,n.blobContentLength,n.blobSequenceNumber],isXML:!0,serializer:s},l={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.PageBlobUploadPagesHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobUploadPagesExceptionHeaders}},requestBody:n.body1,queryParameters:[n.timeoutInSeconds,n.comp19],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.contentLength,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.range,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope,n.transactionalContentMD5,n.transactionalContentCrc64,n.contentType1,n.accept2,n.pageWrite,n.ifSequenceNumberLessThanOrEqualTo,n.ifSequenceNumberLessThan,n.ifSequenceNumberEqualTo],mediaType:"binary",serializer:u},p={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.PageBlobClearPagesHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobClearPagesExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp19],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.range,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope,n.ifSequenceNumberLessThanOrEqualTo,n.ifSequenceNumberLessThan,n.ifSequenceNumberEqualTo,n.pageWrite1],isXML:!0,serializer:s},d={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp19],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.contentLength,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope,n.sourceIfModifiedSince,n.sourceIfUnmodifiedSince,n.sourceIfMatch,n.sourceIfNoneMatch,n.sourceContentMD5,n.copySourceAuthorization,n.pageWrite,n.ifSequenceNumberLessThanOrEqualTo,n.ifSequenceNumberLessThan,n.ifSequenceNumberEqualTo,n.sourceUrl,n.sourceRange,n.sourceContentCrc64,n.range1],isXML:!0,serializer:s},m={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:a.PageList,headersMapper:a.PageBlobGetPageRangesHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.marker,n.maxPageSize,n.snapshot,n.comp20],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.range,n.ifMatch,n.ifNoneMatch,n.ifTags],isXML:!0,serializer:s},h={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:a.PageList,headersMapper:a.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.marker,n.maxPageSize,n.snapshot,n.comp20,n.prevsnapshot],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.range,n.ifMatch,n.ifNoneMatch,n.ifTags,n.prevSnapshotUrl],isXML:!0,serializer:s},x={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.PageBlobResizeHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobResizeExceptionHeaders}},queryParameters:[n.comp,n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.encryptionKey,n.encryptionKeySha256,n.encryptionAlgorithm,n.ifMatch,n.ifNoneMatch,n.ifTags,n.encryptionScope,n.blobContentLength],isXML:!0,serializer:s},f={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:a.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[n.comp,n.timeoutInSeconds],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.leaseId,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.ifTags,n.blobSequenceNumber,n.sequenceNumberAction],isXML:!0,serializer:s},g={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:a.PageBlobCopyIncrementalHeaders},default:{bodyMapper:a.StorageError,headersMapper:a.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[n.timeoutInSeconds,n.comp21],urlParameters:[n.url],headerParameters:[n.version,n.requestId,n.accept1,n.ifModifiedSince,n.ifUnmodifiedSince,n.ifMatch,n.ifNoneMatch,n.ifTags,n.copySource],isXML:!0,serializer:s};}),parcelRequire.register("aP5Z2",function(e,t){$parcel$export(e.exports,"toAccessTier",()=>o),$parcel$export(e.exports,"ensureCpkIfSpecified",()=>s);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r,i,a,n=parcelRequire("5MFjo");function o(e){if(void 0!==e)return e;// No more check if string is a valid AccessTier, and left this to underlay logic to decide(service). }function s(e,t){if(e&&!t)throw RangeError("Customer-provided encryption key must be used over HTTPS.");e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=n.EncryptionAlgorithmAES25);}(function(e){/** * Optimized for storing data that is accessed frequently. */e.Hot="Hot",/** * Optimized for storing data that is infrequently accessed and stored for at least 30 days. */e.Cool="Cool",/** * Optimized for storing data that is rarely accessed. */e.Cold="Cold",/** * Optimized for storing data that is rarely accessed and stored for at least 180 days * with flexible latency requirements (on the order of hours). */e.Archive="Archive";})(r||(r={})),function(e){/** * P4 Tier. */e.P4="P4",/** * P6 Tier. */e.P6="P6",/** * P10 Tier. */e.P10="P10",/** * P15 Tier. */e.P15="P15",/** * P20 Tier. */e.P20="P20",/** * P30 Tier. */e.P30="P30",/** * P40 Tier. */e.P40="P40",/** * P50 Tier. */e.P50="P50",/** * P60 Tier. */e.P60="P60",/** * P70 Tier. */e.P70="P70",/** * P80 Tier. */e.P80="P80";}(i||(i={})),function(e){/** * The OAuth scope to use to retrieve an AAD token for Azure Storage. */e.StorageOAuthScopes="https://storage.azure.com/.default",/** * The OAuth scope to use to retrieve an AAD token for Azure Disk. */e.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default";}(a||(a={}));}),parcelRequire.register("cayn8",function(e,t){$parcel$export(e.exports,"rangeResponseFromModel",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * Function that converts PageRange and ClearRange to a common Range object. * PageRange and ClearRange have start and end while Range offset and count * this function normalizes to Range. * @param response - Model PageBlob Range response */function r(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),r=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return Object.assign(Object.assign({},e),{pageRange:t,clearRange:r,_response:Object.assign(Object.assign({},e._response),{parsedBody:{pageRange:t,clearRange:r}})});}}),parcelRequire.register("gYUwj",function(e,t){$parcel$export(e.exports,"isPipelineLike",()=>b),$parcel$export(e.exports,"newPipeline",()=>C);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("9VZfm"),i=parcelRequire("60VDC"),a=parcelRequire("fqZ1u"),n=parcelRequire("llt85"),o=parcelRequire("fIS4N"),s=parcelRequire("lrZDM"),u=parcelRequire("1Vc6S"),c=parcelRequire("7estx"),l=parcelRequire("4PgmQ"),p=parcelRequire("kx2Q5"),d=parcelRequire("6tWZN"),m=parcelRequire("eZ981"),h=parcelRequire("lncUR"),x=parcelRequire("5MFjo"),f=parcelRequire("chMMF"),g=parcelRequire("lnlvP"),D=parcelRequire("e7JkV"),y=parcelRequire("jcFdF");function b(e){if(!e||"object"!=typeof e)return!1;let t=e;return Array.isArray(t.factories)&&"object"==typeof t.options&&"function"==typeof t.toServiceClientOptions;}class v{/** * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface. * * @param factories - * @param options - */constructor(e,t={}){this.factories=e,// when options.httpClient is not specified, passing in a DefaultHttpClient instance to // avoid each client creating its own http client. this.options=Object.assign(Object.assign({},t),{httpClient:t.httpClient||(0,g.getCachedDefaultHttpClient)()});}/** * Transfer Pipeline object to ServiceClientOptions object which is required by * ServiceClient constructor. * * @returns The ServiceClientOptions object from this Pipeline. */toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories};}}function C(e,t={}){var g;void 0===e&&(e=new h.AnonymousCredential());// Order is important. Closer to the API at the top & closer to the network at the bottom. // The credential's policy factory must appear close to the wire so it can sign any // changes made by other factories (like UniqueRequestIDPolicyFactory) let b=new f.TelemetryPolicyFactory(t.userAgentOptions),C=[(0,r.tracingPolicy)({userAgent:b.telemetryString}),(0,i.keepAlivePolicy)(t.keepAliveOptions),b,(0,a.generateClientRequestIdPolicy)(),new d.StorageBrowserPolicyFactory(),new m.StorageRetryPolicyFactory(t.retryOptions),// Default deserializationPolicy is provided by protocol layer // Use customized XML char key of "#" so we could deserialize metadata // with "_" key (0,n.deserializationPolicy)(void 0,{xmlCharKey:"#"}),(0,o.logPolicy)({logger:p.logger.info,allowedHeaderNames:x.StorageBlobLoggingAllowedHeaderNames,allowedQueryParameters:x.StorageBlobLoggingAllowedQueryParameters})];return s.isNode&&(// policies only available in Node.js runtime, not in browsers C.push((0,u.proxyPolicy)(t.proxyOptions)),C.push((0,c.disableResponseDecompressionPolicy)())),C.push((0,l.isTokenCredential)(e)?(0,D.attachCredential)((0,y.storageBearerTokenChallengeAuthenticationPolicy)(e,null!==(g=t.audience)&&void 0!==g?g:x.StorageOAuthScopes),e):e),new v(C,t);}}),parcelRequire.register("9VZfm",function(e,t){$parcel$export(e.exports,"tracingPolicy",()=>u);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("42Oo8"),i=parcelRequire("baIZW"),a=parcelRequire("2hiFM"),n=parcelRequire("bLdCz"),o=parcelRequire("aQvX1");let s=(0,i.createSpanFunction)({packagePrefix:"",namespace:""});function u(e={}){return{create:(t,r)=>new c(t,r,e)};}class c extends r.BaseRequestPolicy{constructor(e,t,r){super(e,t),this.userAgent=r.userAgent;}async sendRequest(e){if(!e.tracingContext)return this._nextPolicy.sendRequest(e);let t=this.tryCreateSpan(e);if(!t)return this._nextPolicy.sendRequest(e);try{let r=await this._nextPolicy.sendRequest(e);return this.tryProcessResponse(t,r),r;}catch(e){throw this.tryProcessError(t,e),e;}}tryCreateSpan(e){var t;try{// Passing spanOptions as part of tracingOptions to maintain compatibility @azure/core-tracing@preview.13 and earlier. // We can pass this as a separate parameter once we upgrade to the latest core-tracing. let{span:r}=s(`HTTP ${e.method}`,{tracingOptions:{spanOptions:Object.assign(Object.assign({},e.spanOptions),{kind:a.SpanKind.CLIENT}),tracingContext:e.tracingContext}});// If the span is not recording, don't do any more work. if(!r.isRecording()){r.end();return;}let i=null===(t=e.tracingContext)||void 0===t?void 0:t.getValue(Symbol.for("az.namespace"));"string"==typeof i&&r.setAttribute("az.namespace",i),r.setAttributes({"http.method":e.method,"http.url":e.url,requestId:e.requestId}),this.userAgent&&r.setAttribute("http.user_agent",this.userAgent);// set headers let o=r.spanContext(),u=(0,n.getTraceParentHeader)(o);if(u&&(0,a.isSpanContextValid)(o)){e.headers.set("traceparent",u);let t=o.traceState&&o.traceState.serialize();t&&e.headers.set("tracestate",t);}return r;}catch(e){(0,o.logger).warning(`Skipping creating a tracing span due to an error: ${e.message}`);return;}}tryProcessError(e,t){try{e.setStatus({code:a.SpanStatusCode.ERROR,message:t.message}),t.statusCode&&e.setAttribute("http.status_code",t.statusCode),e.end();}catch(e){(0,o.logger).warning(`Skipping tracing span processing due to an error: ${e.message}`);}}tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);let r=t.headers.get("x-ms-request-id");r&&e.setAttribute("serviceRequestId",r),e.setStatus({code:a.SpanStatusCode.OK}),e.end();}catch(e){(0,o.logger).warning(`Skipping tracing span processing due to an error: ${e.message}`);}}}}),parcelRequire.register("baIZW",function(e,t){$parcel$export(e.exports,"createSpanFunction",()=>o);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("2hiFM");parcelRequire("d10no");var i=parcelRequire("bYZ28"),a=parcelRequire("5PlQC");function n(){var e;if("undefined"==typeof process)return!1;let t=null===(e=process.env.AZURE_TRACING_DISABLED)||void 0===e?void 0:e.toLowerCase();return"false"!==t&&"0"!==t&&!!t;}function o(e){return function(t,o){let s;let u=(0,r.getTracer)(),c=(null==o?void 0:o.tracingOptions)||{},l=Object.assign({kind:r.SpanKind.INTERNAL},c.spanOptions),p=e.packagePrefix?`${e.packagePrefix}.${t}`:t;s=n()?(0,i.trace).wrapSpanContext(a.INVALID_SPAN_CONTEXT):u.startSpan(p,l,c.tracingContext),e.namespace&&s.setAttribute("az.namespace",e.namespace);let d=c.spanOptions||{};s.isRecording()&&e.namespace&&(d=Object.assign(Object.assign({},c.spanOptions),{attributes:Object.assign(Object.assign({},l.attributes),{"az.namespace":e.namespace})}));let m=Object.assign(Object.assign({},c),{spanOptions:d,tracingContext:(0,r.setSpan)(c.tracingContext||(0,r.context).active(),s)}),h=Object.assign(Object.assign({},o),{tracingOptions:m});return{span:s,updatedOptions:h};};}}),parcelRequire.register("bLdCz",function(e,t){$parcel$export(e.exports,"getTraceParentHeader",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. let r="00";function i(e){let t=[];if(e.traceId||t.push("traceId"),e.spanId||t.push("spanId"),t.length)return;let i=e.traceFlags||0/* NONE */,a=i.toString(16),n=1===a.length?`0${a}`:a;// https://www.w3.org/TR/trace-context/#traceparent-header-field-values return`${r}-${e.traceId}-${e.spanId}-${n}`;}}),parcelRequire.register("aQvX1",function(e,t){$parcel$export(e.exports,"logger",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("dcIHy");let i=(0,r.createClientLogger)("core-http");}),parcelRequire.register("dcIHy",function(e,t){let r;$parcel$export(e.exports,"createClientLogger",()=>l);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var i=parcelRequire("k3IFV");let a=new Set(),n="undefined"!=typeof process&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,o=(0,i.default)("azure");o.log=(...e)=>{(0,i.default).log(...e);};let s=["verbose","info","warning","error"];function u(e){if(e&&!h(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${s.join(",")}`);r=e;let t=[];for(let e of a)m(e)&&t.push(e.namespace);(0,i.default).enable(t.join(","));}n&&(h(n)?u(n):console.error(`AZURE_LOG_LEVEL set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${s.join(", ")}.`));let c={verbose:400,info:300,warning:200,error:100};function l(e){let t=o.extend(e);return p(o,t),{error:d(t,"error"),warning:d(t,"warning"),info:d(t,"info"),verbose:d(t,"verbose")};}function p(e,t){t.log=(...t)=>{e.log(...t);};}function d(e,t){let r=Object.assign(e.extend(t),{level:t});if(p(e,r),m(r)){let e=(0,i.default).disable();(0,i.default).enable(e+","+r.namespace);}return a.add(r),r;}function m(e){return!!(r&&c[e.level]<=c[r]);}function h(e){return s.includes(e);}}),parcelRequire.register("k3IFV",function(e,t){let r;$parcel$export(e.exports,"default",()=>x);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var i=parcelRequire("gpmsq");let a="undefined"!=typeof process&&process.env&&process.env.DEBUG||void 0,n=[],o=[],s=[];a&&c(a);let u=Object.assign(e=>d(e),{enable:c,enabled:l,disable:p,log:i.log});function c(e){r=e,n=[],o=[];let t=/\*/g,i=e.split(",").map(e=>e.trim().replace(t,".*?"));for(let e of i)e.startsWith("-")?o.push(RegExp(`^${e.substr(1)}$`)):n.push(RegExp(`^${e}$`));for(let e of s)e.enabled=l(e.namespace);}function l(e){if(e.endsWith("*"))return!0;for(let t of o)if(t.test(e))return!1;for(let t of n)if(t.test(e))return!0;return!1;}function p(){let e=r||"";return c(""),e;}function d(e){let t=Object.assign(r,{enabled:l(e),destroy:m,log:u.log,namespace:e,extend:h});function r(...i){t.enabled&&(i.length>0&&(i[0]=`${e} ${i[0]}`),t.log(...i));}return s.push(t),t;}function m(){let e=s.indexOf(this);return e>=0&&(s.splice(e,1),!0);}function h(e){let t=d(`${this.namespace}:${e}`);return t.log=this.log,t;}var x=u;}),parcelRequire.register("gpmsq",function(e,t){$parcel$export(e.exports,"log",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. function r(e,...t){process.stderr.write(`${$parcel$interopDefault($k14yv$util).format(e,...t)}${$k14yv$os.EOL}`);}}),parcelRequire.register("60VDC",function(e,t){$parcel$export(e.exports,"DefaultKeepAliveOptions",()=>i),$parcel$export(e.exports,"keepAlivePolicy",()=>a);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("42Oo8");let i={enable:!0};function a(e){return{create:(t,r)=>new n(t,r,e||i)};}class n extends r.BaseRequestPolicy{/** * Creates an instance of KeepAlivePolicy. * * @param nextPolicy - * @param options - * @param keepAliveOptions - */constructor(e,t,r){super(e,t),this.keepAliveOptions=r;}/** * Sends out request. * * @param request - * @returns */async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e);}}}),parcelRequire.register("fqZ1u",function(e,t){$parcel$export(e.exports,"generateClientRequestIdPolicy",()=>i);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("42Oo8");function i(e="x-ms-client-request-id"){return{create:(t,r)=>new a(t,r,e)};}class a extends r.BaseRequestPolicy{constructor(e,t,r){super(e,t),this._requestIdHeaderName=r;}sendRequest(e){return e.headers.contains(this._requestIdHeaderName)||e.headers.set(this._requestIdHeaderName,e.requestId),this._nextPolicy.sendRequest(e);}}}),parcelRequire.register("llt85",function(e,t){$parcel$export(e.exports,"deserializationPolicy",()=>s),$parcel$export(e.exports,"DefaultDeserializationOptions",()=>l);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("42Oo8"),i=parcelRequire("2dg8H"),a=parcelRequire("e5kiN"),n=parcelRequire("f1RLO"),o=parcelRequire("hLHYf");function s(e,t){return{create:(r,i)=>new p(r,i,e,t)};}let u=["application/json","text/json"],c=["application/xml","application/atom+xml"],l={expectedContentTypes:{json:u,xml:c}};class p extends r.BaseRequestPolicy{constructor(e,t,r,a={}){var n;super(e,t),this.jsonContentTypes=r&&r.json||u,this.xmlContentTypes=r&&r.xml||c,this.xmlCharKey=null!==(n=a.xmlCharKey)&&void 0!==n?n:i.XML_CHARKEY;}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(e=>h(this.jsonContentTypes,this.xmlContentTypes,e,{xmlCharKey:this.xmlCharKey}));}}function d(e){let t;let r=e.request,i=r.operationSpec;if(i){let a=r.operationResponseGetter;t=a?a(i,e):i.responses[e.status];}return t;}function m(e){let t=e.request.shouldDeserialize;return void 0===t||("boolean"==typeof t?t:t(e));}function h(e,t,r,o={}){var s,u,c;let l={rootName:null!==(s=o.rootName)&&void 0!==s?s:"",includeRoot:null!==(u=o.includeRoot)&&void 0!==u&&u,xmlCharKey:null!==(c=o.xmlCharKey)&&void 0!==c?c:i.XML_CHARKEY};return g(e,t,r,l).then(e=>{if(!m(e))return e;let t=e.request.operationSpec;if(!t||!t.responses)return e;let i=d(e),{error:s,shouldReturnResponse:u}=f(e,t,i);if(s)throw s;if(u)return e;// An operation response spec does exist for current status code, so // use it to deserialize the response. if(i){if(i.bodyMapper){let r=e.parsedBody;t.isXML&&i.bodyMapper.type.name===a.MapperType.Sequence&&(r="object"==typeof r?r[i.bodyMapper.xmlElementName]:[]);try{e.parsedBody=t.serializer.deserialize(i.bodyMapper,r,"operationRes.parsedBody",o);}catch(r){let t=new n.RestError(`Error ${r} occurred in deserializing the responseBody - ${e.bodyAsText}`,void 0,e.status,e.request,e);throw t;}}else"HEAD"===t.httpMethod&&(e.parsedBody=r.status>=200&&r.status<300);i.headersMapper&&(e.parsedHeaders=t.serializer.deserialize(i.headersMapper,e.headers.toJson(),"operationRes.parsedHeaders",o));}return e;});}function x(e){let t=Object.keys(e.responses);return 0===t.length||1===t.length&&"default"===t[0];}function f(e,t,r){var i;let o=200<=e.status&&e.status<300,s=x(t)?o:!!r;if(s&&(!r||!r.isError))return{error:null,shouldReturnResponse:!1};let u=null!=r?r:t.responses.default,c=(null===(i=e.request.streamResponseStatusCodes)||void 0===i?void 0:i.has(e.status))||e.request.streamResponseBody,l=c?`Unexpected status code: ${e.status}`:e.bodyAsText,p=new n.RestError(l,void 0,e.status,e.request,e);// If the item failed but there's no error spec or default spec to deserialize the error, // we should fail so we just throw the parsed response if(!u)throw p;let d=u.bodyMapper,m=u.headersMapper;try{// If error response has a body, try to deserialize it using default body mapper. // Then try to extract error code & message from it if(e.parsedBody){let r;let i=e.parsedBody;if(d){let e=i;t.isXML&&d.type.name===a.MapperType.Sequence&&(e="object"==typeof i?i[d.xmlElementName]:[]),r=t.serializer.deserialize(d,e,"error.response.parsedBody");}let n=i.error||r||i;p.code=n.code,n.message&&(p.message=n.message),d&&(p.response.parsedBody=r);}e.headers&&m&&(p.response.parsedHeaders=t.serializer.deserialize(m,e.headers.toJson(),"operationRes.parsedHeaders"));}catch(t){p.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`;}return{error:p,shouldReturnResponse:!1};}function g(e,t,r,i){var a;let s=e=>{let t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`,i=e.code||n.RestError.PARSE_ERROR,a=new n.RestError(t,i,r.status,r.request,r);return Promise.reject(a);},u=(null===(a=r.request.streamResponseStatusCodes)||void 0===a?void 0:a.has(r.status))||r.request.streamResponseBody;if(!u&&r.bodyAsText){let a=r.bodyAsText,n=r.headers.get("Content-Type")||"",u=n?n.split(";").map(e=>e.toLowerCase()):[];if(0===u.length||u.some(t=>-1!==e.indexOf(t)))return new Promise(e=>{r.parsedBody=JSON.parse(a),e(r);}).catch(s);if(u.some(e=>-1!==t.indexOf(e)))return(0,o.parseXML)(a,i).then(e=>(r.parsedBody=e,r)).catch(s);}return Promise.resolve(r);}}),parcelRequire.register("f1RLO",function(e,t){$parcel$export(e.exports,"RestError",()=>n);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("huRpD"),i=parcelRequire("d3CDj");let a=new r.Sanitizer();class n extends Error{constructor(e,t,r,i,a){super(e),this.name="RestError",this.code=t,this.statusCode=r,this.request=i,this.response=a,Object.setPrototypeOf(this,n.prototype);}/** * Logging method for util.inspect in Node */[i.custom](){return`RestError: ${this.message} ${a.sanitize(this)}`;}}/** * A constant string to identify errors that may arise when making an HTTP request that indicates an issue with the transport layer (e.g. the hostname of the URL cannot be resolved via DNS.) */n.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR",/** * A constant string to identify errors that may arise from parsing an incoming HTTP response. Usually indicates a malformed HTTP body, such as an encoded JSON payload that is incomplete. */n.PARSE_ERROR="PARSE_ERROR";}),parcelRequire.register("huRpD",function(e,t){$parcel$export(e.exports,"Sanitizer",()=>s);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("18oFr"),i=parcelRequire("8sP3n");let a="REDACTED",n=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],o=["api-version"];class s{constructor({allowedHeaderNames:e=[],allowedQueryParameters:t=[]}={}){e=Array.isArray(e)?n.concat(e):n,t=Array.isArray(t)?o.concat(t):o,this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()));}sanitize(e){let t=new Set();return JSON.stringify(e,(e,r)=>{// Ensure Errors include their interesting non-enumerable members if(r instanceof Error)return Object.assign(Object.assign({},r),{name:r.name,message:r.message});if("_headersMap"===e)return this.sanitizeHeaders(r);if("url"===e)return this.sanitizeUrl(r);if("query"===e)return this.sanitizeQuery(r);if("body"!==e){if("response"===e)return;if("operationSpec"===e)// field with the autorest spec. No need to log it. return;else if(Array.isArray(r)||(0,i.isObject)(r)){if(t.has(r))return"[Circular]";t.add(r);}return r;}},2);}sanitizeHeaders(e){return this.sanitizeObject(e,this.allowedHeaderNames,(e,t)=>e[t].value);}sanitizeQuery(e){return this.sanitizeObject(e,this.allowedQueryParameters,(e,t)=>e[t]);}sanitizeObject(e,t,r){if("object"!=typeof e||null===e)return e;let i={};for(let n of Object.keys(e))t.has(n.toLowerCase())?i[n]=r(e,n):i[n]=a;return i;}sanitizeUrl(e){if("string"!=typeof e||null===e)return e;let t=(0,r.URLBuilder).parse(e),i=t.getQuery();if(!i)return e;let n=(0,r.URLQuery).parse(i);for(let e of n.keys())this.allowedQueryParameters.has(e.toLowerCase())||n.set(e,a);return t.setQuery(n.toString()),t.toString();}}}),parcelRequire.register("d3CDj",function(e,t){$parcel$export(e.exports,"custom",()=>r);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. let r=$k14yv$util.inspect.custom;}),parcelRequire.register("hLHYf",function(e,t){$parcel$export(e.exports,"stringifyXML",()=>s),$parcel$export(e.exports,"parseXML",()=>u);// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. var r=parcelRequire("9OKsB"),i=parcelRequire("2dg8H");// Note: The reason we re-define all of the xml2js default settings (version 2.0) here is because the default settings object exposed // by the xm2js library is mutable. See https://github.com/Leonidas-from-XIV/node-xml2js/issues/536 // By creating a new copy of the settings each time we instantiate the parser, // we are safeguarding against the possibility of the default settings being mutated elsewhere unintentionally. let a={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:i.XML_ATTRKEY,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:void 0,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:void 0,attrValueProcessors:void 0,tagNameProcessors:void 0,valueProcessors:void 0,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:void 0,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},n=Object.assign({},a);n.explicitArray=!1;// The xml2js settings for general XML building operations. let o=Object.assign({},a);function s(e,t={}){var a;o.rootName=t.rootName,o.charkey=null!==(a=t.xmlCharKey)&&void 0!==a?a:i.XML_CHARKEY;let n=new r.Builder(o);return n.buildObject(e);}function u(e,t={}){var a;n.explicitRoot=!!t.includeRoot,n.charkey=null!==(a=t.xmlCharKey)&&void 0!==a?a:i.XML_CHARKEY;let o=new r.Parser(n);return new Promise((t,r)=>{e?o.parseString(e,(e,i)=>{e?r(e):t(i);}):r(Error("Document is empty"));});}o.explicitArray=!1,o.renderOpts={pretty:!1};}),parcelRequire.register("9OKsB",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},o={}.hasOwnProperty;r=parcelRequire("AfX4q"),t=parcelRequire("hBFg5"),i=parcelRequire("7JuJD"),a=parcelRequire("jyooR"),e.exports.defaults=r.defaults,e.exports.processors=a,e.exports.ValidationError=function(e){function t(e){this.message=e;}return n(t,e),t;}(Error),e.exports.Builder=t.Builder,e.exports.Parser=i.Parser,e.exports.parseString=i.parseString,e.exports.parseStringPromise=i.parseStringPromise;}).call(e.exports);}),parcelRequire.register("AfX4q",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){e.exports.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}};}).call(e.exports);}),parcelRequire.register("hBFg5",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n,o={}.hasOwnProperty;t=parcelRequire("iexRW"),r=parcelRequire("AfX4q").defaults,a=function(e){return"string"==typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0);},n=function(e){return"";},i=function(e){return e.replace("]]>","]]]]>");},e.exports.Builder=function(){function e(e){var t,i,a;for(t in this.options={},i=r["0.2"])o.call(i,t)&&(a=i[t],this.options[t]=a);for(t in e)o.call(e,t)&&(a=e[t],this.options[t]=a);}return e.prototype.buildObject=function(e){var i,s,u,c;return i=this.options.attrkey,s=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r["0.2"].rootName?(c=Object.keys(e)[0],e=e[c]):c=this.options.rootName,(u=function(e){return function(t,r){var c,l,p,d,m,h;if("object"!=typeof r)e.options.cdata&&a(r)?t.raw(n(r)):t.txt(r);else if(Array.isArray(r)){for(d in r)if(o.call(r,d))for(m in l=r[d])p=l[m],t=u(t.ele(m),p).up();}else for(m in r)if(o.call(r,m)){if(l=r[m],m===i){if("object"==typeof l)for(c in l)h=l[c],t=t.att(c,h);}else if(m===s)t=e.options.cdata&&a(l)?t.raw(n(l)):t.txt(l);else if(Array.isArray(l))for(d in l)o.call(l,d)&&(p=l[d],t="string"==typeof p?e.options.cdata&&a(p)?t.ele(m).raw(n(p)).up():t.ele(m,p).up():u(t.ele(m),p).up());else"object"==typeof l?t=u(t.ele(m),l).up():"string"==typeof l&&e.options.cdata&&a(l)?t=t.ele(m).raw(n(l)).up():(null==l&&(l=""),t=t.ele(m,l.toString()).up());}return t;};}(this))(t.create(c,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),e).end(this.options.renderOpts);},e;}();}).call(e.exports);}),parcelRequire.register("iexRW",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n,o,s,u,c,l;u=(l=parcelRequire("kVJuC")).assign,c=l.isFunction,i=parcelRequire("6Kdev"),a=parcelRequire("chPmK"),n=parcelRequire("evXP7"),s=parcelRequire("5Jk7q"),o=parcelRequire("dS5Gn"),t=parcelRequire("jlPhh"),r=parcelRequire("cc1c1"),e.exports.create=function(e,t,r,i){var n,o;if(null==e)throw Error("Root element needs a name.");return i=u({},t,r,i),o=(n=new a(i)).element(e),i.headless||(n.declaration(i),(null!=i.pubID||null!=i.sysID)&&n.dtd(i)),o;},e.exports.begin=function(e,t,r){var i;return(c(e)&&(t=(i=[e,t])[0],r=i[1],e={}),t)?new n(e,t,r):new a(e);},e.exports.stringWriter=function(e){return new s(e);},e.exports.streamWriter=function(e,t){return new o(e,t);},e.exports.implementation=new i(),e.exports.nodeType=t,e.exports.writerState=r;}).call(e.exports);}),parcelRequire.register("kVJuC",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n,o,s,u=[].slice,c={}.hasOwnProperty;t=function(){var e,t,r,i,a,o;if(o=arguments[0],a=2<=arguments.length?u.call(arguments,1):[],n(Object.assign))Object.assign.apply(null,arguments);else for(e=0,r=a.length;e":(null!=(r=this.parent)?r.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":"";},e.prototype.ele=function(e,t,r){return this.element(e,t,r);},e.prototype.nod=function(e,t,r){return this.node(e,t,r);},e.prototype.txt=function(e){return this.text(e);},e.prototype.dat=function(e){return this.cdata(e);},e.prototype.com=function(e){return this.comment(e);},e.prototype.ins=function(e,t){return this.instruction(e,t);},e.prototype.doc=function(){return this.document();},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r);},e.prototype.e=function(e,t,r){return this.element(e,t,r);},e.prototype.n=function(e,t,r){return this.node(e,t,r);},e.prototype.t=function(e){return this.text(e);},e.prototype.d=function(e){return this.cdata(e);},e.prototype.c=function(e){return this.comment(e);},e.prototype.r=function(e){return this.raw(e);},e.prototype.i=function(e,t){return this.instruction(e,t);},e.prototype.u=function(){return this.up();},e.prototype.importXMLBuilder=function(e){return this.importDocument(e);},e.prototype.replaceChild=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.removeChild=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.appendChild=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.hasChildNodes=function(){return 0!==this.children.length;},e.prototype.cloneNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.isSupported=function(e,t){return!0;},e.prototype.hasAttributes=function(){return 0!==this.attribs.length;},e.prototype.compareDocumentPosition=function(e){var r,i;return(r=this,r===e)?0:this.document()!==e.document()?(i=t.Disconnected|t.ImplementationSpecific,.5>Math.random()?i|=t.Preceding:i|=t.Following,i):r.isAncestor(e)?t.Contains|t.Preceding:r.isDescendant(e)?t.Contains|t.Following:r.isPreceding(e)?t.Preceding:t.Following;},e.prototype.isSameNode=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.lookupPrefix=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.isDefaultNamespace=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.lookupNamespaceURI=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.isEqualNode=function(e){var t,r,i;if(e.nodeType!==this.nodeType||e.children.length!==this.children.length)return!1;for(t=r=0,i=this.children.length-1;0<=i?r<=i:r>=i;t=0<=i?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0;},e.prototype.getFeature=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.setUserData=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.getUserData=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},e.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e));},e.prototype.isDescendant=function(e){var t,r,i,a;for(r=0,i=(a=this.children).length;rr;},e.prototype.treePosition=function(e){var t,r;return(r=0,t=!1,this.foreachTreeNode(this.document(),function(i){if(r++,!t&&i===e)return t=!0;}),t)?r:-1;},e.prototype.foreachTreeNode=function(e,t){var r,i,a,n,o;for(e||(e=this.document()),i=0,a=(n=e.children).length;i=i;t=0<=i?++r:--r)if(!this.attribs[t].isEqualNode(e.attribs[t]))return!1;return!0;},a;}(a);}).call(e.exports);}),parcelRequire.register("jlPhh",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205};}).call(e.exports);}),parcelRequire.register("26xpk",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r;t=parcelRequire("jlPhh"),r=parcelRequire("lCtNl"),e.exports=function(){function e(e,r,i){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==r)throw Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(i),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null;}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type;}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent;}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value;},set:function(e){return this.value=e||"";}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return"";}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return"";}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name;}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0;}}),e.prototype.clone=function(){return Object.create(this);},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e));},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">";},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&e.prefix===this.prefix&&e.localName===this.localName&&e.value===this.value;},e;}();}).call(e.exports);}),parcelRequire.register("i7kdB",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){e.exports=function(){function e(e){this.nodes=e;}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0;}}),e.prototype.clone=function(){return this.nodes=null;},e.prototype.getNamedItem=function(e){return this.nodes[e];},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null;},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null;},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null;},e.prototype.getNamedItemNS=function(e,t){throw Error("This DOM method is not implemented.");},e.prototype.setNamedItemNS=function(e){throw Error("This DOM method is not implemented.");},e.prototype.removeNamedItemNS=function(e,t){throw Error("This DOM method is not implemented.");},e;}();}).call(e.exports);}),parcelRequire.register("hXN4g",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},a={}.hasOwnProperty;t=parcelRequire("jlPhh"),r=parcelRequire("kMEMg"),e.exports=function(e){function r(e,i){if(r.__super__.constructor.call(this,e),null==i)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(i);}return i(r,e),r.prototype.clone=function(){return Object.create(this);},r.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e));},r;}(r);}).call(e.exports);}),parcelRequire.register("kMEMg",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function a(){this.constructor=e;}return a.prototype=t.prototype,e.prototype=new a(),e.__super__=t.prototype,e;},i={}.hasOwnProperty;t=parcelRequire("lCtNl"),e.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value="";}return r(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value;},set:function(e){return this.value=e||"";}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length;}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value;},set:function(e){return this.value=e||"";}}),t.prototype.clone=function(){return Object.create(this);},t.prototype.substringData=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo());},t.prototype.appendData=function(e){throw Error("This DOM method is not implemented."+this.debugInfo());},t.prototype.insertData=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo());},t.prototype.deleteData=function(e,t){throw Error("This DOM method is not implemented."+this.debugInfo());},t.prototype.replaceData=function(e,t,r){throw Error("This DOM method is not implemented."+this.debugInfo());},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data;},t;}(t);}).call(e.exports);}),parcelRequire.register("dMHoW",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},a={}.hasOwnProperty;t=parcelRequire("jlPhh"),r=parcelRequire("kMEMg"),e.exports=function(e){function r(e,i){if(r.__super__.constructor.call(this,e),null==i)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(i);}return i(r,e),r.prototype.clone=function(){return Object.create(this);},r.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e));},r;}(r);}).call(e.exports);}),parcelRequire.register("hkFgb",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a=function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},n={}.hasOwnProperty;i=parcelRequire("kVJuC").isObject,r=parcelRequire("lCtNl"),t=parcelRequire("jlPhh"),e.exports=function(e){function r(e,a,n,o){var s;r.__super__.constructor.call(this,e),i(a)&&(a=(s=a).version,n=s.encoding,o=s.standalone),a||(a="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(a),null!=n&&(this.encoding=this.stringify.xmlEncoding(n)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o));}return a(r,e),r.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e));},r;}(r);}).call(e.exports);}),parcelRequire.register("ci5Ld",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n,o,s,u,c=function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},l={}.hasOwnProperty;u=parcelRequire("kVJuC").isObject,s=parcelRequire("lCtNl"),t=parcelRequire("jlPhh"),r=parcelRequire("hyYIz"),a=parcelRequire("jDv5A"),i=parcelRequire("e1Cf2"),n=parcelRequire("kowMM"),o=parcelRequire("i7kdB"),e.exports=function(e){function s(e,r,i){var a,n,o,c,l,p;if(s.__super__.constructor.call(this,e),this.type=t.DocType,e.children){for(n=0,o=(c=e.children).length;n","]]]]>"),this.assertLegalChar(e));},e.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e);},e.prototype.raw=function(e){return this.options.noValidation?e:""+e||"";},e.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""));},e.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e);},e.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+e);return e;},e.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+e);return this.assertLegalChar(e);},e.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no";},e.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"");},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t))throw Error("Invalid character in string: "+e+" at index "+r.index);}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t)))throw Error("Invalid character in string: "+e+" at index "+r.index);return e;},e.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw Error("Invalid character in name");return e;},e.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "));},e.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/0)return Array(i).join(t.indent);return"";},e.prototype.endline=function(e,t,r){return!t.pretty||t.suppressPrettyCount?"":t.newline;},e.prototype.attribute=function(e,t,r){var i;return this.openAttribute(e,t,r),i=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,r),i;},e.prototype.cdata=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.comment=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.declaration=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.docType=function(e,t,i){var a,n,o,s,u;if(i||(i=0),this.openNode(e,t,i),t.state=r.OpenTag,s=this.indent(e,t,i)+"0){for(s+=" ["+this.endline(e,t,i),t.state=r.InsideTag,n=0,o=(u=e.children).length;n"+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),s;},e.prototype.element=function(e,i,a){var n,o,s,u,c,l,p,d,m,h,x,f,D,y;for(m in a||(a=0),h=!1,x="",this.openNode(e,i,a),i.state=r.OpenTag,x+=this.indent(e,i,a)+"<"+e.name,f=e.attribs)g.call(f,m)&&(n=f[m],x+=this.attribute(n,i,a));if(u=0===(s=e.children.length)?null:e.children[0],0===s||e.children.every(function(e){return(e.type===t.Text||e.type===t.Raw)&&""===e.value;}))i.allowEmpty?(x+=">",i.state=r.CloseTag,x+=""+this.endline(e,i,a)):(i.state=r.CloseTag,x+=i.spaceBeforeSlash+"/>"+this.endline(e,i,a));else if(i.pretty&&1===s&&(u.type===t.Text||u.type===t.Raw)&&null!=u.value)x+=">",i.state=r.InsideTag,i.suppressPrettyCount++,h=!0,x+=this.writeChildNode(u,i,a+1),i.suppressPrettyCount--,h=!1,i.state=r.CloseTag,x+=""+this.endline(e,i,a);else{if(i.dontPrettyTextNodes){for(c=0,p=(D=e.children).length;c"+this.endline(e,i,a),i.state=r.InsideTag,l=0,d=(y=e.children).length;l",h&&i.suppressPrettyCount--,x+=this.endline(e,i,a),i.state=r.None;}return this.closeNode(e,i,a),x;},e.prototype.writeChildNode=function(e,r,i){switch(e.type){case t.CData:return this.cdata(e,r,i);case t.Comment:return this.comment(e,r,i);case t.Element:return this.element(e,r,i);case t.Raw:return this.raw(e,r,i);case t.Text:return this.text(e,r,i);case t.ProcessingInstruction:return this.processingInstruction(e,r,i);case t.Dummy:return"";case t.Declaration:return this.declaration(e,r,i);case t.DocType:return this.docType(e,r,i);case t.AttributeDeclaration:return this.dtdAttList(e,r,i);case t.ElementDeclaration:return this.dtdElement(e,r,i);case t.EntityDeclaration:return this.dtdEntity(e,r,i);case t.NotationDeclaration:return this.dtdNotation(e,r,i);default:throw Error("Unknown XML node type: "+e.constructor.name);}},e.prototype.processingInstruction=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.raw=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i),t.state=r.InsideTag,a+=e.value,t.state=r.CloseTag,a+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.text=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i),t.state=r.InsideTag,a+=e.value,t.state=r.CloseTag,a+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.dtdAttList=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.dtdElement=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.dtdEntity=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.dtdNotation=function(e,t,i){var a;return this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a;},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e;}();}).call(e.exports);}),parcelRequire.register("cc1c1",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3};}).call(e.exports);}),parcelRequire.register("evXP7",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n,o,s,u,c,l,p,d,m,h,x,f,g,D,y,b,v,C,E,A={}.hasOwnProperty;v=(E=parcelRequire("kVJuC")).isObject,b=E.isFunction,C=E.isPlainObject,y=E.getValue,t=parcelRequire("jlPhh"),d=parcelRequire("chPmK"),m=parcelRequire("fKfZt"),a=parcelRequire("hXN4g"),n=parcelRequire("dMHoW"),x=parcelRequire("1COsN"),D=parcelRequire("5uTV5"),h=parcelRequire("lAu2Z"),l=parcelRequire("hkFgb"),p=parcelRequire("ci5Ld"),o=parcelRequire("hyYIz"),u=parcelRequire("jDv5A"),s=parcelRequire("e1Cf2"),c=parcelRequire("kowMM"),i=parcelRequire("26xpk"),g=parcelRequire("jCuSG"),f=parcelRequire("5Jk7q"),r=parcelRequire("cc1c1"),e.exports=function(){function e(e,r,i){var a;this.name="?xml",this.type=t.Document,e||(e={}),a={},e.writer?C(e.writer)&&(a=e.writer,e.writer=new f()):e.writer=new f(),this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(a),this.stringify=new g(e),this.onDataCallback=r||function(){},this.onEndCallback=i||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null;}return e.prototype.createChildNode=function(e){var r,i,a,n,o,s,u,c;switch(e.type){case t.CData:this.cdata(e.value);break;case t.Comment:this.comment(e.value);break;case t.Element:for(i in a={},u=e.attribs)A.call(u,i)&&(r=u[i],a[i]=r.value);this.node(e.name,a);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(e.value);break;case t.Text:this.text(e.value);break;case t.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw Error("This XML node type is not supported in a JS object: "+e.constructor.name);}for(o=0,s=(c=e.children).length;o=0;)this.up();return this.onEnd();},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode);},e.prototype.openNode=function(e){var i,a,n,o;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==t.Element||(this.root=e),a="",e.type===t.Element){for(n in this.writerOptions.state=r.OpenTag,a=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,o=e.attribs)A.call(o,n)&&(i=o[n],a+=this.writer.attribute(i,this.writerOptions,this.currentLevel));a+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag;}else this.writerOptions.state=r.OpenTag,a=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),a+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(a,this.currentLevel),e.isOpen=!0;}},e.prototype.closeNode=function(e){var i;if(!e.isClosed)return i="",this.writerOptions.state=r.CloseTag,i=e.type===t.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData(i,this.currentLevel),e.isClosed=!0;},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1);},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback();},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">";},e.prototype.ele=function(){return this.element.apply(this,arguments);},e.prototype.nod=function(e,t,r){return this.node(e,t,r);},e.prototype.txt=function(e){return this.text(e);},e.prototype.dat=function(e){return this.cdata(e);},e.prototype.com=function(e){return this.comment(e);},e.prototype.ins=function(e,t){return this.instruction(e,t);},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r);},e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r);},e.prototype.e=function(e,t,r){return this.element(e,t,r);},e.prototype.n=function(e,t,r){return this.node(e,t,r);},e.prototype.t=function(e){return this.text(e);},e.prototype.d=function(e){return this.cdata(e);},e.prototype.c=function(e){return this.comment(e);},e.prototype.r=function(e){return this.raw(e);},e.prototype.i=function(e,t){return this.instruction(e,t);},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments);},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments);},e.prototype.ent=function(e,t){return this.entity(e,t);},e.prototype.pent=function(e,t){return this.pEntity(e,t);},e.prototype.not=function(e,t){return this.notation(e,t);},e;}();}).call(e.exports);}),parcelRequire.register("dS5Gn",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a=function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},n={}.hasOwnProperty;t=parcelRequire("jlPhh"),i=parcelRequire("iSJWK"),r=parcelRequire("cc1c1"),e.exports=function(e){function i(e,t){this.stream=e,i.__super__.constructor.call(this,t);}return a(i,e),i.prototype.endline=function(e,t,a){return e.isLastRootNode&&t.state===r.CloseTag?"":i.__super__.endline.call(this,e,t,a);},i.prototype.document=function(e,t){var r,i,a,n,o,s,u,c,l;for(u=e.children,i=a=0,o=u.length;a0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,i)),t.state=r.InsideTag,n=0,o=(s=e.children).length;n"),this.stream.write(this.endline(e,t,i)),t.state=r.None,this.closeNode(e,t,i);},i.prototype.element=function(e,i,a){var o,s,u,c,l,p,d,m,h;for(d in a||(a=0),this.openNode(e,i,a),i.state=r.OpenTag,this.stream.write(this.indent(e,i,a)+"<"+e.name),m=e.attribs)n.call(m,d)&&(o=m[d],this.attribute(o,i,a));if(c=0===(u=e.children.length)?null:e.children[0],0===u||e.children.every(function(e){return(e.type===t.Text||e.type===t.Raw)&&""===e.value;}))i.allowEmpty?(this.stream.write(">"),i.state=r.CloseTag,this.stream.write("")):(i.state=r.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&1===u&&(c.type===t.Text||c.type===t.Raw)&&null!=c.value)this.stream.write(">"),i.state=r.InsideTag,i.suppressPrettyCount++,this.writeChildNode(c,i,a+1),i.suppressPrettyCount--,i.state=r.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(e,i,a)),i.state=r.InsideTag,l=0,p=(h=e.children).length;l");}return this.stream.write(this.endline(e,i,a)),i.state=r.None,this.closeNode(e,i,a);},i.prototype.processingInstruction=function(e,t,r){return this.stream.write(i.__super__.processingInstruction.call(this,e,t,r));},i.prototype.raw=function(e,t,r){return this.stream.write(i.__super__.raw.call(this,e,t,r));},i.prototype.text=function(e,t,r){return this.stream.write(i.__super__.text.call(this,e,t,r));},i.prototype.dtdAttList=function(e,t,r){return this.stream.write(i.__super__.dtdAttList.call(this,e,t,r));},i.prototype.dtdElement=function(e,t,r){return this.stream.write(i.__super__.dtdElement.call(this,e,t,r));},i.prototype.dtdEntity=function(e,t,r){return this.stream.write(i.__super__.dtdEntity.call(this,e,t,r));},i.prototype.dtdNotation=function(e,t,r){return this.stream.write(i.__super__.dtdNotation.call(this,e,t,r));},i;}(i);}).call(e.exports);}),parcelRequire.register("7JuJD",function(e,t){// Generated by CoffeeScript 1.12.7 (function(){var t,r,i,a,n,o,s,u,c=function(e,t){return function(){return e.apply(t,arguments);};},l=function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e;}return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},p={}.hasOwnProperty;s=parcelRequire("e4c2j"),i=$k14yv$events,t=parcelRequire("cUdNd"),o=parcelRequire("jyooR"),u=$k14yv$timers.setImmediate,r=parcelRequire("AfX4q").defaults,a=function(e){return"object"==typeof e&&null!=e&&0===Object.keys(e).length;},n=function(e,t,r){var i,a;for(i=0,a=e.length;i0&&(u[e.options.childkey]=l),l=u;}return i.length>0?e.assignOrPush(h,c,l):(e.options.explicitRoot&&(m=l,(l=Object.create(null))[c]=m),e.resultObject=l,e.saxParser.ended=!0,e.emit("end",e.resultObject));};}(this),r=function(e){return function(r){var a,n;if(n=i[i.length-1])return n[t]+=r,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==r.replace(/\\n/g,"").trim())&&(n[e.options.childkey]=n[e.options.childkey]||[],(a={"#name":"__text__"})[t]=r,e.options.normalize&&(a[t]=a[t].replace(/\s{2,}/g," ").trim()),n[e.options.childkey].push(a)),n;};}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(e){return function(e){var t;if(t=r(e))return t.cdata=!0;};}(0);},d.prototype.parseString=function(e,r){var i;null!=r&&"function"==typeof r&&(this.on("end",function(e){return this.reset(),r(null,e);}),this.on("error",function(e){return this.reset(),r(e);}));try{if(e=e.toString(),""===e.trim())return this.emit("end",null),!0;if(e=t.stripBOM(e),this.options.async)return this.remaining=e,u(this.processAsync),this.saxParser;return this.saxParser.write(e).close();}catch(e){if(i=e,!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",i),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw i;}},d.prototype.parseStringPromise=function(e){return new Promise(function(t){return function(r,i){return t.parseString(e,function(e,t){return e?i(e):r(t);});};}(this));},d;}(i),e.exports.parseString=function(t,r,i){var a,n;return null!=i?("function"==typeof i&&(a=i),"object"==typeof r&&(n=r)):("function"==typeof r&&(a=r),n={}),new e.exports.Parser(n).parseString(t,a);},e.exports.parseStringPromise=function(t,r){var i;return"object"==typeof r&&(i=r),new e.exports.Parser(i).parseStringPromise(t);};}).call(e.exports);}),parcelRequire.register("e4c2j",function(e,t){!function(e){e.parser=function(e,t){return new i(e,t);},e.SAXParser=i,e.SAXStream=c,e.createStream=u,// When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns. // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)), // since that's the earliest that a buffer overrun could occur. This way, checks are // as rare as required, but as often as necessary to ensure never crossing this bound. // Furthermore, buffers are only tested at most once per write(), so passing a very // large string into write() might have undesirable effects, but this is manageable by // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme // edge case, result in creating at most one complete copy of the string passed in. // Set to Infinity to have unlimited buffers. e.MAX_BUFFER_LENGTH=65536;var t,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(t,r){if(!(this instanceof i))return new i(t,r);var a=this;n(a),a.q=a.c="",a.bufferCheckPosition=e.MAX_BUFFER_LENGTH,a.opt=r||{},a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags,a.looseCase=a.opt.lowercase?"toLowerCase":"toUpperCase",a.tags=[],a.closed=a.closedRoot=a.sawRoot=!1,a.tag=a.error=null,a.strict=!!t,a.noscript=!!(t||a.opt.noscript),a.state=A.BEGIN,a.strictEntities=a.opt.strictEntities,a.ENTITIES=a.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),a.attribList=[],a.opt.xmlns&&(a.ns=Object.create(h)),// mostly just for error reporting a.trackPosition=!1!==a.opt.position,a.trackPosition&&(a.position=a.line=a.column=0),B(a,"onready");}function a(t){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),a=0,n=0,o=r.length;ni)// we can get here under normal conditions. // Avoid issues by emitting the text node now, // so at least it won't get any bigger. switch(r[n]){case"textNode":F(t);break;case"cdata":N(t,"oncdata",t.cdata),t.cdata="";break;case"script":N(t,"onscript",t.script),t.script="";break;default:P(t,"Max buffer length exceeded: "+r[n]);}a=Math.max(a,s);}var u=e.MAX_BUFFER_LENGTH-a;t.bufferCheckPosition=u+t.position;}function n(e){for(var t=0,i=r.length;t"===e||y(e);}function C(e,t){return e.test(t);}function E(e,t){return!C(e,t);}var A=0;for(var S in e.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++//