/*! For license information please see 862-ff43ee384bb33b053eaa.js.LICENSE.txt */ (globalThis.webpackChunkhelphub=globalThis.webpackChunkhelphub||[]).push([[862],{4766:(t,n,r)=>{"use strict";function insertText(t,n){var r,i,o;const a=t.value.slice(0,null!==(r=t.selectionStart)&&void 0!==r?r:void 0),s=t.value.slice(null!==(i=t.selectionEnd)&&void 0!==i?i:void 0);let l=!0;t.contentEditable="true";try{l=document.execCommand("insertText",!1,n)}catch(c){l=!1}if(t.contentEditable="false",l&&!t.value.slice(0,null!==(o=t.selectionStart)&&void 0!==o?o:void 0).endsWith(n)&&(l=!1),!l){try{document.execCommand("ms-beginUndoUnit")}catch(m){}t.value=a+n+s;try{document.execCommand("ms-endUndoUnit")}catch(m){}t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))}}r.d(n,{B1:()=>subscribe});const i=new WeakMap;function setSkipFormattingFlag(t){const{currentTarget:n}=t,r="KeyV"===t.code&&(t.ctrlKey||t.metaKey)&&t.shiftKey;(r||r&&t.altKey)&&i.set(n,!0)}function unsetSkipFormattedFlag(t){const{currentTarget:n}=t;i.delete(n)}function shouldSkipFormatting(t){var n;return null!==(n=i.get(t))&&void 0!==n&&n}function install(t){t.addEventListener("paste",onPaste)}function onPaste(t){const n=t.clipboardData,{currentTarget:r}=t;if(shouldSkipFormatting(r))return;if(!n||!function hasHTML(t){return t.types.includes("text/html")}(n))return;const i=t.currentTarget;if(!(i instanceof HTMLTextAreaElement))return;if(function isWithinUserMention(t){const n=t.selectionStart||0;if(0===n)return!1;return"@"===t.value.substring(n-1,n)}(i))return;let o=n.getData("text/plain");const a=n.getData("text/html"),s=a.replace(/\u00A0/g," ").replace(/\uC2A0/g," ");if(!a)return;if(o=o.trim(),!o)return;const l=(new DOMParser).parseFromString(s,"text/html"),c=function convertToMarkdown(t,n){let r=n.firstChild(),i=t,o=0,a=0;const s=1e4;for(;r&&a=0){const n=linkify(r,t);i=i.slice(0,s)+n+i.slice(s+t.length),o=s+n.length}r=n.nextNode()}return a===s?t:i}(o,l.createTreeWalker(l.body,NodeFilter.SHOW_ALL,(t=>t.parentNode&&isLink(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT)));c!==o&&(t.stopPropagation(),t.preventDefault(),insertText(i,c))}function isEmptyString(t){return!t||0===(null==t?void 0:t.trim().length)}function isLink(t){var n;return"a"===(null===(n=t.tagName)||void 0===n?void 0:n.toLowerCase())&&t.hasAttribute("href")}function linkify(t,n){const r=t.href||"";let i="";return i=function isUserMention(t){var n;return"@"===(null===(n=t.textContent)||void 0===n?void 0:n.slice(0,1))&&"user"===t.getAttribute("data-hovercard-type")}(t)||function isTeamMention(t){var n;return"@"===(null===(n=t.textContent)||void 0===n?void 0:n.slice(0,1))&&"team"===t.getAttribute("data-hovercard-type")}(t)?n:function isSpecialLink(t){return t.className.indexOf("commit-link")>=0||!!t.getAttribute("data-hovercard-type")&&"user"!==t.getAttribute("data-hovercard-type")}(t)||function areEqualLinks(t,n){return t="/"===t.slice(-1)?t.slice(0,-1):t,n="/"===n.slice(-1)?n.slice(0,-1):n,t.toLowerCase()===n.toLowerCase()}(r,n)?r:`[${n}](${r})`,i}function paste_markdown_image_link_install(t){t.addEventListener("dragover",onDragover),t.addEventListener("drop",onDrop),t.addEventListener("paste",paste_markdown_image_link_onPaste)}function onDrop(t){const n=t.dataTransfer;if(!n)return;if(function hasFile(t){return Array.from(t.types).indexOf("Files")>=0}(n))return;if(!hasLink(n))return;const r=extractLinks(n);if(!r.some(isImageLink))return;t.stopPropagation(),t.preventDefault();const i=t.currentTarget;i instanceof HTMLTextAreaElement&&insertText(i,r.map(paste_markdown_image_link_linkify).join(""))}function onDragover(t){const n=t.dataTransfer;n&&(n.dropEffect="link")}function paste_markdown_image_link_onPaste(t){const{currentTarget:n}=t;if(shouldSkipFormatting(n))return;const r=t.clipboardData;if(!r||!hasLink(r))return;const i=extractLinks(r);if(!i.some(isImageLink))return;t.stopPropagation(),t.preventDefault();const o=t.currentTarget;o instanceof HTMLTextAreaElement&&insertText(o,i.map(paste_markdown_image_link_linkify).join(""))}function paste_markdown_image_link_linkify(t){return isImageLink(t)?`\n![](${t})\n`:t}function hasLink(t){return Array.from(t.types).indexOf("text/uri-list")>=0}function extractLinks(t){return(t.getData("text/uri-list")||"").split("\r\n")}const o=/\.(gif|png|jpe?g)$/i;function isImageLink(t){return o.test(t)}const a=new WeakMap;function paste_markdown_link_install(t,n){var r;a.set(t,!0===(null===(r=null==n?void 0:n.defaultPlainTextPaste)||void 0===r?void 0:r.urlLinks)),t.addEventListener("paste",paste_markdown_link_onPaste)}function paste_markdown_link_onPaste(t){var n;const{currentTarget:r}=t,i=r,o=null!==(n=a.get(i))&&void 0!==n&&n,s=shouldSkipFormatting(i);if(!o&&s||o&&!s)return;const l=t.clipboardData;if(!l||!function hasPlainText(t){return Array.from(t.types).includes("text/plain")}(l))return;const c=t.currentTarget;if(!(c instanceof HTMLTextAreaElement))return;const m=l.getData("text/plain");if(!m)return;if(!isURL(m))return;if(function isWithinLink(t){const n=t.selectionStart||0;if(n>1){return"]("===t.value.substring(n-2,n)}return!1}(c))return;const p=c.value.substring(c.selectionStart,c.selectionEnd);p.length&&(isURL(p.trim())||(t.stopPropagation(),t.preventDefault(),insertText(c,function paste_markdown_link_linkify(t,n){return`[${t}](${n})`}(p,m.trim()))))}function isURL(t){try{return removeTrailingSlash(new URL(t).href).trim()===removeTrailingSlash(t).trim()}catch(n){return!1}}function removeTrailingSlash(t){return t.endsWith("/")?t.slice(0,t.length-1):t}function paste_markdown_table_install(t){t.addEventListener("dragover",paste_markdown_table_onDragover),t.addEventListener("drop",paste_markdown_table_onDrop),t.addEventListener("paste",paste_markdown_table_onPaste)}function paste_markdown_table_onDrop(t){const n=t.dataTransfer;if(!n)return;if(function paste_markdown_table_hasFile(t){return Array.from(t.types).indexOf("Files")>=0}(n))return;const r=generateText(n);if(!r)return;t.stopPropagation(),t.preventDefault();const i=t.currentTarget;i instanceof HTMLTextAreaElement&&insertText(i,r)}function paste_markdown_table_onDragover(t){const n=t.dataTransfer;n&&(n.dropEffect="copy")}function paste_markdown_table_onPaste(t){const{currentTarget:n}=t;if(shouldSkipFormatting(n))return;if(!t.clipboardData)return;const r=generateText(t.clipboardData);if(!r)return;t.stopPropagation(),t.preventDefault();const i=t.currentTarget;i instanceof HTMLTextAreaElement&&insertText(i,r)}function columnText(t){return(t.textContent||"").trim().replace(/\|/g,"\\|").replace(/\n/g," ")||" "}function tableMarkdown(t){const n=Array.from(t.querySelectorAll("tr")),r=n.shift();if(!r)return"";const i=function tableHeaders(t){return Array.from(t.querySelectorAll("td, th")).map(columnText)}(r),o=i.map((()=>"--"));return`\n${`${i.join(" | ")}\n${o.join(" | ")}\n`}${n.map((t=>Array.from(t.querySelectorAll("td")).map(columnText).join(" | "))).join("\n")}\n\n`}function generateText(t){if(-1===Array.from(t.types).indexOf("text/html"))return;const n=t.getData("text/html");if(!/");if(!r||!i)return;const o=n.substring(i+8);let a=(new DOMParser).parseFromString(n,"text/html").querySelector("table");if(a=!a||a.closest("[data-paste-markdown-skip]")?null:a,!a)return;const s=tableMarkdown(a);return s?[r,s,o].join("").replace(//,""):void 0}function paste_markdown_text_install(t){t.addEventListener("paste",paste_markdown_text_onPaste)}function paste_markdown_text_onPaste(t){const{currentTarget:n}=t;if(shouldSkipFormatting(n))return;const r=t.clipboardData;if(!r||!function hasMarkdown(t){return Array.from(t.types).indexOf("text/x-gfm")>=0}(r))return;const i=t.currentTarget;if(!(i instanceof HTMLTextAreaElement))return;const o=r.getData("text/x-gfm");o&&(t.stopPropagation(),t.preventDefault(),insertText(i,o))}function subscribe(t,n){return function installAround(t,n,r){t.addEventListener("keydown",setSkipFormattingFlag);for(const i of n)i(t,r);t.addEventListener("paste",unsetSkipFormattedFlag)}(t,[paste_markdown_table_install,paste_markdown_image_link_install,paste_markdown_link_install,paste_markdown_text_install,install],n),{unsubscribe:()=>{!function uninstall(t){t.removeEventListener("keydown",setSkipFormattingFlag),t.removeEventListener("paste",unsetSkipFormattedFlag)}(t),function paste_markdown_table_uninstall(t){t.removeEventListener("dragover",paste_markdown_table_onDragover),t.removeEventListener("drop",paste_markdown_table_onDrop),t.removeEventListener("paste",paste_markdown_table_onPaste)}(t),function paste_markdown_html_uninstall(t){t.removeEventListener("paste",onPaste)}(t),function paste_markdown_image_link_uninstall(t){t.removeEventListener("dragover",onDragover),t.removeEventListener("drop",onDrop),t.removeEventListener("paste",paste_markdown_image_link_onPaste)}(t),function paste_markdown_link_uninstall(t){t.removeEventListener("paste",paste_markdown_link_onPaste)}(t),function paste_markdown_text_uninstall(t){t.removeEventListener("paste",paste_markdown_text_onPaste)}(t)}}}},22833:(t,n,r)=>{"use strict";r.d(n,{wG:()=>BlockBlobClient});var i={};r.r(i),r.d(i,{AccessPolicy:()=>jt,AppendBlobAppendBlockExceptionHeaders:()=>Pi,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>Ti,AppendBlobAppendBlockFromUrlHeaders:()=>Ai,AppendBlobAppendBlockHeaders:()=>Ci,AppendBlobCreateExceptionHeaders:()=>Ei,AppendBlobCreateHeaders:()=>wi,AppendBlobSealExceptionHeaders:()=>zi,AppendBlobSealHeaders:()=>Ri,ArrowConfiguration:()=>dn,ArrowField:()=>pn,BlobAbortCopyFromURLExceptionHeaders:()=>Gr,BlobAbortCopyFromURLHeaders:()=>Wr,BlobAcquireLeaseExceptionHeaders:()=>kr,BlobAcquireLeaseHeaders:()=>Mr,BlobBreakLeaseExceptionHeaders:()=>Hr,BlobBreakLeaseHeaders:()=>Dr,BlobChangeLeaseExceptionHeaders:()=>Or,BlobChangeLeaseHeaders:()=>qr,BlobCopyFromURLExceptionHeaders:()=>Kr,BlobCopyFromURLHeaders:()=>$r,BlobCreateSnapshotExceptionHeaders:()=>Ur,BlobCreateSnapshotHeaders:()=>Fr,BlobDeleteExceptionHeaders:()=>fr,BlobDeleteHeaders:()=>gr,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Pr,BlobDeleteImmutabilityPolicyHeaders:()=>Cr,BlobDownloadExceptionHeaders:()=>pr,BlobDownloadHeaders:()=>dr,BlobFlatListSegment:()=>Kt,BlobGetAccountInfoExceptionHeaders:()=>Yr,BlobGetAccountInfoHeaders:()=>Jr,BlobGetPropertiesExceptionHeaders:()=>hr,BlobGetPropertiesHeaders:()=>ur,BlobGetTagsExceptionHeaders:()=>ni,BlobGetTagsHeaders:()=>ti,BlobHierarchyListSegment:()=>Jt,BlobItemInternal:()=>Wt,BlobName:()=>Gt,BlobPrefix:()=>Yt,BlobPropertiesInternal:()=>Xt,BlobQueryExceptionHeaders:()=>ei,BlobQueryHeaders:()=>Zr,BlobReleaseLeaseExceptionHeaders:()=>Ir,BlobReleaseLeaseHeaders:()=>Lr,BlobRenewLeaseExceptionHeaders:()=>Br,BlobRenewLeaseHeaders:()=>_r,BlobServiceProperties:()=>Ct,BlobServiceStatistics:()=>kt,BlobSetExpiryExceptionHeaders:()=>Nr,BlobSetExpiryHeaders:()=>xr,BlobSetHttpHeadersExceptionHeaders:()=>Sr,BlobSetHttpHeadersHeaders:()=>vr,BlobSetImmutabilityPolicyExceptionHeaders:()=>Er,BlobSetImmutabilityPolicyHeaders:()=>wr,BlobSetLegalHoldExceptionHeaders:()=>Tr,BlobSetLegalHoldHeaders:()=>Ar,BlobSetMetadataExceptionHeaders:()=>zr,BlobSetMetadataHeaders:()=>Rr,BlobSetTagsExceptionHeaders:()=>ii,BlobSetTagsHeaders:()=>ri,BlobSetTierExceptionHeaders:()=>Qr,BlobSetTierHeaders:()=>Xr,BlobStartCopyFromURLExceptionHeaders:()=>jr,BlobStartCopyFromURLHeaders:()=>Vr,BlobTag:()=>Ut,BlobTags:()=>Ft,BlobUndeleteExceptionHeaders:()=>br,BlobUndeleteHeaders:()=>yr,Block:()=>tn,BlockBlobCommitBlockListExceptionHeaders:()=>Hi,BlockBlobCommitBlockListHeaders:()=>Di,BlockBlobGetBlockListExceptionHeaders:()=>Ui,BlockBlobGetBlockListHeaders:()=>Fi,BlockBlobPutBlobFromUrlExceptionHeaders:()=>Ii,BlockBlobPutBlobFromUrlHeaders:()=>Li,BlockBlobStageBlockExceptionHeaders:()=>Bi,BlockBlobStageBlockFromURLExceptionHeaders:()=>Oi,BlockBlobStageBlockFromURLHeaders:()=>qi,BlockBlobStageBlockHeaders:()=>_i,BlockBlobUploadExceptionHeaders:()=>ki,BlockBlobUploadHeaders:()=>Mi,BlockList:()=>en,BlockLookupList:()=>Zt,ClearRange:()=>on,ContainerAcquireLeaseExceptionHeaders:()=>Qn,ContainerAcquireLeaseHeaders:()=>Xn,ContainerBreakLeaseExceptionHeaders:()=>nr,ContainerBreakLeaseHeaders:()=>tr,ContainerChangeLeaseExceptionHeaders:()=>ir,ContainerChangeLeaseHeaders:()=>rr,ContainerCreateExceptionHeaders:()=>zn,ContainerCreateHeaders:()=>Rn,ContainerDeleteExceptionHeaders:()=>In,ContainerDeleteHeaders:()=>Ln,ContainerFilterBlobsExceptionHeaders:()=>Gn,ContainerFilterBlobsHeaders:()=>Wn,ContainerGetAccessPolicyExceptionHeaders:()=>On,ContainerGetAccessPolicyHeaders:()=>qn,ContainerGetAccountInfoExceptionHeaders:()=>mr,ContainerGetAccountInfoHeaders:()=>cr,ContainerGetPropertiesExceptionHeaders:()=>kn,ContainerGetPropertiesHeaders:()=>Mn,ContainerItem:()=>_t,ContainerListBlobFlatSegmentExceptionHeaders:()=>ar,ContainerListBlobFlatSegmentHeaders:()=>or,ContainerListBlobHierarchySegmentExceptionHeaders:()=>lr,ContainerListBlobHierarchySegmentHeaders:()=>sr,ContainerProperties:()=>Bt,ContainerReleaseLeaseExceptionHeaders:()=>Yn,ContainerReleaseLeaseHeaders:()=>Jn,ContainerRenameExceptionHeaders:()=>jn,ContainerRenameHeaders:()=>Vn,ContainerRenewLeaseExceptionHeaders:()=>er,ContainerRenewLeaseHeaders:()=>Zn,ContainerRestoreExceptionHeaders:()=>Un,ContainerRestoreHeaders:()=>Fn,ContainerSetAccessPolicyExceptionHeaders:()=>Hn,ContainerSetAccessPolicyHeaders:()=>Dn,ContainerSetMetadataExceptionHeaders:()=>Bn,ContainerSetMetadataHeaders:()=>_n,ContainerSubmitBatchExceptionHeaders:()=>Kn,ContainerSubmitBatchHeaders:()=>$n,CorsRule:()=>Rt,DelimitedTextConfiguration:()=>cn,FilterBlobItem:()=>Ht,FilterBlobSegment:()=>Dt,GeoReplication:()=>Lt,JsonTextConfiguration:()=>mn,KeyInfo:()=>qt,ListBlobsFlatSegmentResponse:()=>$t,ListBlobsHierarchySegmentResponse:()=>Qt,ListContainersSegmentResponse:()=>It,Logging:()=>Pt,Metrics:()=>Tt,PageBlobClearPagesExceptionHeaders:()=>mi,PageBlobClearPagesHeaders:()=>ci,PageBlobCopyIncrementalExceptionHeaders:()=>Si,PageBlobCopyIncrementalHeaders:()=>vi,PageBlobCreateExceptionHeaders:()=>ai,PageBlobCreateHeaders:()=>oi,PageBlobGetPageRangesDiffExceptionHeaders:()=>fi,PageBlobGetPageRangesDiffHeaders:()=>gi,PageBlobGetPageRangesExceptionHeaders:()=>hi,PageBlobGetPageRangesHeaders:()=>ui,PageBlobResizeExceptionHeaders:()=>bi,PageBlobResizeHeaders:()=>yi,PageBlobUpdateSequenceNumberExceptionHeaders:()=>Ni,PageBlobUpdateSequenceNumberHeaders:()=>xi,PageBlobUploadPagesExceptionHeaders:()=>li,PageBlobUploadPagesFromURLExceptionHeaders:()=>pi,PageBlobUploadPagesFromURLHeaders:()=>di,PageBlobUploadPagesHeaders:()=>si,PageList:()=>nn,PageRange:()=>rn,QueryFormat:()=>ln,QueryRequest:()=>an,QuerySerialization:()=>sn,RetentionPolicy:()=>At,ServiceFilterBlobsExceptionHeaders:()=>Tn,ServiceFilterBlobsHeaders:()=>An,ServiceGetAccountInfoExceptionHeaders:()=>En,ServiceGetAccountInfoHeaders:()=>wn,ServiceGetPropertiesExceptionHeaders:()=>fn,ServiceGetPropertiesHeaders:()=>gn,ServiceGetStatisticsExceptionHeaders:()=>bn,ServiceGetStatisticsHeaders:()=>yn,ServiceGetUserDelegationKeyExceptionHeaders:()=>Sn,ServiceGetUserDelegationKeyHeaders:()=>vn,ServiceListContainersSegmentExceptionHeaders:()=>Nn,ServiceListContainersSegmentHeaders:()=>xn,ServiceSetPropertiesExceptionHeaders:()=>hn,ServiceSetPropertiesHeaders:()=>un,ServiceSubmitBatchExceptionHeaders:()=>Pn,ServiceSubmitBatchHeaders:()=>Cn,SignedIdentifier:()=>Vt,StaticWebsite:()=>zt,StorageError:()=>Mt,UserDelegationKey:()=>Ot});class AbortError_AbortError extends Error{constructor(t){super(t),this.name="AbortError"}}const o="undefined"!=typeof process&&process.env&&process.env.DEBUG||void 0;let a,s=[],l=[];const c=[];o&&enable(o);const m=Object.assign((t=>createDebugger(t)),{enable,enabled,disable:function disable(){const t=a||"";return enable(""),t},log:function log(...t){if(t.length>0){const n=String(t[0]);n.includes(":error")||n.includes(":warning")||n.includes(":info")||n.includes(":verbose")}}});function enable(t){a=t,s=[],l=[];const n=t.split(",").map((t=>t.trim()));for(const r of n)r.startsWith("-")?l.push(r.substring(1)):s.push(r);for(const r of c)r.enabled=enabled(r.namespace)}function enabled(t){if(t.endsWith("*"))return!0;for(const n of l)if(namespaceMatches(t,n))return!1;for(const n of s)if(namespaceMatches(t,n))return!0;return!1}function namespaceMatches(t,n){if(-1===n.indexOf("*"))return t===n;let r=n;if(-1!==n.indexOf("**")){const t=[];let i="";for(const r of n)"*"===r&&"*"===i||(i=r,t.push(r));r=t.join("")}let i=0,o=0;const a=r.length,s=t.length;let l=-1,c=-1;for(;i=0){if(o=l+1,i=c+1,i===s)return!1;for(;t[i]!==r[o];)if(i++,i===s)return!1;c=i,i++,o++;continue}return!1}o++,i++}else{if(l=o,o++,o===a)return!0;for(;t[i]!==r[o];)if(i++,i===s)return!1;c=i,i++,o++}const m=i===t.length,p=o===r.length,u=o===r.length-1&&"*"===r[o];return m&&(p||u)}function createDebugger(t){const n=Object.assign((function debug(...r){if(!n.enabled)return;r.length>0&&(r[0]=`${t} ${r[0]}`);n.log(...r)}),{enabled:enabled(t),destroy,log:m.log,namespace:t,extend});return c.push(n),n}function destroy(){const t=c.indexOf(this);return t>=0&&(c.splice(t,1),!0)}function extend(t){const n=createDebugger(`${this.namespace}:${t}`);return n.log=this.log,n}const p=m,u=["verbose","info","warning","error"],h={verbose:400,info:300,warning:200,error:100};function patchLogMethod(t,n){n.log=(...n)=>{t.log(...n)}}function isTypeSpecRuntimeLogLevel(t){return u.includes(t)}function createLoggerContext(t){const n=new Set,r="undefined"!=typeof process&&process.env&&process.env[t.logLevelEnvVarName]||void 0;let i;const o=p(t.namespace);function contextSetLogLevel(t){if(t&&!isTypeSpecRuntimeLogLevel(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${u.join(",")}`);i=t;const r=[];for(const i of n)shouldEnable(i)&&r.push(i.namespace);p.enable(r.join(","))}function shouldEnable(t){return Boolean(i&&h[t.level]<=h[i])}function createLogger(t,r){const i=Object.assign(t.extend(r),{level:r});if(patchLogMethod(t,i),shouldEnable(i)){const t=p.disable();p.enable(t+","+i.namespace)}return n.add(i),i}return o.log=(...t)=>{p.log(...t)},r&&isTypeSpecRuntimeLogLevel(r)&&contextSetLogLevel(r),{setLogLevel:contextSetLogLevel,getLogLevel:function contextGetLogLevel(){return i},createClientLogger:function contextCreateClientLogger(t){const n=o.extend(t);return patchLogMethod(o,n),{error:createLogger(n,"error"),warning:createLogger(n,"warning"),info:createLogger(n,"info"),verbose:createLogger(n,"verbose")}},logger:o}}const y=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});y.logger;function createClientLogger(t){return y.createClientLogger(t)}function normalizeName(t){return t.toLowerCase()}class HttpHeadersImpl{_headersMap;constructor(t){if(this._headersMap=new Map,t)for(const n of Object.keys(t))this.set(n,t[n])}set(t,n){this._headersMap.set(normalizeName(t),{name:t,value:String(n).trim()})}get(t){return this._headersMap.get(normalizeName(t))?.value}has(t){return this._headersMap.has(normalizeName(t))}delete(t){this._headersMap.delete(normalizeName(t))}toJSON(t={}){const n={};if(t.preserveCase)for(const r of this._headersMap.values())n[r.name]=r.value;else for(const[r,i]of this._headersMap)n[r]=i.value;return n}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return function*headerIterator(t){for(const n of t.values())yield[n.name,n.value]}(this._headersMap)}}function httpHeaders_createHttpHeaders(t){return new HttpHeadersImpl(t)}function generateUUID(){let t="";for(let n=0;n<32;n++){const r=Math.floor(16*Math.random());t+=12===n?"4":16===n?3&r|8:r.toString(16),7!==n&&11!==n&&15!==n&&19!==n||(t+="-")}return t}const x="function"==typeof globalThis?.crypto?.randomUUID?globalThis.crypto.randomUUID.bind(globalThis.crypto):generateUUID;function uuidUtils_randomUUID(){return x()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(t){this.url=t.url,this.body=t.body,this.headers=t.headers??httpHeaders_createHttpHeaders(),this.method=t.method??"GET",this.timeout=t.timeout??0,this.multipartBody=t.multipartBody,this.formData=t.formData,this.disableKeepAlive=t.disableKeepAlive??!1,this.proxySettings=t.proxySettings,this.streamResponseStatusCodes=t.streamResponseStatusCodes,this.withCredentials=t.withCredentials??!1,this.abortSignal=t.abortSignal,this.onUploadProgress=t.onUploadProgress,this.onDownloadProgress=t.onDownloadProgress,this.requestId=t.requestId||uuidUtils_randomUUID(),this.allowInsecureConnection=t.allowInsecureConnection??!1,this.enableBrowserStreams=t.enableBrowserStreams??!1,this.requestOverrides=t.requestOverrides,this.authSchemes=t.authSchemes}}const v=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(t){this._policies=t?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(t,n={}){if(n.phase&&n.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(n.phase&&!v.has(n.phase))throw new Error(`Invalid phase name: ${n.phase}`);if(n.afterPhase&&!v.has(n.afterPhase))throw new Error(`Invalid afterPhase name: ${n.afterPhase}`);this._policies.push({policy:t,options:n}),this._orderedPolicies=void 0}removePolicy(t){const n=[];return this._policies=this._policies.filter((r=>!(t.name&&r.policy.name===t.name||t.phase&&r.options.phase===t.phase)||(n.push(r.policy),!1))),this._orderedPolicies=void 0,n}sendRequest(t,n){return this.getOrderedPolicies().reduceRight(((t,n)=>r=>n.sendRequest(r,t)),(n=>t.sendRequest(n)))(n)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const t=[],n=new Map;function createPhase(t){return{name:t,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}const r=createPhase("Serialize"),i=createPhase("None"),o=createPhase("Deserialize"),a=createPhase("Retry"),s=createPhase("Sign"),l=[r,i,o,a,s];function getPhase(t){return"Retry"===t?a:"Serialize"===t?r:"Deserialize"===t?o:"Sign"===t?s:i}for(const m of this._policies){const t=m.policy,r=m.options,i=t.name;if(n.has(i))throw new Error("Duplicate policy names not allowed in pipeline");const o={policy:t,dependsOn:new Set,dependants:new Set};r.afterPhase&&(o.afterPhase=getPhase(r.afterPhase),o.afterPhase.hasAfterPolicies=!0),n.set(i,o);getPhase(r.phase).policies.add(o)}for(const m of this._policies){const{policy:t,options:r}=m,i=t.name,o=n.get(i);if(!o)throw new Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(const a of r.afterPolicies){const t=n.get(a);t&&(o.dependsOn.add(t),t.dependants.add(o))}if(r.beforePolicies)for(const a of r.beforePolicies){const t=n.get(a);t&&(t.dependsOn.add(o),o.dependants.add(t))}}function walkPhase(r){r.hasRun=!0;for(const i of r.policies)if((!i.afterPhase||i.afterPhase.hasRun&&!i.afterPhase.policies.size)&&0===i.dependsOn.size){t.push(i.policy);for(const t of i.dependants)t.dependsOn.delete(i);n.delete(i.policy.name),r.policies.delete(i)}}function walkPhases(){for(const t of l){if(walkPhase(t),t.policies.size>0&&t!==i)return void(i.hasRun||walkPhase(i));t.hasAfterPolicies&&walkPhase(i)}}let c=0;for(;n.size>0;){c++;const n=t.length;if(walkPhases(),t.length<=n&&c>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return t}}function isObject(t){return!("object"!=typeof t||null===t||Array.isArray(t)||t instanceof RegExp||t instanceof Date)}function isError(t){if(isObject(t)){const n="string"==typeof t.name,r="string"==typeof t.message;return n&&r}return!1}const w=Symbol(),E="REDACTED",C=["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"],A=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:t=[],additionalAllowedQueryParameters:n=[]}={}){t=C.concat(t),n=A.concat(n),this.allowedHeaderNames=new Set(t.map((t=>t.toLowerCase()))),this.allowedQueryParameters=new Set(n.map((t=>t.toLowerCase())))}sanitize(t){const n=new Set;return JSON.stringify(t,((t,r)=>{if(r instanceof Error)return{...r,name:r.name,message:r.message};if("headers"===t)return this.sanitizeHeaders(r);if("url"===t)return this.sanitizeUrl(r);if("query"===t)return this.sanitizeQuery(r);if("body"!==t&&"response"!==t&&"operationSpec"!==t){if(Array.isArray(r)||isObject(r)){if(n.has(r))return"[Circular]";n.add(r)}return r}}),2)}sanitizeUrl(t){if("string"!=typeof t||null===t||""===t)return t;const n=new URL(t);if(!n.search)return t;for(const[r]of n.searchParams)this.allowedQueryParameters.has(r.toLowerCase())||n.searchParams.set(r,E);return n.toString()}sanitizeHeaders(t){const n={};for(const r of Object.keys(t))this.allowedHeaderNames.has(r.toLowerCase())?n[r]=t[r]:n[r]=E;return n}sanitizeQuery(t){if("object"!=typeof t||null===t)return t;const n={};for(const r of Object.keys(t))this.allowedQueryParameters.has(r.toLowerCase())?n[r]=t[r]:n[r]=E;return n}}const z=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name="RestError",this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});const r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,w,{value:()=>`RestError: ${this.message} \n ${z.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,restError_RestError.prototype)}}function bytesEncoding_common_stringToUint8Array(t,n){switch(n){case"utf-8":return function utf8StringToUint8Array(t){return(new TextEncoder).encode(t)}(t);case"base64":return base64ToUint8Array(t);case"base64url":return function base64UrlToUint8Array(t){const n=t.replace(/-/g,"+").replace(/_/g,"/");return base64ToUint8Array(n)}(t);case"hex":return function hexStringToUint8Array(t){const n=new Uint8Array(t.length/2);for(let r=0;rt.charCodeAt(0))))}const k=new Set("0123456789abcdefABCDEF");function isNodeReadableStream(t){return Boolean(t&&"function"==typeof t.pipe)}function isWebReadableStream(t){return Boolean(t&&"function"==typeof t.getReader&&"function"==typeof t.tee)}function arrayBufferViewToArrayBuffer(t){if(t.buffer instanceof ArrayBuffer&&0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;const n=new ArrayBuffer(t.byteLength),r=new Uint8Array(n),i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return r.set(i),r.buffer}class FetchHttpClient{async sendRequest(t){if("https:"!==new URL(t.url).protocol&&!t.allowInsecureConnection)throw new Error(`Cannot connect to ${t.url} while allowInsecureConnection is false.`);if(t.proxySettings)throw new Error("HTTP proxy is not supported in browser environment");try{return await async function makeRequest(t){const{abortController:n,abortControllerCleanup:r}=function setupAbortSignal(t){const n=new AbortController;let r,i;if(t.abortSignal){if(t.abortSignal.aborted)throw new AbortError_AbortError("The operation was aborted. Request has already been canceled.");i=t=>{"abort"===t.type&&n.abort()},t.abortSignal.addEventListener("abort",i),r=()=>{i&&t.abortSignal?.removeEventListener("abort",i)}}t.timeout>0&&setTimeout((()=>{n.abort()}),t.timeout);return{abortController:n,abortControllerCleanup:r}}(t);try{const i=function buildFetchHeaders(t){const n=new Headers;for(const[r,i]of t)n.append(r,i);return n}(t.headers),{streaming:o,body:a}=function buildRequestBody(t){const n="function"==typeof t.body?t.body():t.body;if(isNodeReadableStream(n))throw new Error("Node streams are not supported in browser environment.");return isWebReadableStream(n)?{streaming:!0,body:buildBodyStream(n,{onProgress:t.onUploadProgress})}:"object"==typeof n&&n&&"buffer"in n?{streaming:!1,body:arrayBufferViewToArrayBuffer(n)}:void 0===n?{streaming:!1}:{streaming:!1,body:n}}(t),s={body:a,method:t.method,headers:i,signal:n.signal,..."credentials"in Request.prototype?{credentials:t.withCredentials?"include":"same-origin"}:{},..."cache"in Request.prototype?{cache:"no-store"}:{}};o&&(s.duplex="half");const l=await fetch(t.url,{...s,...t.requestOverrides});return function fetchHttpClient_isBlob(t){return("function"==typeof Blob||"object"==typeof Blob)&&t instanceof Blob}(t.body)&&t.onUploadProgress&&t.onUploadProgress({loadedBytes:t.body.size}),async function buildPipelineResponse(t,n,r){const i=function buildPipelineHeaders(t){const n=httpHeaders_createHttpHeaders();for(const[r,i]of t.headers)n.set(r,i);return n}(t),o={request:n,headers:i,status:t.status},a=isWebReadableStream(t.body)?buildBodyStream(t.body,{onProgress:n.onDownloadProgress,onEnd:r}):t.body;if(n.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||n.streamResponseStatusCodes?.has(o.status))if(n.enableBrowserStreams)o.browserStreamBody=a??void 0;else{const t=new Response(a);o.blobBody=t.blob(),r?.()}else{const t=new Response(a);o.bodyAsText=await t.text(),r?.()}return o}(l,t,r)}catch(i){throw r?.(),i}}(t)}catch(n){throw function getError(t,n){return t&&"AbortError"===t?.name?t:new restError_RestError(`Error sending request: ${t.message}`,{code:t?.code??restError_RestError.REQUEST_SEND_ERROR,request:n})}(n,t)}}}function buildBodyStream(t,n={}){let r=0;const{onProgress:i,onEnd:o}=n;if(function isTransformStreamSupported(t){return void 0!==t.pipeThrough&&void 0!==self.TransformStream}(t))return t.pipeThrough(new TransformStream({transform(t,n){null!==t?(n.enqueue(t),r+=t.length,i&&i({loadedBytes:r})):n.terminate()},flush(){o?.()}}));{const n=t.getReader();return new ReadableStream({async pull(t){const{done:a,value:s}=await n.read();if(a||!s)return o?.(),t.close(),void n.releaseLock();r+=s?.length??0,t.enqueue(s),i&&i({loadedBytes:r})},cancel:t=>(o?.(),n.cancel(t))})}}function defaultHttpClient_createDefaultHttpClient(){return function createFetchHttpClient(){return new FetchHttpClient}()}const I=createClientLogger("ts-http-runtime");function calculateRetryDelay(t,n){const r=n.retryDelayInMs*Math.pow(2,t),i=Math.min(n.maxRetryDelayInMs,r);return{retryAfterInMs:i/2+function random_getRandomIntegerInclusive(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t}(0,i/2)}}function helpers_delay(t,n,r){return new Promise(((i,o)=>{let a,s;const rejectOnAbort=()=>o(new AbortError_AbortError(r?.abortErrorMsg?r?.abortErrorMsg:"The operation was aborted.")),removeListeners=()=>{r?.abortSignal&&s&&r.abortSignal.removeEventListener("abort",s)};if(s=()=>(a&&clearTimeout(a),removeListeners(),rejectOnAbort()),r?.abortSignal&&r.abortSignal.aborted)return rejectOnAbort();a=setTimeout((()=>{removeListeners(),i(n)}),t),r?.abortSignal&&r.abortSignal.addEventListener("abort",s)}))}function parseHeaderValueAsNumber(t,n){const r=t.headers.get(n);if(!r)return;const i=Number(r);return Number.isNaN(i)?void 0:i}const _="Retry-After",B=["retry-after-ms","x-ms-retry-after-ms",_];function getRetryAfterInMs(t){if(t&&[429,503].includes(t.status))try{for(const i of B){const n=parseHeaderValueAsNumber(t,i);if(0===n||n){return n*(i===_?1e3:1)}}const n=t.headers.get(_);if(!n)return;const r=Date.parse(n)-Date.now();return Number.isFinite(r)?Math.max(0,r):void 0}catch{return}}function exponentialRetryStrategy_exponentialRetryStrategy(t={}){const n=t.retryDelayInMs??1e3,r=t.maxRetryDelayInMs??64e3;return{name:"exponentialRetryStrategy",retry({retryCount:i,response:o,responseError:a}){const s=function isSystemError(t){if(!t)return!1;return"ETIMEDOUT"===t.code||"ESOCKETTIMEDOUT"===t.code||"ECONNREFUSED"===t.code||"ECONNRESET"===t.code||"ENOENT"===t.code||"ENOTFOUND"===t.code}(a),l=s&&t.ignoreSystemErrors,c=function isExponentialRetryResponse(t){return Boolean(t&&void 0!==t.status&&(t.status>=500||408===t.status)&&501!==t.status&&505!==t.status)}(o),m=c&&t.ignoreHttpStatusCodes,p=o&&(function isThrottlingRetryResponse(t){return Number.isFinite(getRetryAfterInMs(t))}(o)||!c);return p||m||l?{skipStrategy:!0}:!a||s||c?calculateRetryDelay(i,{retryDelayInMs:n,maxRetryDelayInMs:r}):{errorToThrow:a}}}}const q=createClientLogger("ts-http-runtime retryPolicy");function retryPolicy_retryPolicy(t,n={maxRetries:3}){const r=n.logger||q;return{name:"retryPolicy",async sendRequest(i,o){let a,s,l=-1;e:for(;;){l+=1,a=void 0,s=void 0;try{r.info(`Retry ${l}: Attempting to send request`,i.requestId),a=await o(i),r.info(`Retry ${l}: Received a response from request`,i.requestId)}catch(c){if(r.error(`Retry ${l}: Received an error from request`,i.requestId),s=c,!c||"RestError"!==s.name)throw c;a=s.response}if(i.abortSignal?.aborted){r.error(`Retry ${l}: Request aborted.`);throw new AbortError_AbortError}if(l>=(n.maxRetries??3)){if(r.info(`Retry ${l}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),s)throw s;if(a)return a;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${l}: Processing ${t.length} retry strategies.`);t:for(const n of t){const t=n.logger||r;t.info(`Retry ${l}: Processing retry strategy ${n.name}.`);const o=n.retry({retryCount:l,response:a,responseError:s});if(o.skipStrategy){t.info(`Retry ${l}: Skipped.`);continue t}const{errorToThrow:c,retryAfterInMs:m,redirectTo:p}=o;if(c)throw t.error(`Retry ${l}: Retry strategy ${n.name} throws error:`,c),c;if(m||0===m){t.info(`Retry ${l}: Retry strategy ${n.name} retries after ${m}`),await helpers_delay(m,void 0,{abortSignal:i.abortSignal});continue e}if(p){t.info(`Retry ${l}: Retry strategy ${n.name} redirects to ${p}`),i.url=p;continue e}}if(s)throw r.info("None of the retry strategies could work with the received error. Throwing it."),s;if(a)return r.info("None of the retry strategies could work with the received response. Returning it."),a}}}}"undefined"!=typeof window&&window.document,"object"==typeof self&&"function"==typeof self?.importScripts&&("DedicatedWorkerGlobalScope"===self.constructor?.name||"ServiceWorkerGlobalScope"===self.constructor?.name||self.constructor),"undefined"!=typeof Deno&&void 0!==Deno.version&&Deno.version.deno,"undefined"!=typeof Bun&&Bun.version;const O=void 0!==globalThis.process&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);"undefined"!=typeof navigator&&navigator;function formDataPolicy_formDataPolicy(){return{name:"formDataPolicy",async sendRequest(t,n){if(O&&"undefined"!=typeof FormData&&t.body instanceof FormData&&(t.formData=function formDataToFormDataMap(t){const n={};for(const[r,i]of t.entries())n[r]??=[],n[r].push(i);return n}(t.body),t.body=void 0),t.formData){const n=t.headers.get("Content-Type");n&&-1!==n.indexOf("application/x-www-form-urlencoded")?t.body=function wwwFormUrlEncode(t){const n=new URLSearchParams;for(const[r,i]of Object.entries(t))if(Array.isArray(i))for(const t of i)n.append(r,t.toString());else n.append(r,i.toString());return n.toString()}(t.formData):await async function prepareFormData(t,n){const r=n.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;n.headers.set("Content-Type",r??"multipart/form-data");const i=[];for(const[o,a]of Object.entries(t))for(const t of Array.isArray(a)?a:[a])if("string"==typeof t)i.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${o}"`}),body:bytesEncoding_common_stringToUint8Array(t,"utf-8")});else{if(null==t||"object"!=typeof t)throw new Error(`Unexpected value for key ${o}: ${t}. Value should be serialized to string first.`);{const n=t.name||"blob",r=httpHeaders_createHttpHeaders();r.set("Content-Disposition",`form-data; name="${o}"; filename="${n}"`),r.set("Content-Type",t.type||"application/octet-stream"),i.push({headers:r,body:t})}}n.multipartBody={parts:i}}(t.formData,t),t.formData=void 0}return n(t)}}}async function toBlobPart(t){if(t instanceof Blob||t instanceof Uint8Array)return t;if(isWebReadableStream(t))return function drain(t){return new Response(t).blob()}(t);throw new Error("Unsupported source type. Only Blob, Uint8Array, and ReadableStream are supported in browser.")}function arrayToArrayBuffer(t){return"resize"in t.buffer?t:t.map((t=>t))}function encodeHeaders(t){let n="";for(const[r,i]of t)n+=`${r}: ${i}\r\n`;return n}function getLength(t){return t instanceof Uint8Array?t.byteLength:function isBlob(t){return"function"==typeof t.stream}(t)?-1===t.size?void 0:t.size:void 0}async function multipartPolicy_buildRequestBody(t,n,r){const i=[bytesEncoding_common_stringToUint8Array(`--${r}`,"utf-8"),...n.flatMap((t=>[bytesEncoding_common_stringToUint8Array("\r\n","utf-8"),bytesEncoding_common_stringToUint8Array(encodeHeaders(t.headers),"utf-8"),bytesEncoding_common_stringToUint8Array("\r\n","utf-8"),t.body,bytesEncoding_common_stringToUint8Array(`\r\n--${r}`,"utf-8")])),bytesEncoding_common_stringToUint8Array("--\r\n\r\n","utf-8")],o=function getTotalLength(t){let n=0;for(const r of t){const t=getLength(r);if(void 0===t)return;n+=t}return n}(i);o&&t.headers.set("Content-Length",o),t.body=await async function concat(t){const n=[];for(const r of t){const t=await toBlobPart("function"==typeof r?r():r);t instanceof Blob?n.push(t):n.push(new Blob([arrayToArrayBuffer(t)]))}return new Blob(n)}(i)}const D="multipartPolicy",H=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function multipartPolicy_multipartPolicy(){return{name:D,async sendRequest(t,n){if(!t.multipartBody)return n(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary;const i=t.headers.get("Content-Type")??"multipart/mixed",o=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);const[,a,s]=o;if(s&&r&&s!==r)throw new Error(`Multipart boundary was specified as ${s} in the header, but got ${r} in the request body`);return r??=s,r?function assertValidBoundary(t){if(t.length>70)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some((t=>!H.has(t))))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}(r):r=function generateBoundary(){return`----AzSDKFormBoundary${uuidUtils_randomUUID()}`}(),t.headers.set("Content-Type",`${a}; boundary=${r}`),await multipartPolicy_buildRequestBody(t,t.multipartBody.parts,r),t.multipartBody=void 0,n(t)}}}function browser_pipeline_createEmptyPipeline(){return function pipeline_createEmptyPipeline(){return HttpPipeline.create()}()}const F=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});F.logger;function browser_createClientLogger(t){return F.createClientLogger(t)}const j=browser_createClientLogger("core-rest-pipeline");const $="proxyPolicy is not supported in browser environment";const G="redirectPolicy",ee=["GET","HEAD"];function redirectPolicy_redirectPolicy(t={}){const{maxRetries:n=20}=t;return{name:G,async sendRequest(t,r){const i=await r(t);return handleRedirect(r,i,n)}}}async function handleRedirect(t,n,r,i=0){const{request:o,status:a,headers:s}=n,l=s.get("location");if(l&&(300===a||301===a&&ee.includes(o.method)||302===a&&ee.includes(o.method)||303===a&&"POST"===o.method||307===a)&&it.brand===r));if(n)return n}}(n.userAgentData.brands);o&&t.set(o.brand,`${o.version} (${r})`)}else if(n?.platform){r=n.platform;const i=function userAgentPlatform_getBrowserInfo(t){const n=[{name:"Firefox",regex:/Firefox\/([\d.]+)/},{name:"Safari",regex:/Version\/([\d.]+).*Safari/}];for(const r of n){const n=t.match(r.regex);if(n)return{brand:r.name,version:n[1]}}}(n.userAgent);i&&t.set(i.brand,`${i.version} (${r})`)}else"string"==typeof globalThis.EdgeRuntime&&t.set("EdgeRuntime",`${globalThis.EdgeRuntime} (${r})`)}(n);const r=function userAgent_getUserAgentString(t){const n=[];for(const[r,i]of t){const t=i?`${r}/${i}`:r;n.push(t)}return n.join(" ")}(n);return t?`${t} ${r}`:r}const re="x-ms-useragent";class browser_AbortError_AbortError extends Error{constructor(t){super(t),this.name="AbortError"}}function delay_delay(t,n){let r;const{abortSignal:i,abortErrorMsg:o}=n??{};return function createAbortablePromise_createAbortablePromise(t,n){const{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:o}=n??{};return new Promise(((n,a)=>{function rejectOnAbort(){a(new browser_AbortError_AbortError(o??"The operation was aborted."))}function removeListeners(){i?.removeEventListener("abort",onAbort)}function onAbort(){r?.(),removeListeners(),rejectOnAbort()}if(i?.aborted)return rejectOnAbort();try{t((t=>{removeListeners(),n(t)}),(t=>{removeListeners(),a(t)}))}catch(s){a(s)}i?.addEventListener("abort",onAbort)}))}((n=>{r=setTimeout(n,t)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:o??"The delay was aborted."})}function error_getErrorMessage(t){if(isError(t))return t.message;{let r;try{r="object"==typeof t&&t?JSON.stringify(t):String(t)}catch(n){r="[unable to stringify input]"}return`Unknown error ${r}`}}function browser_isError(t){return isError(t)}const ie=O;const oe=Symbol("rawContent");function hasRawContent(t){return"function"==typeof t[oe]}const ae=D;function policies_decompressResponsePolicy_decompressResponsePolicy(){return function decompressResponsePolicy_decompressResponsePolicy(){throw new Error("decompressResponsePolicy is not supported in browser environment")}()}function policies_defaultRetryPolicy_defaultRetryPolicy(t={}){return function defaultRetryPolicy_defaultRetryPolicy(t={}){return{name:"defaultRetryPolicy",sendRequest:retryPolicy_retryPolicy([{name:"throttlingRetryStrategy",retry({response:t}){const n=getRetryAfterInMs(t);return Number.isFinite(n)?{retryAfterInMs:n}:{skipStrategy:!0}}},exponentialRetryStrategy_exponentialRetryStrategy(t)],{maxRetries:t.maxRetries??3}).sendRequest}}(t)}function proxyPolicy_getDefaultProxySettings(t){return function getDefaultProxySettings(){throw new Error($)}()}function proxyPolicy_proxyPolicy(t,n){return function proxyPolicy_common_proxyPolicy(){throw new Error($)}()}const se={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(t={}){let n=new TracingContextImpl(t.parentContext);return t.span&&(n=n.setValue(se.span,t.span)),t.namespace&&(n=n.setValue(se.namespace,t.namespace)),n}class TracingContextImpl{_contextMap;constructor(t){this._contextMap=t instanceof TracingContextImpl?new Map(t._contextMap):new Map}setValue(t,n){const r=new TracingContextImpl(this);return r._contextMap.set(t,n),r}getValue(t){return this._contextMap.get(t)}deleteValue(t){const n=new TracingContextImpl(this);return n._contextMap.delete(t),n}}const le={instrumenterImplementation:void 0};function getInstrumenter(){return le.instrumenterImplementation||(le.instrumenterImplementation=function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,n)=>({span:{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}},tracingContext:createTracingContext({parentContext:n.tracingContext})}),withContext:(t,n,...r)=>n(...r)}}()),le.instrumenterImplementation}function createTracingClient(t){const{namespace:n,packageName:r,packageVersion:i}=t;function startSpan(t,o,a){const s=getInstrumenter().startSpan(t,{...a,packageName:r,packageVersion:i,tracingContext:o?.tracingOptions?.tracingContext});let l=s.tracingContext;const c=s.span;l.getValue(se.namespace)||(l=l.setValue(se.namespace,n)),c.setAttribute("az.namespace",l.getValue(se.namespace));return{span:c,updatedOptions:Object.assign({},o,{tracingOptions:{...o?.tracingOptions,tracingContext:l}})}}function withContext(t,n,...r){return getInstrumenter().withContext(t,n,...r)}return{startSpan,withSpan:async function withSpan(t,n,r,i){const{span:o,updatedOptions:a}=startSpan(t,n,i);try{const t=await withContext(a.tracingOptions.tracingContext,(()=>Promise.resolve(r(a,o))));return o.setStatus({status:"success"}),t}catch(s){throw o.setStatus({status:"error",error:s}),s}finally{o.end()}},withContext,parseTraceparentHeader:function parseTraceparentHeader(t){return getInstrumenter().parseTraceparentHeader(t)},createRequestHeaders:function createRequestHeaders(t){return getInstrumenter().createRequestHeaders(t)}}}const ce=restError_RestError;function browser_restError_isRestError(t){return function restError_isRestError(t){return t instanceof restError_RestError||isError(t)&&"RestError"===t.name}(t)}function tracingPolicy(t={}){const n=util_userAgent_getUserAgentValue(t.userAgentPrefix),r=new Sanitizer({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),i=function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:ne})}catch(t){return void j.warning(`Error when creating the TracingClient: ${error_getErrorMessage(t)}`)}}();return{name:"tracingPolicy",async sendRequest(t,o){if(!i)return o(t);const a=await n,s={"http.url":r.sanitizeUrl(t.url),"http.method":t.method,"http.user_agent":a,requestId:t.requestId};a&&(s["http.user_agent"]=a);const{span:l,tracingContext:c}=function tryCreateSpan(t,n,r){try{const{span:i,updatedOptions:o}=t.startSpan(`HTTP ${n.method}`,{tracingOptions:n.tracingOptions},{spanKind:"client",spanAttributes:r});if(!i.isRecording())return void i.end();const a=t.createRequestHeaders(o.tracingOptions.tracingContext);for(const[t,r]of Object.entries(a))n.headers.set(t,r);return{span:i,tracingContext:o.tracingOptions.tracingContext}}catch(i){return void j.warning(`Skipping creating a tracing span due to an error: ${error_getErrorMessage(i)}`)}}(i,t,s)??{};if(!l||!c)return o(t);try{const n=await i.withContext(c,o,t);return function tryProcessResponse(t,n){try{t.setAttribute("http.status_code",n.status);const r=n.headers.get("x-ms-request-id");r&&t.setAttribute("serviceRequestId",r),n.status>=400&&t.setStatus({status:"error"}),t.end()}catch(r){j.warning(`Skipping tracing span processing due to an error: ${error_getErrorMessage(r)}`)}}(l,n),n}catch(m){throw function tryProcessError(t,n){try{t.setStatus({status:"error",error:browser_isError(n)?n:void 0}),browser_restError_isRestError(n)&&n.statusCode&&t.setAttribute("http.status_code",n.statusCode),t.end()}catch(r){j.warning(`Skipping tracing span processing due to an error: ${error_getErrorMessage(r)}`)}}(l,m),m}}}}function wrapAbortSignalLike(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};const n=new AbortController;let r=!0;function cleanup(){r&&(t.removeEventListener("abort",listener),r=!1)}function listener(){n.abort(t.reason),cleanup()}return t.addEventListener("abort",listener),{abortSignal:n.signal,cleanup}}function browser_createPipelineFromOptions_createPipelineFromOptions(t){const n=browser_pipeline_createEmptyPipeline();return ie&&(t.agent&&n.addPolicy(function policies_agentPolicy_agentPolicy(t){return function agentPolicy_agentPolicy(t){return{name:"agentPolicy",sendRequest:async(n,r)=>(n.agent||(n.agent=t),r(n))}}(t)}(t.agent)),t.tlsOptions&&n.addPolicy(function policies_tlsPolicy_tlsPolicy(t){return function tlsPolicy_tlsPolicy(t){return{name:"tlsPolicy",sendRequest:async(n,r)=>(n.tlsSettings||(n.tlsSettings=t),r(n))}}(t)}(t.tlsOptions)),n.addPolicy(proxyPolicy_proxyPolicy(t.proxyOptions)),n.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())),n.addPolicy(function wrapAbortSignalLikePolicy(){return{name:"wrapAbortSignalLikePolicy",sendRequest:async(t,n)=>{if(!t.abortSignal)return n(t);const{abortSignal:r,cleanup:i}=wrapAbortSignalLike(t.abortSignal);t.abortSignal=r;try{return await n(t)}finally{i?.()}}}}()),n.addPolicy(function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}(),{beforePolicies:[ae]}),n.addPolicy(function policies_userAgentPolicy_userAgentPolicy(t={}){const n=util_userAgent_getUserAgentValue(t.userAgentPrefix);return{name:"userAgentPolicy",sendRequest:async(t,r)=>(t.headers.has(re)||t.headers.set(re,await n),r(t))}}(t.userAgentOptions)),n.addPolicy(function setClientRequestIdPolicy(t="x-ms-client-request-id"){return{name:"setClientRequestIdPolicy",sendRequest:async(n,r)=>(n.headers.has(t)||n.headers.set(t,n.requestId),r(n))}}(t.telemetryOptions?.clientRequestIdHeaderName)),n.addPolicy(function policies_multipartPolicy_multipartPolicy(){const t=multipartPolicy_multipartPolicy();return{name:ae,sendRequest:async(n,r)=>{if(n.multipartBody)for(const t of n.multipartBody.parts)hasRawContent(t.body)&&(t.body=hasRawContent(i=t.body)?i[oe]():i);var i;return t.sendRequest(n,r)}}}(),{afterPhase:"Deserialize"}),n.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(t.retryOptions),{phase:"Retry"}),n.addPolicy(tracingPolicy({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),ie&&n.addPolicy(function policies_redirectPolicy_redirectPolicy(t={}){return redirectPolicy_redirectPolicy(t)}(t.redirectOptions),{afterPhase:"Retry"}),n.addPolicy(policies_logPolicy_logPolicy(t.loggingOptions),{afterPhase:"Sign"}),n}function browser_defaultHttpClient_createDefaultHttpClient(){const t=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(n){const{abortSignal:r,cleanup:i}=n.abortSignal?wrapAbortSignalLike(n.abortSignal):{};try{return n.abortSignal=r,await t.sendRequest(n)}finally{i?.()}}}}function browser_httpHeaders_createHttpHeaders(t){return httpHeaders_createHttpHeaders(t)}function browser_pipelineRequest_createPipelineRequest(t){return function pipelineRequest_createPipelineRequest(t){return new PipelineRequestImpl(t)}(t)}browser_createClientLogger("core-rest-pipeline retryPolicy");const me={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};function tokenCycler_createTokenCycler(t,n){let r,i=null,o=null;const a={...me,...n},s={get isRefreshing(){return null!==i},get shouldRefresh(){return!s.isRefreshing&&(!!(o?.refreshAfterTimestamp&&o.refreshAfterTimestampt.getToken(n,l)),a.retryIntervalInMs,o?.expiresOnTimestamp??Date.now()).then((t=>(i=null,o=t,r=l.tenantId,o))).catch((t=>{throw i=null,o=null,r=void 0,t}))}return i}return async(t,n)=>{const i=Boolean(n.claims),a=r!==n.tenantId;i&&(o=null);return a||i||s.mustRefresh?refresh(t,n):(s.shouldRefresh&&refresh(t,n),o)}}async function trySendRequest(t,n){try{return[await n(t),void 0]}catch(r){if(browser_restError_isRestError(r)&&r.response)return[r.response,r];throw r}}async function defaultAuthorizeRequest(t){const{scopes:n,getAccessToken:r,request:i}=t,o={abortSignal:i.abortSignal,tracingOptions:i.tracingOptions,enableCae:!0},a=await r(n,o);a&&t.request.headers.set("Authorization",`Bearer ${a.token}`)}function isChallengeResponse(t){return 401===t.status&&t.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(t,n){const{scopes:r}=t,i=await t.getAccessToken(r,{enableCae:!0,claims:n});return!!i&&(t.request.headers.set("Authorization",`${i.tokenType??"Bearer"} ${i.token}`),!0)}function bearerTokenAuthenticationPolicy(t){const{credential:n,scopes:r,challengeCallbacks:i}=t,o=t.logger||j,a={authorizeRequest:i?.authorizeRequest?.bind(i)??defaultAuthorizeRequest,authorizeRequestOnChallenge:i?.authorizeRequestOnChallenge?.bind(i)},s=n?tokenCycler_createTokenCycler(n):()=>Promise.resolve(null);return{name:"bearerTokenAuthenticationPolicy",async sendRequest(t,n){if(!t.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");let i,l,c;if(await a.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:t,getAccessToken:s,logger:o}),[i,l]=await trySendRequest(t,n),isChallengeResponse(i)){let p=getCaeChallengeClaims(i.headers.get("WWW-Authenticate"));if(p){let a;try{a=atob(p)}catch(m){return o.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${p}`),i}c=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:i,request:t,getAccessToken:s,logger:o},a),c&&([i,l]=await trySendRequest(t,n))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:t,response:i,getAccessToken:s,logger:o}),c&&([i,l]=await trySendRequest(t,n)),isChallengeResponse(i)&&(p=getCaeChallengeClaims(i.headers.get("WWW-Authenticate")),p))){let a;try{a=atob(p)}catch(m){return o.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${p}`),i}c=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(r)?r:[r],response:i,request:t,getAccessToken:s,logger:o},a),c&&([i,l]=await trySendRequest(t,n))}}if(l)throw l;return i}}}function getCaeChallengeClaims(t){if(!t)return;const n=function parseChallenges(t){const n=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,i=[];let o;for(;null!==(o=n.exec(t));){const t=o[1],n=o[2],a={};let s;for(;null!==(s=r.exec(n));)a[s[1]]=s[2];i.push({scheme:t,params:a})}return i}(t);return n.find((t=>"Bearer"===t.scheme&&t.params.claims&&"insufficient_claims"===t.params.error))?.params.claims}function isTokenCredential(t){const n=t;return n&&"function"==typeof n.getToken&&(void 0===n.signRequest||n.getToken.length>0)}function browser_delay_delay(t,n){let r;const{abortSignal:i,abortErrorMsg:o}=null!=n?n:{};return function browser_createAbortablePromise_createAbortablePromise(t,n){const{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:o}=null!=n?n:{};return new Promise(((n,a)=>{function rejectOnAbort(){a(new browser_AbortError_AbortError(null!=o?o:"The operation was aborted."))}function removeListeners(){null==i||i.removeEventListener("abort",onAbort)}function onAbort(){null==r||r(),removeListeners(),rejectOnAbort()}if(null==i?void 0:i.aborted)return rejectOnAbort();try{t((t=>{removeListeners(),n(t)}),(t=>{removeListeners(),a(t)}))}catch(s){a(s)}null==i||i.addEventListener("abort",onAbort)}))}((n=>{r=setTimeout(n,t)}),{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:null!=o?o:"The delay was aborted."})}function error_isError(t){if(function object_isObject(t){return!("object"!=typeof t||null===t||Array.isArray(t)||t instanceof RegExp||t instanceof Date)}(t)){const n="string"==typeof t.name,r="string"==typeof t.message;return n&&r}return!1}function browser_error_getErrorMessage(t){if(error_isError(t))return t.message;{let r;try{r="object"==typeof t&&t?JSON.stringify(t):String(t)}catch(n){r="[unable to stringify input]"}return`Unknown error ${r}`}}new Set("0123456789abcdefABCDEF");function uuidUtils_common_generateUUID(){let t="";for(let n=0;n<32;n++){const r=Math.floor(16*Math.random());t+=12===n?"4":16===n?3&r|8:r.toString(16),7!==n&&11!==n&&15!==n&&19!==n||(t+="-")}return t}var de;const pe="function"==typeof(null===(de=null===globalThis||void 0===globalThis?void 0:globalThis.crypto)||void 0===de?void 0:de.randomUUID)?globalThis.crypto.randomUUID.bind(globalThis.crypto):uuidUtils_common_generateUUID;function browser_uuidUtils_randomUUID(){return pe()}var ue,he,ge,fe;"undefined"!=typeof window&&window.document,"object"==typeof self&&"function"==typeof(null===self||void 0===self?void 0:self.importScripts)&&("DedicatedWorkerGlobalScope"===(null===(ue=self.constructor)||void 0===ue?void 0:ue.name)||"ServiceWorkerGlobalScope"===(null===(he=self.constructor)||void 0===he?void 0:he.name)||null===(ge=self.constructor)||void 0===ge||ge.name),"undefined"!=typeof Deno&&void 0!==Deno.version&&Deno.version.deno,"undefined"!=typeof Bun&&Bun.version;const ye=void 0!==globalThis.process&&Boolean(globalThis.process.version)&&Boolean(null===(fe=globalThis.process.versions)||void 0===fe?void 0:fe.node),be=("undefined"!=typeof navigator&&(null===navigator||void 0===navigator||navigator.product),"DisableKeepAlivePolicy");function encodeByteArray(t){let n="";for(let r=0;r""===s[t].serializedName));if("Sequence"===a||l){const n=t.parsedBody??[];for(const r of Object.keys(s))s[r].serializedName&&(n[r]=t.parsedBody?.[r]);if(r)for(const t of Object.keys(r))n[t]=r[t];return!o||t.parsedBody||r||0!==Object.getOwnPropertyNames(s).length?n:null}return function handleNullableResponseAndWrappableBody(t){const n={...t.headers,...t.body};return t.hasNullableType&&0===Object.getOwnPropertyNames(n).length?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:n}({body:t.parsedBody,headers:r,hasNullableType:o,shouldWrapBody:(c=t.parsedBody,m=a,"Composite"!==m&&"Dictionary"!==m&&("string"==typeof c||"number"==typeof c||"boolean"==typeof c||null!==m?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)||null==c))});var c,m}class SerializerImpl{modelMappers;isXML;constructor(t={},n=!1){this.modelMappers=t,this.isXML=n}validateConstraints(t,n,r){const failValidation=(t,i)=>{throw new Error(`"${r}" with value "${n}" should satisfy the constraint "${t}": ${i}.`)};if(t.constraints&&null!=n){const{ExclusiveMaximum:r,ExclusiveMinimum:i,InclusiveMaximum:o,InclusiveMinimum:a,MaxItems:s,MaxLength:l,MinItems:c,MinLength:m,MultipleOf:p,Pattern:u,UniqueItems:h}=t.constraints;if(void 0!==r&&n>=r&&failValidation("ExclusiveMaximum",r),void 0!==i&&n<=i&&failValidation("ExclusiveMinimum",i),void 0!==o&&n>o&&failValidation("InclusiveMaximum",o),void 0!==a&&ns&&failValidation("MaxItems",s),void 0!==l&&n.length>l&&failValidation("MaxLength",l),void 0!==c&&n.lengthr.indexOf(t)!==n))&&failValidation("UniqueItems",h)}}serialize(t,n,r,i={xml:{}}){const o={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??Ne}};let a={};const s=t.type.name;r||(r=t.serializedName),null!==s.match(/^Sequence$/i)&&(a=[]),t.isConstant&&(n=t.defaultValue);const{required:l,nullable:c}=t;if(l&&c&&void 0===n)throw new Error(`${r} cannot be undefined.`);if(l&&!c&&null==n)throw new Error(`${r} cannot be null or undefined.`);if(!l&&!1===c&&null===n)throw new Error(`${r} cannot be null.`);if(null==n)a=n;else if(null!==s.match(/^any$/i))a=n;else if(null!==s.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i))a=function serializeBasicTypes(t,n,r){if(null!=r)if(null!==t.match(/^Number$/i)){if("number"!=typeof r)throw new Error(`${n} with value ${r} must be of type number.`)}else if(null!==t.match(/^String$/i)){if("string"!=typeof r.valueOf())throw new Error(`${n} with value "${r}" must be of type string.`)}else if(null!==t.match(/^Uuid$/i)){if("string"!=typeof r.valueOf()||!function isValidUuid(t){return Se.test(t)}(r))throw new Error(`${n} with value "${r}" must be of type string and a valid uuid.`)}else if(null!==t.match(/^Boolean$/i)){if("boolean"!=typeof r)throw new Error(`${n} with value ${r} must be of type boolean.`)}else if(null!==t.match(/^Stream$/i)){const t=typeof r;if(!("string"===t||"function"==typeof r.pipe||"function"==typeof r.tee||r instanceof ArrayBuffer||ArrayBuffer.isView(r)||("function"==typeof Blob||"object"==typeof Blob)&&r instanceof Blob||"function"===t))throw new Error(`${n} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}return r}(s,r,n);else if(null!==s.match(/^Enum$/i)){a=function serializeEnumType(t,n,r){if(!n)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!n.some((t=>"string"==typeof t.valueOf()?t.toLowerCase()===r.toLowerCase():t===r)))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(n)}.`);return r}(r,t.type.allowedValues,n)}else null!==s.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)?a=function serializeDateTypes(t,n,r){if(null!=n)if(null!==t.match(/^Date$/i)){if(!(n instanceof Date||"string"==typeof n.valueOf()&&!isNaN(Date.parse(n))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);n=n instanceof Date?n.toISOString().substring(0,10):new Date(n).toISOString().substring(0,10)}else if(null!==t.match(/^DateTime$/i)){if(!(n instanceof Date||"string"==typeof n.valueOf()&&!isNaN(Date.parse(n))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);n=n instanceof Date?n.toISOString():new Date(n).toISOString()}else if(null!==t.match(/^DateTimeRfc1123$/i)){if(!(n instanceof Date||"string"==typeof n.valueOf()&&!isNaN(Date.parse(n))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);n=n instanceof Date?n.toUTCString():new Date(n).toUTCString()}else if(null!==t.match(/^UnixTime$/i)){if(!(n instanceof Date||"string"==typeof n.valueOf()&&!isNaN(Date.parse(n))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);n=function dateToUnixTime(t){if(!t)return;"string"==typeof t.valueOf()&&(t=new Date(t));return Math.floor(t.getTime()/1e3)}(n)}else if(null!==t.match(/^TimeSpan$/i)&&!function isDuration(t){return ve.test(t)}(n))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${n}".`);return n}(s,n,r):null!==s.match(/^ByteArray$/i)?a=function serializeByteArrayType(t,n){if(null!=n){if(!(n instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);n=encodeByteArray(n)}return n}(r,n):null!==s.match(/^Base64Url$/i)?a=function serializeBase64UrlType(t,n){if(null!=n){if(!(n instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);n=function bufferToBase64Url(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");return function trimEnd(t,n){let r=t.length;for(;r-1>=0&&t[r-1]===n;)--r;return t.substr(0,r)}(encodeByteArray(t),"=").replace(/\+/g,"-").replace(/\//g,"_")}(n)}return n}(r,n):null!==s.match(/^Sequence$/i)?a=function serializeSequenceType(t,n,r,i,o,a){if(!Array.isArray(r))throw new Error(`${i} must be of type Array.`);let s=n.type.element;if(!s||"object"!=typeof s)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${i}.`);"Composite"===s.type.name&&s.type.className&&(s=t.modelMappers[s.type.className]??s);const l=[];for(let c=0;ct!==o))&&(s[o]=t.serialize(c,r[o],i+'["'+o+'"]',a))}}return s}return r}(this,t,n,r,Boolean(this.isXML),o));return a}deserialize(t,n,r,i={xml:{}}){const o={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??Ne},ignoreUnknownProperties:i.ignoreUnknownProperties??!1};if(null==n)return this.isXML&&"Sequence"===t.type.name&&!t.xmlIsWrapped&&(n=[]),void 0!==t.defaultValue&&(n=t.defaultValue),n;let a;const s=t.type.name;if(r||(r=t.serializedName),null!==s.match(/^Composite$/i))a=function deserializeCompositeType(t,n,r,i,o){const a=o.xml.xmlCharKey??Ne;getPolymorphicDiscriminatorRecursively(t,n)&&(n=getPolymorphicMapper(t,n,r,"serializedName"));const s=resolveModelProperties(t,n,i);let l={};const c=[];for(const p of Object.keys(s)){const m=s[p],u=splitSerializeName(s[p].serializedName);c.push(u[0]);const{serializedName:h,xmlName:y,xmlElementName:x}=m;let v=i;""!==h&&void 0!==h&&(v=i+"."+h);const w=m.headerCollectionPrefix;if(w){const n={};for(const i of Object.keys(r))i.startsWith(w)&&(n[i.substring(w.length)]=t.deserialize(m.type.value,r[i],v,o)),c.push(i);l[p]=n}else if(t.isXML)if(m.xmlIsAttribute&&r[xe])l[p]=t.deserialize(m,r[xe][y],v,o);else if(m.xmlIsMsText)void 0!==r[a]?l[p]=r[a]:"string"==typeof r&&(l[p]=r);else{const n=x||y||h;if(m.xmlIsWrapped){const n=r[y],i=n?.[x]??[];l[p]=t.deserialize(m,i,v,o),c.push(y)}else{const i=r[n];l[p]=t.deserialize(m,i,v,o),c.push(n)}}else{let i,a=r,c=0;for(const t of u){if(!a)break;c++,a=a[t]}null===a&&c{for(const n in s){if(splitSerializeName(s[n].serializedName)[0]===t)return!1}return!0};for(const n in r)isAdditionalProperty(n)&&(l[n]=t.deserialize(m,r[n],i+'["'+n+'"]',o))}else if(r&&!o.ignoreUnknownProperties)for(const p of Object.keys(r))void 0!==l[p]||c.includes(p)||isSpecialXmlProperty(p,o)||(l[p]=r[p]);return l}(this,t,n,r,o);else{if(this.isXML){const t=o.xml.xmlCharKey;void 0!==n[xe]&&void 0!==n[t]&&(n=n[t])}null!==s.match(/^Number$/i)?(a=parseFloat(n),isNaN(a)&&(a=n)):null!==s.match(/^Boolean$/i)?a="true"===n||"false"!==n&&n:null!==s.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)?a=n:null!==s.match(/^(Date|DateTime|DateTimeRfc1123)$/i)?a=new Date(n):null!==s.match(/^UnixTime$/i)?a=function unixTimeToDate(t){if(!t)return;return new Date(1e3*t)}(n):null!==s.match(/^ByteArray$/i)?a=decodeString(n):null!==s.match(/^Base64Url$/i)?a=function base64UrlToByteArray(t){if(!t)return;if(t&&"string"!=typeof t.valueOf())throw new Error("Please provide an input of type string for converting to Uint8Array");return decodeString(t=t.replace(/-/g,"+").replace(/_/g,"/"))}(n):null!==s.match(/^Sequence$/i)?a=function deserializeSequenceType(t,n,r,i,o){let a=n.type.element;if(!a||"object"!=typeof a)throw new 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]),"Composite"===a.type.name&&a.type.className&&(a=t.modelMappers[a.type.className]??a);const n=[];for(let s=0;s0)if(o.isConstant)a=o.defaultValue;else{let n=getPropertyFromParameterPath(t,i);!n.propertyFound&&r&&(n=getPropertyFromParameterPath(r,i));let s=!1;n.propertyFound||(s=o.required||"options"===i[0]&&2===i.length),a=s?o.defaultValue:n.propertyValue}}else{o.required&&(a={});for(const n in i){const s=o.type.modelProperties[n],l=getOperationArgumentValueFromParameter(t,{parameterPath:i[n],mapper:s},r);void 0!==l&&(a||(a={}),a[n]=l)}}return a}function getPropertyFromParameterPath(t,n){const r={propertyFound:!1};let i=0;for(;it.toLowerCase())):[];try{if(0===c.length||c.some((n=>-1!==t.indexOf(n))))return r.parsedBody=JSON.parse(s),r;if(c.some((t=>-1!==n.indexOf(t)))){if(!o)throw new Error("Parsing XML not supported.");const t=await o(s,i.xml);return r.parsedBody=t,r}}catch(a){const t=`Error "${a}" occurred while parsing the response body - ${r.bodyAsText}.`,n=a.code||ce.PARSE_ERROR;throw new ce(t,{code:n,statusCode:r.status,request:r.request,response:r})}}return r}(t,n,r,i,o);if(!function shouldDeserializeResponse(t){const n=t.request,r=getOperationRequestInfo(n),i=r?.shouldDeserialize;let o;o=void 0===i||("boolean"==typeof i?i:i(t));return o}(a))return a;const s=getOperationRequestInfo(a.request),l=s?.operationSpec;if(!l||!l.responses)return a;const c=function getOperationResponseMap(t){let n;const r=t.request,i=getOperationRequestInfo(r),o=i?.operationSpec;o&&(n=i?.operationResponseGetter?i?.operationResponseGetter(o,t):o.responses[t.status]);return n}(a),{error:m,shouldReturnResponse:p}=function handleErrorResponse(t,n,r,i){const o=200<=t.status&&t.status<300,a=function isOperationSpecEmpty(t){const n=Object.keys(t.responses);return 0===n.length||1===n.length&&"default"===n[0]}(n)?o:!!r;if(a){if(!r)return{error:null,shouldReturnResponse:!1};if(!r.isError)return{error:null,shouldReturnResponse:!1}}const s=r??n.responses.default,l=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,c=new ce(l,{statusCode:t.status,request:t.request,response:t});if(!(s||t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw c;const m=s?.bodyMapper,p=s?.headersMapper;try{if(t.parsedBody){const r=t.parsedBody;let o;if(m){let t=r;if(n.isXML&&m.type.name===we){t=[];const n=m.xmlElementName;"object"==typeof r&&n&&(t=r[n])}o=n.serializer.deserialize(m,t,"error.response.parsedBody",i)}const a=r.error||o||r;c.code=a.code,a.message&&(c.message=a.message),m&&(c.response.parsedBody=o)}t.headers&&p&&(c.response.parsedHeaders=n.serializer.deserialize(p,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(u){c.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:c,shouldReturnResponse:!1}}(a,l,c,i);if(m)throw m;if(p)return a;if(c){if(c.bodyMapper){let t=a.parsedBody;l.isXML&&c.bodyMapper.type.name===we&&(t="object"==typeof t?t[c.bodyMapper.xmlElementName]:[]);try{a.parsedBody=l.serializer.deserialize(c.bodyMapper,t,"operationRes.parsedBody",i)}catch(u){throw new ce(`Error ${u} occurred in deserializing the responseBody - ${a.bodyAsText}`,{statusCode:a.status,request:a.request,response:a})}}else"HEAD"===l.httpMethod&&(a.parsedBody=r.status>=200&&r.status<300);c.headersMapper&&(a.parsedHeaders=l.serializer.deserialize(c.headersMapper,a.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return a}(n,r,s,a,i)}}}function getPathStringFromParameter(t){const{parameterPath:n,mapper:r}=t;let i;return i="string"==typeof n?n:Array.isArray(n)?n.join("."):r.serializedName,i}function serializationPolicy(t={}){const n=t.stringifyXML;return{name:"serializationPolicy",async sendRequest(t,r){const i=getOperationRequestInfo(t),o=i?.operationSpec,a=i?.operationArguments;return o&&a&&(!function serializeHeaders(t,n,r){if(r.headerParameters)for(const o of r.headerParameters){let i=getOperationArgumentValueFromParameter(n,o);if(null!=i||o.mapper.required){i=r.serializer.serialize(o.mapper,i,getPathStringFromParameter(o));const n=o.mapper.headerCollectionPrefix;if(n)for(const r of Object.keys(i))t.headers.set(n+r,i[r]);else t.headers.set(o.mapper.serializedName||getPathStringFromParameter(o),i)}}const i=n.options?.requestOptions?.customHeaders;if(i)for(const o of Object.keys(i))t.headers.set(o,i[o])}(t,a,o),function serializeRequestBody(t,n,r,i=function(){throw new Error("XML serialization unsupported!")}){const o=n.options?.serializerOptions,a={xml:{rootName:o?.xml.rootName??"",includeRoot:o?.xml.includeRoot??!1,xmlCharKey:o?.xml.xmlCharKey??Ne}},s=a.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=getOperationArgumentValueFromParameter(n,r.requestBody);const o=r.requestBody.mapper,{required:c,serializedName:m,xmlName:p,xmlElementName:u,xmlNamespace:h,xmlNamespacePrefix:y,nullable:x}=o,v=o.type.name;try{if(void 0!==t.body&&null!==t.body||x&&null===t.body||c){const n=getPathStringFromParameter(r.requestBody);t.body=r.serializer.serialize(o,t.body,n,a);const l=v===Ce;if(r.isXML){const n=y?`xmlns:${y}`:"xmlns",r=function getXmlValueWithNamespace(t,n,r,i,o){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};return r[o.xml.xmlCharKey]=i,r[xe]={[n]:t},r}return i}(h,n,v,t.body,a);v===we?t.body=i(function prepareXMLRootList(t,n,r,i){Array.isArray(t)||(t=[t]);if(!r||!i)return{[n]:t};const o={[n]:t};return o[xe]={[r]:i},o}(r,u||p||m,n,h),{rootName:p||m,xmlCharKey:s}):l||(t.body=i(r,{rootName:p||m,xmlCharKey:s}))}else{if(v===Ee&&(r.contentType?.match("text/plain")||"text"===r.mediaType))return;l||(t.body=JSON.stringify(t.body))}}}catch(l){throw new Error(`Error "${l.message}" occurred in serializing the payload - ${JSON.stringify(m,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(const i of r.formDataParameters){const o=getOperationArgumentValueFromParameter(n,i);if(null!=o){const n=i.mapper.serializedName||getPathStringFromParameter(i);t.formData[n]=r.serializer.serialize(i.mapper,o,getPathStringFromParameter(i),a)}}}}(t,a,o,n)),r(t)}}}function createClientPipeline(t={}){const n=browser_createPipelineFromOptions_createPipelineFromOptions(t??{});return t.credentialOptions&&n.addPolicy(bearerTokenAuthenticationPolicy({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),n.addPolicy(serializationPolicy(t.serializationOptions),{phase:"Serialize"}),n.addPolicy(deserializationPolicy(t.deserializationOptions),{phase:"Deserialize"}),n}let ze;const Me={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(t,n,r,i){const o=function calculateUrlReplacements(t,n,r){const i=new Map;if(t.urlParameters?.length)for(const o of t.urlParameters){let a=getOperationArgumentValueFromParameter(n,o,r);const s=getPathStringFromParameter(o);a=t.serializer.serialize(o.mapper,a,s),o.skipEncoding||(a=encodeURIComponent(a)),i.set(`{${o.mapper.serializedName||s}}`,a)}return i}(n,r,i);let a=!1,s=replaceAll(t,o);if(n.path){let t=replaceAll(n.path,o);"/{nextLink}"===n.path&&t.startsWith("/")&&(t=t.substring(1)),!function isAbsoluteUrl(t){return t.includes("://")}(t)?s=function appendPath(t,n){if(!n)return t;const r=new URL(t);let i=r.pathname;i.endsWith("/")||(i=`${i}/`);n.startsWith("/")&&(n=n.substring(1));const o=n.indexOf("?");if(-1!==o){const t=n.substring(0,o),a=n.substring(o+1);i+=t,a&&(r.search=r.search?`${r.search}&${a}`:a)}else i+=n;return r.pathname=i,r.toString()}(s,t):(s=t,a=!0)}const{queryParams:l,sequenceParams:c}=function calculateQueryParameters(t,n,r){const i=new Map,o=new Set;if(t.queryParameters?.length)for(const a of t.queryParameters){"Sequence"===a.mapper.type.name&&a.mapper.serializedName&&o.add(a.mapper.serializedName);let s=getOperationArgumentValueFromParameter(n,a,r);if(null!=s||a.mapper.required){s=t.serializer.serialize(a.mapper,s,getPathStringFromParameter(a));const n=a.collectionFormat?Me[a.collectionFormat]:"";if(Array.isArray(s)&&(s=s.map((t=>null==t?"":t))),"Multi"===a.collectionFormat&&0===s.length)continue;!Array.isArray(s)||"SSV"!==a.collectionFormat&&"TSV"!==a.collectionFormat||(s=s.join(n)),a.skipEncoding||(s=Array.isArray(s)?s.map((t=>encodeURIComponent(t))):encodeURIComponent(s)),!Array.isArray(s)||"CSV"!==a.collectionFormat&&"Pipes"!==a.collectionFormat||(s=s.join(n)),i.set(a.mapper.serializedName||getPathStringFromParameter(a),s)}}return{queryParams:i,sequenceParams:o}}(n,r,i);return s=function appendQueryParams(t,n,r,i=!1){if(0===n.size)return t;const o=new URL(t),a=function simpleParseQueryParams(t){const n=new Map;if(!t||"?"!==t[0])return n;const r=(t=t.slice(1)).split("&");for(const i of r){const[t,r]=i.split("=",2),o=n.get(t);o?Array.isArray(o)?o.push(r):n.set(t,[o,r]):n.set(t,r)}return n}(o.search);for(const[l,c]of n){const t=a.get(l);if(Array.isArray(t))if(Array.isArray(c)){t.push(...c);const n=new Set(t);a.set(l,Array.from(n))}else t.push(c);else t?(Array.isArray(c)?c.unshift(t):r.has(l)&&a.set(l,[t,c]),i||a.set(l,c)):a.set(l,c)}const s=[];for(const[l,c]of a)if("string"==typeof c)s.push(`${l}=${c}`);else if(Array.isArray(c))for(const t of c)s.push(`${l}=${t}`);else s.push(`${l}=${c}`);return o.search=s.length?`?${s.join("&")}`:"",o.toString()}(s,l,c,a),s}function replaceAll(t,n){let r=t;for(const[i,o]of n)r=r.split(i).join(o);return r}const ke=browser_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(t={}){if(this._requestContentType=t.requestContentType,this._endpoint=t.endpoint??t.baseUri,t.baseUri&&ke.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=t.allowInsecureConnection,this._httpClient=t.httpClient||function getCachedDefaultHttpClient(){return ze||(ze=browser_defaultHttpClient_createDefaultHttpClient()),ze}(),this.pipeline=t.pipeline||function serviceClient_createDefaultPipeline(t){const n=function getCredentialScopes(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy");return}(t),r=t.credential&&n?{credentialScopes:n,credential:t.credential}:void 0;return createClientPipeline({...t,credentialOptions:r})}(t),t.additionalPolicies?.length)for(const{policy:n,position:r}of t.additionalPolicies){const t="perRetry"===r?"Sign":void 0;this.pipeline.addPolicy(n,{afterPhase:t})}}async sendRequest(t){return this.pipeline.sendRequest(this._httpClient,t)}async sendOperationRequest(t,n){const r=n.baseUrl||this._endpoint;if(!r)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");const i=browser_pipelineRequest_createPipelineRequest({url:getRequestUrl(r,n,t,this)});i.method=n.httpMethod;const o=getOperationRequestInfo(i);o.operationSpec=n,o.operationArguments=t;const a=n.contentType||this._requestContentType;a&&n.requestBody&&i.headers.set("Content-Type",a);const s=t.options;if(s){const t=s.requestOptions;t&&(t.timeout&&(i.timeout=t.timeout),t.onUploadProgress&&(i.onUploadProgress=t.onUploadProgress),t.onDownloadProgress&&(i.onDownloadProgress=t.onDownloadProgress),void 0!==t.shouldDeserialize&&(o.shouldDeserialize=t.shouldDeserialize),t.allowInsecureConnection&&(i.allowInsecureConnection=!0)),s.abortSignal&&(i.abortSignal=s.abortSignal),s.tracingOptions&&(i.tracingOptions=s.tracingOptions)}this._allowInsecureConnection&&(i.allowInsecureConnection=!0),void 0===i.streamResponseStatusCodes&&(i.streamResponseStatusCodes=function getStreamingResponseStatusCodes(t){const n=new Set;for(const r in t.responses){const i=t.responses[r];i.bodyMapper&&i.bodyMapper.type.name===Ce&&n.add(Number(r))}return n}(n));try{const t=await this.sendRequest(i),r=flattenResponse(t,n.responses[t.status]);return s?.onResponse&&s.onResponse(t,r),r}catch(l){if("object"==typeof l&&l?.response){const t=l.response,r=flattenResponse(t,n.responses[l.statusCode]||n.responses.default);l.details=r,s?.onResponse&&s.onResponse(t,r,l)}throw l}}}const Le="/.default",Ie={AUTHORIZATION:"authorization"};const authorizeRequestOnTenantChallenge=async t=>{const n=function requestToOptions(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}(t.request),r=function getChallenge(t){const n=t.headers.get("WWW-Authenticate");if(401===t.status&&n)return n;return}(t.response);if(r){const i=function parseChallenge(t){const n=t.slice(7),r=`${n.trim()} `.split(" ").filter((t=>t));return r.map((t=>(([t,n])=>({[t]:n}))(t.trim().split("=")))).reduce(((t,n)=>({...t,...n})),{})}(r),o=function buildScopes(t,n){if(!n.resource_id)return t.scopes;const r=new URL(n.resource_id);r.pathname=Le;let i=r.toString();"https://disk.azure.com/.default"===i&&(i="https://disk.azure.com//.default");return[i]}(t,i),a=function extractTenantId(t){const n=new URL(t.authorization_uri),r=n.pathname.split("/")[1];if(r&&function isUuid(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}(r))return r;return}(i);if(!a)return!1;const s=await t.getAccessToken(o,{...n,tenantId:a});return!!s&&(t.request.headers.set(Ie.AUTHORIZATION,`${s.tokenType??"Bearer"} ${s.token}`),!0)}return!1};const _e=Symbol("Original PipelineRequest"),Be=Symbol.for("@azure/core-client original request");function toPipelineRequest(t,n={}){const r=t[_e],i=browser_httpHeaders_createHttpHeaders(t.headers.toJson({preserveCase:!0}));if(r)return r.headers=i,r;{const r=browser_pipelineRequest_createPipelineRequest({url:t.url,method:t.method,headers:i,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return n.originalRequest&&(r[Be]=n.originalRequest),r}}function toWebResourceLike(t,n){const r=n?.originalRequest??t,i={url:t.url,method:t.method,headers:toHttpHeadersLike(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return n?.createProxy?new Proxy(i,{get:(n,o,a)=>o===_e?t:"clone"===o?()=>toWebResourceLike(toPipelineRequest(i,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(n,o,a),set(n,r,i,o){"keepAlive"===r&&(t.disableKeepAlive=!i);return"string"==typeof r&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(r)&&(t[r]=i),Reflect.set(n,r,i,o)}}):i}function toHttpHeadersLike(t){return new HttpHeaders(t.toJSON({preserveCase:!0}))}function getHeaderKey(t){return t.toLowerCase()}class HttpHeaders{_headersMap;constructor(t){if(this._headersMap={},t)for(const n in t)this.set(n,t[n])}set(t,n){this._headersMap[getHeaderKey(t)]={name:t,value:n.toString()}}get(t){const n=this._headersMap[getHeaderKey(t)];return n?n.value:void 0}contains(t){return!!this._headersMap[getHeaderKey(t)]}remove(t){const n=this.contains(t);return delete this._headersMap[getHeaderKey(t)],n}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){const t=[];for(const n in this._headersMap)t.push(this._headersMap[n]);return t}headerNames(){const t=[],n=this.headersArray();for(let r=0;r"headers"===o?i:"request"===o?r:o===qe?t:Reflect.get(n,o,a),set:(t,n,o,a)=>("headers"===n?i=o:"request"===n&&(r=o),Reflect.set(t,n,o,a))}):{...t,request:r,headers:i}}function response_toPipelineResponse(t){const n=t[qe],r=browser_httpHeaders_createHttpHeaders(t.headers.toJson({preserveCase:!0}));return n?(n.headers=r,n):{...t,headers:r,request:toPipelineRequest(t.request)}}class ExtendedServiceClient extends ServiceClient{constructor(t){super(t),!1!==t.keepAliveOptions?.enable||function pipelineContainsDisableKeepAlivePolicy(t){return t.getOrderedPolicies().some((t=>t.name===be))}(this.pipeline)||this.pipeline.addPolicy(function createDisableKeepAlivePolicy(){return{name:be,sendRequest:async(t,n)=>(t.disableKeepAlive=!0,n(t))}}()),!1===t.redirectOptions?.handleRedirects&&this.pipeline.removePolicy({name:te})}async sendOperationRequest(t,n){const r=t?.options?.onResponse;let i;t.options={...t.options,onResponse:function onResponse(t,n,o){i=t,r&&r(t,n,o)}};const o=await super.sendOperationRequest(t,n);return i&&Object.defineProperty(o,"_response",{value:toCompatResponse(i)}),o}}var Oe;!function(t){t[t.ERROR=1]="ERROR",t[t.INFO=3]="INFO",t[t.OFF=0]="OFF",t[t.WARNING=2]="WARNING"}(Oe||(Oe={}));const De={log(t,n){},shouldLog:t=>!1};function createRequestPolicyFactoryPolicy(t){const n=t.slice().reverse();return{name:"RequestPolicyFactoryPolicy",async sendRequest(t,r){let i={sendRequest:async t=>toCompatResponse(await r(toPipelineRequest(t)),{createProxy:!0})};for(const a of n)i=a.create(i,De);const o=toWebResourceLike(t,{createProxy:!0});return response_toPipelineResponse(await i.sendRequest(o))}}}const He="$";if(!(document&&DOMParser&&Node&&XMLSerializer))throw new Error('This library depends on the following DOM objects: ["document", "DOMParser", "Node", "XMLSerializer"] to parse XML, but some of these are undefined. You may provide a polyfill to make these globally available in order to support your environment. For more information, please refer to https://aka.ms/azsdk/js/web-workers. ');let Fe;try{void 0!==self.trustedTypes&&(Fe=self.trustedTypes.createPolicy("@azure/core-xml#xml.browser",{createHTML:t=>t}))}catch(Il){}const Ue=document.implementation.createDocument(null,null,null),Ve=new DOMParser;function parseXML(t,n={}){var r,i,o,a,s,l;try{const c={rootName:null!==(r=n.rootName)&&void 0!==r?r:"",includeRoot:null!==(i=n.includeRoot)&&void 0!==i&&i,xmlCharKey:null!==(o=n.xmlCharKey)&&void 0!==o?o:"_",cdataPropName:null!==(a=n.cdataPropName)&&void 0!==a?a:"__cdata",stopNodes:null!==(s=n.stopNodes)&&void 0!==s?s:[]},m=Ve.parseFromString(null!==(l=null==Fe?void 0:Fe.createHTML(t))&&void 0!==l?l:t,"application/xml");let p;return function throwIfError(t){const n=t.getElementsByTagName("parsererror");if(n.length>0&&function getErrorNamespace(){var t,n;if(void 0===je)try{const r=null!==(t=null==Fe?void 0:Fe.createHTML("INVALID"))&&void 0!==t?t:"INVALID";je=null!==(n=Ve.parseFromString(r,"text/xml").getElementsByTagName("parsererror")[0].namespaceURI)&&void 0!==n?n:""}catch(r){je=""}return je}())for(let r=0;r'+$e.serializeToString(c).replace(/ xmlns=""/g,"")}function buildAttributes(t){const n=[];for(const r of Object.keys(t)){const i=Ue.createAttribute(r);i.value=t[r].toString(),n.push(i)}return n}function buildNode(t,n,r){var i;if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t){const r=Ue.createElement(n);return r.textContent=null==t?"":t.toString(),[r]}if(Array.isArray(t)){const i=[];for(const o of t)for(const t of buildNode(o,n,r))i.push(t);return i}if("object"==typeof t){let o;o=(null===(i=t[He])||void 0===i?void 0:i.xmlns)?Ue.createElementNS(t[He].xmlns,n):Ue.createElement(n);for(const n of Object.keys(t))if(n===He)for(const r of buildAttributes(t[n]))o.attributes.setNamedItem(r);else if(n===r.xmlCharKey)o.textContent=t[n].toString();else if(n===r.cdataPropName){const r=Ue.createCDATASection(t[n].toString());o.appendChild(r)}else for(const i of buildNode(t[n],n,r))o.appendChild(i);return[o]}throw new Error(`Illegal value passed to buildObject: ${t}`)}const Ke=browser_createClientLogger("storage-blob");class BaseRequestPolicy{_nextPolicy;_options;constructor(t,n){this._nextPolicy=t,this._options=n}shouldLog(t){return this._options.shouldLog(t)}log(t,n){this._options.log(t,n)}}const We="12.29.1",Ge="2025-11-05",Xe=268435456,Qe=4194304e3,Je=5e4,Ye=4194304,Ze="https://storage.azure.com/.default",et={FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"},tt="Content-Length",nt="Cookie",rt="x-ms-copy-source-error-code",it="",ot=["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-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],at=["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"],st=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(t){const n=new URL(t);let r=n.pathname;return r=r||"/",r=function utils_common_escape(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}(r),n.pathname=r,n.toString()}function getValueInConnString(t,n){const r=t.split(";");for(const i of r)if(i.trim().startsWith(n))return i.trim().match(n+"=(.*)")[1];return""}function extractConnectionStringParts(t){let n="";t.startsWith("UseDevelopmentStorage=true")&&(n=function getProxyUriFromDevConnString(t){let n="";if(-1!==t.search("DevelopmentStorageProxyUri=")){const r=t.split(";");for(const t of r)t.trim().startsWith("DevelopmentStorageProxyUri=")&&(n=t.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return n}(t),t="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;");let r=getValueInConnString(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,-1!==t.search("DefaultEndpointsProtocol=")&&-1!==t.search("AccountKey=")){let i="",o="",a=Buffer.from("accountKey","base64"),s="";if(o=getValueInConnString(t,"AccountName"),a=Buffer.from(getValueInConnString(t,"AccountKey"),"base64"),!r){i=getValueInConnString(t,"DefaultEndpointsProtocol");const n=i.toLowerCase();if("https"!==n&&"http"!==n)throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=getValueInConnString(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${i}://${o}.blob.${s}`}if(!o)throw new Error("Invalid AccountName in the provided Connection String");if(0===a.length)throw new Error("Invalid AccountKey in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:o,accountKey:a,proxyUri:n}}{let n=getValueInConnString(t,"SharedAccessSignature"),i=getValueInConnString(t,"AccountName");if(i||(i=getAccountNameFromUrl(r)),!r)throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:i,accountSas:n}}}function appendToURLPath(t,n){const r=new URL(t);let i=r.pathname;return i=i?i.endsWith("/")?`${i}${n}`:`${i}/${n}`:n,r.pathname=i,r.toString()}function utils_common_setURLParameter(t,n,r){const i=new URL(t),o=encodeURIComponent(n),a=r?encodeURIComponent(r):void 0,s=""===i.search?"?":i.search,l=[];for(const c of s.slice(1).split("&"))if(c){const[t]=c.split("=",2);t!==o&&l.push(c)}return a&&l.push(`${o}=${a}`),i.search=l.length?`?${l.join("&")}`:"",i.toString()}function getURLParameter(t,n){return new URL(t).searchParams.get(n)??void 0}function utils_common_setURLHost(t,n){const r=new URL(t);return r.hostname=n,r.toString()}function appendToURLQuery(t,n){const r=new URL(t);let i=r.search;return i?i+="&"+n:i=n,r.search=i,r.toString()}function truncatedISO8061Date(t,n=!0){const r=t.toISOString();return n?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}function generateBlockID(t,n){t.length>42&&(t=t.slice(0,42));return function base64encode(t){return ye?Buffer.from(t).toString("base64"):btoa(t)}(t+function padStart(t,n,r=" "){if(String.prototype.padStart)return t.padStart(n,r);return r=r||" ",t.length>n?t:((n-=t.length)>r.length&&(r+=r.repeat(n/r.length)),r.slice(0,n)+t)}(n.toString(),48-t.length,"0"))}async function utils_common_delay(t,n,r){return new Promise(((i,o)=>{let a;const abortHandler=()=>{void 0!==a&&clearTimeout(a),o(r)};a=setTimeout((()=>{void 0!==n&&n.removeEventListener("abort",abortHandler),i()}),t),void 0!==n&&n.addEventListener("abort",abortHandler)}))}function iEqual(t,n){return t.toLocaleLowerCase()===n.toLocaleLowerCase()}function getAccountNameFromUrl(t){const n=new URL(t);let r;try{return r="blob"===n.hostname.split(".")[1]?n.hostname.split(".")[0]:isIpEndpointStyle(n)?n.pathname.split("/")[1]:"",r}catch(i){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(t){const n=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[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(n)||Boolean(t.port)&&st.includes(t.port)}function toBlobTagsString(t){if(void 0===t)return;const n=[];for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];n.push(`${encodeURIComponent(r)}=${encodeURIComponent(i)}`)}return n.join("&")}function toBlobTags(t){if(void 0===t)return;const n={blobTagSet:[]};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];n.blobTagSet.push({key:r,value:i})}return n}function toTags(t){if(void 0===t)return;const n={};for(const r of t.blobTagSet)n[r.key]=r.value;return n}function toQuerySerialization(t){if(void 0!==t)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(t){if(!t)return;if("policy-id"in t)return;const n=[];for(const r in t){const i=r.split("_"),o="or-";i[0].startsWith(o)&&(i[0]=i[0].substring(o.length));const a={ruleId:i[1],replicationStatus:t[r]},s=n.findIndex((t=>t.policyId===i[0]));s>-1?n[s].rules.push(a):n.push({policyId:i[0],rules:[a]})}return n}function httpAuthorizationToString(t){return t?t.scheme+" "+t.value:void 0}function*ExtractPageRangeInfoItems(t){let n=[],r=[];t.pageRange&&(n=t.pageRange),t.clearRange&&(r=t.clearRange);let i=0,o=0;for(;i=1?Math.floor(r.maxTries):ct.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:ct.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:ct.maxRetryDelayInMs):ct.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:ct.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:ct.secondaryHost}}async sendRequest(t){return this.attemptSendRequest(t,!1,1)}async attemptSendRequest(t,n,r){const i=t.clone(),o=n||!this.retryOptions.secondaryHost||!("GET"===t.method||"HEAD"===t.method||"OPTIONS"===t.method)||r%2==1;let a;o||(i.url=utils_common_setURLHost(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=utils_common_setURLParameter(i.url,et.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));try{if(Ke.info(`RetryPolicy: =====> Try=${r} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(o,r,a))return a;n=n||!o&&404===a.status}catch(s){if(Ke.error(`RetryPolicy: Caught error, message: ${s.message}, code: ${s.code}`),!this.shouldRetry(o,r,a,s))throw s}return await this.delay(o,r,t.abortSignal),this.attemptSendRequest(t,n,++r)}shouldRetry(t,n,r,i){if(n>=this.retryOptions.maxTries)return Ke.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i)for(const a of o)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return Ke.info(`RetryPolicy: Network error ${a} found, will retry.`),!0;if(r||i){const n=r?r.status:i?i.statusCode:0;if(!t&&404===n)return Ke.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(503===n||500===n)return Ke.info(`RetryPolicy: Will retry for status code ${n}.`),!0}if(r&&r?.status>=400){const t=r.headers.get(rt);if(void 0!==t)switch(t){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!("PARSE_ERROR"!==i?.code||!i?.message.startsWith('Error "Error: Unclosed root tag'))&&(Ke.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0)}async delay(t,n,r){let i=0;if(t)switch(this.retryOptions.retryPolicyType){case lt.EXPONENTIAL:i=Math.min((Math.pow(2,n-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case lt.FIXED:i=this.retryOptions.retryDelayInMs}else i=1e3*Math.random();return Ke.info(`RetryPolicy: Delay for ${i}ms`),utils_common_delay(i,r,mt)}}class StorageRetryPolicyFactory{retryOptions;constructor(t){this.retryOptions=t}create(t,n){return new StorageRetryPolicy_StorageRetryPolicy(t,n,this.retryOptions)}}class StorageSharedKeyCredential{}class CredentialPolicy extends BaseRequestPolicy{sendRequest(t){return this._nextPolicy.sendRequest(this.signRequest(t))}signRequest(t){return t}}class AnonymousCredentialPolicy_AnonymousCredentialPolicy extends CredentialPolicy{constructor(t,n){super(t,n)}}class Credential_Credential{create(t,n){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential_Credential{create(t,n){return new AnonymousCredentialPolicy_AnonymousCredentialPolicy(t,n)}}class BufferScheduler{}let dt;new Set("0123456789abcdefABCDEF");function browser_uuidUtils_common_generateUUID(){let t="";for(let n=0;n<32;n++){const r=Math.floor(16*Math.random());t+=12===n?"4":16===n?3&r|8:r.toString(16),7!==n&&11!==n&&15!==n&&19!==n||(t+="-")}return t}var pt;"function"==typeof(null===(pt=null===globalThis||void 0===globalThis?void 0:globalThis.crypto)||void 0===pt?void 0:pt.randomUUID)&&globalThis.crypto.randomUUID.bind(globalThis.crypto);var ut,ht,gt,ft;"undefined"!=typeof window&&window.document,"object"==typeof self&&"function"==typeof(null===self||void 0===self?void 0:self.importScripts)&&("DedicatedWorkerGlobalScope"===(null===(ut=self.constructor)||void 0===ut?void 0:ut.name)||"ServiceWorkerGlobalScope"===(null===(ht=self.constructor)||void 0===ht?void 0:ht.name)||null===(gt=self.constructor)||void 0===gt||gt.name),"undefined"!=typeof Deno&&void 0!==Deno.version&&Deno.version.deno,"undefined"!=typeof Bun&&Bun.version,void 0!==globalThis.process&&Boolean(globalThis.process.version)&&Boolean(null===(ft=globalThis.process.versions)||void 0===ft?void 0:ft.node),"undefined"!=typeof navigator&&(null===navigator||void 0===navigator||navigator.product);browser_createClientLogger("storage-common");var yt;!function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"}(yt||(yt={}));yt.EXPONENTIAL,new browser_AbortError_AbortError("The operation was aborted.");yt.EXPONENTIAL,new browser_AbortError_AbortError("The operation was aborted.");const bt={maxRetryDelayInMs:12e4,maxTries:4,retryDelayInMs:4e3,retryPolicyType:lt.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Nt=new browser_AbortError_AbortError("The operation was aborted.");class policies_StorageBrowserPolicy_StorageBrowserPolicy extends BaseRequestPolicy{constructor(t,n){super(t,n)}async sendRequest(t){return ye||("GET"!==t.method.toUpperCase()&&"HEAD"!==t.method.toUpperCase()||(t.url=utils_common_setURLParameter(t.url,et.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())),t.headers.remove(nt),t.headers.remove(tt)),this._nextPolicy.sendRequest(t)}}class StorageBrowserPolicyFactory_StorageBrowserPolicyFactory{create(t,n){return new policies_StorageBrowserPolicy_StorageBrowserPolicy(t,n)}}function isPipelineLike(t){if(!t||"object"!=typeof t)return!1;const n=t;return Array.isArray(n.factories)&&"object"==typeof n.options&&"function"==typeof n.toServiceClientOptions}class Pipeline{factories;options;constructor(t,n={}){this.factories=t,this.options=n}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(t,n={}){t||(t=new AnonymousCredential);const r=new Pipeline([],n);return r._credential=t,r}function getCoreClientOptions(t){const{httpClient:n,...r}=t.options;let i=t._coreHttpClient;i||(i=n?function convertHttpClient(t){return{sendRequest:async n=>response_toPipelineResponse(await t.sendRequest(toWebResourceLike(n,{createProxy:!0})))}}(n):function cache_getCachedDefaultHttpClient(){return dt||(dt=browser_defaultHttpClient_createDefaultHttpClient()),dt}(),t._coreHttpClient=i);let o=t._corePipeline;if(!o){const n=`azsdk-js-azure-storage-blob/${We}`,i=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;o=createClientPipeline({...r,loggingOptions:{additionalAllowedHeaderNames:ot,additionalAllowedQueryParameters:at,logger:Ke.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}}),o.removePolicy({phase:"Retry"}),o.removePolicy({name:"decompressResponsePolicy"}),o.addPolicy({name:"StorageCorrectContentLengthPolicy",sendRequest:async(t,n)=>n(t)}),o.addPolicy(function StorageRetryPolicyV2_storageRetryPolicy(t={}){const n=t.retryPolicyType??bt.retryPolicyType,r=t.maxTries??bt.maxTries,i=t.retryDelayInMs??bt.retryDelayInMs,o=t.maxRetryDelayInMs??bt.maxRetryDelayInMs,a=t.secondaryHost??bt.secondaryHost,s=t.tryTimeoutInMs??bt.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:t,attempt:n,response:i,error:o}){if(n>=r)return Ke.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${r}, no further try.`),!1;if(o){for(const t of xt)if(o.name.toUpperCase().includes(t)||o.message.toUpperCase().includes(t)||o.code&&o.code.toString().toUpperCase()===t)return Ke.info(`RetryPolicy: Network error ${t} found, will retry.`),!0;if("PARSE_ERROR"===o?.code&&o?.message.startsWith('Error "Error: Unclosed root tag'))return Ke.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(i||o){const n=i?.status??o?.statusCode??0;if(!t&&404===n)return Ke.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(503===n||500===n)return Ke.info(`RetryPolicy: Will retry for status code ${n}.`),!0}if(i&&i?.status>=400){const t=i.headers.get(rt);if(void 0!==t)switch(t){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}function calculateDelay(t,r){let a=0;if(t)switch(n){case lt.EXPONENTIAL:a=Math.min((Math.pow(2,r-1)-1)*i,o);break;case lt.FIXED:a=i}else a=1e3*Math.random();return Ke.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:"storageRetryPolicy",async sendRequest(t,n){s&&(t.url=utils_common_setURLParameter(t.url,et.TIMEOUT,String(Math.floor(s/1e3))));const r=t.url,i=a?utils_common_setURLHost(t.url,a):void 0;let o,l,c=!1,m=1,p=!0;for(;p;){const a=c||!i||!["GET","HEAD","OPTIONS"].includes(t.method)||m%2==1;t.url=a?r:i,o=void 0,l=void 0;try{Ke.info(`RetryPolicy: =====> Try=${m} ${a?"Primary":"Secondary"}`),o=await n(t),c=c||!a&&404===o.status}catch(Il){if(!browser_restError_isRestError(Il))throw Ke.error(`RetryPolicy: Caught error, message: ${browser_error_getErrorMessage(Il)}`),Il;Ke.error(`RetryPolicy: Caught error, message: ${Il.message}, code: ${Il.code}`),l=Il}p=shouldRetry({isPrimaryRetry:a,attempt:m,response:o,error:l}),p&&await utils_common_delay(calculateDelay(a,m),t.abortSignal,Nt),m++}if(o)return o;throw l??new ce("RetryPolicy failed without known error.")}}}(r.retryOptions),{phase:"Retry"}),o.addPolicy(function storageRequestFailureDetailsParserPolicy(){return{name:"storageRequestFailureDetailsParserPolicy",async sendRequest(t,n){try{return await n(t)}catch(r){throw"object"==typeof r&&null!==r&&r.response&&r.response.parsedBody&&"InvalidHeaderValue"===r.response.parsedBody.code&&"x-ms-version"===r.response.parsedBody.HeaderName&&(r.message="The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.\n"),r}}}}()),o.addPolicy(function StorageBrowserPolicyV2_storageBrowserPolicy(){return{name:"storageBrowserPolicy",sendRequest:async(t,n)=>(ye||("GET"!==t.method&&"HEAD"!==t.method||(t.url=utils_common_setURLParameter(t.url,et.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())),t.headers.delete(nt),t.headers.delete(tt)),n(t))}}());const a=function processDownlevelPipeline(t){const n=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(t.factories.length){const r=t.factories.filter((t=>!n.some((n=>n(t)))));if(r.length){const t=r.some((t=>function isInjectorPolicyFactory(t){return"InjectorPolicyFactory"===t.constructor.name}(t)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(r),afterRetry:t}}}}(t);a&&o.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);const s=getCredentialFromPipeline(t);isTokenCredential(s)?o.addPolicy(bearerTokenAuthenticationPolicy({credential:s,scopes:r.audience??Ze,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"}):s instanceof StorageSharedKeyCredential&&o.addPolicy((s.accountName,s.accountKey,{name:"storageSharedKeyCredentialPolicy",sendRequest:async(t,n)=>n(t)}),{phase:"Sign"}),t._corePipeline=o}return{...r,allowInsecureConnection:!0,httpClient:i,pipeline:o}}function getCredentialFromPipeline(t){if(t._credential)return t._credential;let n=new AnonymousCredential;for(const r of t.factories)if(isTokenCredential(r.credential))n=r.credential;else if(isStorageSharedKeyCredential(r))return r;return n}function isStorageSharedKeyCredential(t){return t instanceof StorageSharedKeyCredential||"StorageSharedKeyCredential"===t.constructor.name}function isAnonymousCredential(t){return t instanceof AnonymousCredential||"AnonymousCredential"===t.constructor.name}function isCoreHttpBearerTokenFactory(t){return isTokenCredential(t.credential)}function isStorageBrowserPolicyFactory(t){return t instanceof StorageBrowserPolicyFactory_StorageBrowserPolicyFactory||"StorageBrowserPolicyFactory"===t.constructor.name}function isStorageRetryPolicyFactory(t){return t instanceof StorageRetryPolicyFactory||"StorageRetryPolicyFactory"===t.constructor.name}function isStorageTelemetryPolicyFactory(t){return"TelemetryPolicyFactory"===t.constructor.name}function isCoreHttpPolicyFactory(t){const n={log(t,n){},shouldLog:t=>!1},r=t.create({sendRequest:async t=>({request:t,headers:t.headers.clone(),status:500})},n).constructor.name;return["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"].some((t=>r.startsWith(t)))}var vt,St,wt,Et;!function(t){t.AES256="AES256"}(vt||(vt={})),function(t){t.Backup="backup"}(St||(St={})),function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"}(wt||(wt={})),function(t){t.AccountAlreadyExists="AccountAlreadyExists",t.AccountBeingCreated="AccountBeingCreated",t.AccountIsDisabled="AccountIsDisabled",t.AuthenticationFailed="AuthenticationFailed",t.AuthorizationFailure="AuthorizationFailure",t.ConditionHeadersNotSupported="ConditionHeadersNotSupported",t.ConditionNotMet="ConditionNotMet",t.EmptyMetadataKey="EmptyMetadataKey",t.InsufficientAccountPermissions="InsufficientAccountPermissions",t.InternalError="InternalError",t.InvalidAuthenticationInfo="InvalidAuthenticationInfo",t.InvalidHeaderValue="InvalidHeaderValue",t.InvalidHttpVerb="InvalidHttpVerb",t.InvalidInput="InvalidInput",t.InvalidMd5="InvalidMd5",t.InvalidMetadata="InvalidMetadata",t.InvalidQueryParameterValue="InvalidQueryParameterValue",t.InvalidRange="InvalidRange",t.InvalidResourceName="InvalidResourceName",t.InvalidUri="InvalidUri",t.InvalidXmlDocument="InvalidXmlDocument",t.InvalidXmlNodeValue="InvalidXmlNodeValue",t.Md5Mismatch="Md5Mismatch",t.MetadataTooLarge="MetadataTooLarge",t.MissingContentLengthHeader="MissingContentLengthHeader",t.MissingRequiredQueryParameter="MissingRequiredQueryParameter",t.MissingRequiredHeader="MissingRequiredHeader",t.MissingRequiredXmlNode="MissingRequiredXmlNode",t.MultipleConditionHeadersNotSupported="MultipleConditionHeadersNotSupported",t.OperationTimedOut="OperationTimedOut",t.OutOfRangeInput="OutOfRangeInput",t.OutOfRangeQueryParameterValue="OutOfRangeQueryParameterValue",t.RequestBodyTooLarge="RequestBodyTooLarge",t.ResourceTypeMismatch="ResourceTypeMismatch",t.RequestUrlFailedToParse="RequestUrlFailedToParse",t.ResourceAlreadyExists="ResourceAlreadyExists",t.ResourceNotFound="ResourceNotFound",t.ServerBusy="ServerBusy",t.UnsupportedHeader="UnsupportedHeader",t.UnsupportedXmlNode="UnsupportedXmlNode",t.UnsupportedQueryParameter="UnsupportedQueryParameter",t.UnsupportedHttpVerb="UnsupportedHttpVerb",t.AppendPositionConditionNotMet="AppendPositionConditionNotMet",t.BlobAlreadyExists="BlobAlreadyExists",t.BlobImmutableDueToPolicy="BlobImmutableDueToPolicy",t.BlobNotFound="BlobNotFound",t.BlobOverwritten="BlobOverwritten",t.BlobTierInadequateForContentLength="BlobTierInadequateForContentLength",t.BlobUsesCustomerSpecifiedEncryption="BlobUsesCustomerSpecifiedEncryption",t.BlockCountExceedsLimit="BlockCountExceedsLimit",t.BlockListTooLong="BlockListTooLong",t.CannotChangeToLowerTier="CannotChangeToLowerTier",t.CannotVerifyCopySource="CannotVerifyCopySource",t.ContainerAlreadyExists="ContainerAlreadyExists",t.ContainerBeingDeleted="ContainerBeingDeleted",t.ContainerDisabled="ContainerDisabled",t.ContainerNotFound="ContainerNotFound",t.ContentLengthLargerThanTierLimit="ContentLengthLargerThanTierLimit",t.CopyAcrossAccountsNotSupported="CopyAcrossAccountsNotSupported",t.CopyIdMismatch="CopyIdMismatch",t.FeatureVersionMismatch="FeatureVersionMismatch",t.IncrementalCopyBlobMismatch="IncrementalCopyBlobMismatch",t.IncrementalCopyOfEarlierVersionSnapshotNotAllowed="IncrementalCopyOfEarlierVersionSnapshotNotAllowed",t.IncrementalCopySourceMustBeSnapshot="IncrementalCopySourceMustBeSnapshot",t.InfiniteLeaseDurationRequired="InfiniteLeaseDurationRequired",t.InvalidBlobOrBlock="InvalidBlobOrBlock",t.InvalidBlobTier="InvalidBlobTier",t.InvalidBlobType="InvalidBlobType",t.InvalidBlockId="InvalidBlockId",t.InvalidBlockList="InvalidBlockList",t.InvalidOperation="InvalidOperation",t.InvalidPageRange="InvalidPageRange",t.InvalidSourceBlobType="InvalidSourceBlobType",t.InvalidSourceBlobUrl="InvalidSourceBlobUrl",t.InvalidVersionForPageBlobOperation="InvalidVersionForPageBlobOperation",t.LeaseAlreadyPresent="LeaseAlreadyPresent",t.LeaseAlreadyBroken="LeaseAlreadyBroken",t.LeaseIdMismatchWithBlobOperation="LeaseIdMismatchWithBlobOperation",t.LeaseIdMismatchWithContainerOperation="LeaseIdMismatchWithContainerOperation",t.LeaseIdMismatchWithLeaseOperation="LeaseIdMismatchWithLeaseOperation",t.LeaseIdMissing="LeaseIdMissing",t.LeaseIsBreakingAndCannotBeAcquired="LeaseIsBreakingAndCannotBeAcquired",t.LeaseIsBreakingAndCannotBeChanged="LeaseIsBreakingAndCannotBeChanged",t.LeaseIsBrokenAndCannotBeRenewed="LeaseIsBrokenAndCannotBeRenewed",t.LeaseLost="LeaseLost",t.LeaseNotPresentWithBlobOperation="LeaseNotPresentWithBlobOperation",t.LeaseNotPresentWithContainerOperation="LeaseNotPresentWithContainerOperation",t.LeaseNotPresentWithLeaseOperation="LeaseNotPresentWithLeaseOperation",t.MaxBlobSizeConditionNotMet="MaxBlobSizeConditionNotMet",t.NoAuthenticationInformation="NoAuthenticationInformation",t.NoPendingCopyOperation="NoPendingCopyOperation",t.OperationNotAllowedOnIncrementalCopyBlob="OperationNotAllowedOnIncrementalCopyBlob",t.PendingCopyOperation="PendingCopyOperation",t.PreviousSnapshotCannotBeNewer="PreviousSnapshotCannotBeNewer",t.PreviousSnapshotNotFound="PreviousSnapshotNotFound",t.PreviousSnapshotOperationNotSupported="PreviousSnapshotOperationNotSupported",t.SequenceNumberConditionNotMet="SequenceNumberConditionNotMet",t.SequenceNumberIncrementTooLarge="SequenceNumberIncrementTooLarge",t.SnapshotCountExceeded="SnapshotCountExceeded",t.SnapshotOperationRateExceeded="SnapshotOperationRateExceeded",t.SnapshotsPresent="SnapshotsPresent",t.SourceConditionNotMet="SourceConditionNotMet",t.SystemInUse="SystemInUse",t.TargetConditionNotMet="TargetConditionNotMet",t.UnauthorizedBlobOverwrite="UnauthorizedBlobOverwrite",t.BlobBeingRehydrated="BlobBeingRehydrated",t.BlobArchived="BlobArchived",t.BlobNotArchived="BlobNotArchived",t.AuthorizationSourceIPMismatch="AuthorizationSourceIPMismatch",t.AuthorizationProtocolMismatch="AuthorizationProtocolMismatch",t.AuthorizationPermissionMismatch="AuthorizationPermissionMismatch",t.AuthorizationServiceMismatch="AuthorizationServiceMismatch",t.AuthorizationResourceTypeMismatch="AuthorizationResourceTypeMismatch",t.BlobAccessTierNotSupportedForAccountType="BlobAccessTierNotSupportedForAccountType"}(Et||(Et={}));const Ct={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"}}}}},Pt={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"}}}}},At={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"}}}}},Tt={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"}}}}},Rt={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"}}}}},zt={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"}}}}},Mt={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}},kt={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},Lt={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"}}}}},It={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"}}}}},_t={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"}}}}}}},Bt={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"}}}}},qt={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"}}}}},Ot={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"}}}}},Dt={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"}}}}},Ht={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"}}}}},Ft={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"}}}}}}},Ut={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"}}}}},Vt={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"}}}}},jt={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"}}}}},$t={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"}}}}},Kt={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"}}}}}}},Wt={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"}}}}},Gt={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"}}}}},Xt={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","rehydrate-pending-to-cold"]}},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"}}}}},Qt={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"}}}}},Jt={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"}}}}}}},Yt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},Zt={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"}}}}}}},en={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"}}}}}}},tn={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"}}}}},nn={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"}}}}},rn={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"}}}}},on={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"}}}}},an={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"}}}}},sn={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},ln={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:"Dictionary",value:{type:{name:"any"}}}}}}},cn={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"}}}}},mn={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},dn={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"}}}}}}},pn={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"}}}}},un={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"}}}}},hn={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gn={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"}}}}},fn={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yn={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"}}}}},bn={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xn={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"}}}}},Nn={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vn={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"}}}}},Sn={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wn={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"}}}}},En={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Cn={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"}}}}},Pn={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},An={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"}}}}},Tn={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Rn={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"}}}}},zn={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Mn={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},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"}}}}},kn={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ln={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"}}}}},In={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_n={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"}}}}},Bn={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qn={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"}}}}},On={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Dn={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"}}}}},Hn={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Fn={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"}}}}},Un={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Vn={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"}}}}},jn={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$n={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"}}}}},Kn={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Wn={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"}}}}},Gn={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Xn={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"}}}}},Qn={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Jn={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"}}}}},Yn={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Zn={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"}}}}},er={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tr={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"}}}}},nr={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rr={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"}}}}},ir={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},or={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"}}}}},ar={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sr={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"}}}}},lr={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cr={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"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},mr={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dr={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",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",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"]}},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"}}}}},pr={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ur={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",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},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"}}}}},hr={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gr={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"}}}}},fr={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yr={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"}}}}},br={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xr={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"}}}}},Nr={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vr={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"}}}}},Sr={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wr={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"]}}}}},Er={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Cr={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"}}}}},Pr={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ar={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"}}}}},Tr={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Rr={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"}}}}},zr={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Mr={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"}}}}},kr={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Lr={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"}}}}},Ir={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_r={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"}}}}},Br={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qr={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"}}}}},Or={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Dr={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"}}}}},Hr={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Fr={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"}}}}},Ur={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Vr={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"}}}}},jr={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},$r={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"}}}}},Kr={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},Wr={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"}}}}},Gr={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Xr={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"}}}}},Qr={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Jr={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"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},Yr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Zr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"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"}}}}},ei={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ti={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"}}}}},ni={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ri={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"}}}}},ii={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oi={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"}}}}},ai={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},si={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"}}}}},li={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ci={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"}}}}},mi={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},di={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"}}}}},pi={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},ui={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"}}}}},hi={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gi={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"}}}}},fi={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yi={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"}}}}},bi={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xi={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"}}}}},Ni={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vi={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"}}}}},Si={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wi={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"}}}}},Ei={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ci={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"}}}}},Pi={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ai={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"}}}}},Ti={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},Ri={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"}}}}},zi={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Mi={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"}}}}},ki={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Li={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"}}}}},Ii={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},_i={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"}}}}},Bi={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qi={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"}}}}},Oi={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},Di={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"}}}}},Hi={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Fi={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"}}}}},Ui={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Vi={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},ji={parameterPath:"blobServiceProperties",mapper:Ct},$i={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Ki={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},Wi={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Gi={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Xi={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},Qi={parameterPath:"version",mapper:{defaultValue:"2025-11-05",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},Ji={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},Yi={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Zi={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eo={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},to={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},no={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},ro={parameterPath:"keyInfo",mapper:qt},io={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},oo={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},ao={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},so={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},lo={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},co={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},mo={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},po={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},uo={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},ho={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},go={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},fo={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},yo={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},bo={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},xo={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},No={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vo={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},So={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},wo={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},Eo={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},Co={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Po={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},Ao={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},To={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Ro={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},zo={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Mo={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},ko={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:"CSV"},Lo={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Io={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},_o={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Bo={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},qo={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},Oo={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},Do={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},Ho={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Fo={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},Uo={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},Vo={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},jo={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},$o={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},Ko={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Wo={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},Go={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Xo={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Qo={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},Jo={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},Yo={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"]}}},Zo={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},ea={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},na={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},ia={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},oa={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},aa={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},sa={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},la={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},ca={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},ma={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},da={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},pa={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},ha={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},ga={parameterPath:["options","queryRequest"],mapper:an},fa={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ba={parameterPath:["options","tags"],mapper:Ft},Na={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Sa={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},Pa={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},Ta={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Ra={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Ma={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},ka={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},La={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},_a={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},qa={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},Oa={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},Fa={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},Ua={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Va={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},ja={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$a={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ka={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},Wa={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},Xa={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},Qa={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},Ja={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ya={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Za={parameterPath:"blocks",mapper:Zt},es={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}};class ServiceImpl{client;constructor(t){this.client=t}setProperties(t,n){return this.client.sendOperationRequest({blobServiceProperties:t,options:n},ns)}getProperties(t){return this.client.sendOperationRequest({options:t},rs)}getStatistics(t){return this.client.sendOperationRequest({options:t},is)}listContainersSegment(t){return this.client.sendOperationRequest({options:t},os)}getUserDelegationKey(t,n){return this.client.sendOperationRequest({keyInfo:t,options:n},as)}getAccountInfo(t){return this.client.sendOperationRequest({options:t},ss)}submitBatch(t,n,r,i){return this.client.sendOperationRequest({contentLength:t,multipartContentType:n,body:r,options:i},ls)}filterBlobs(t){return this.client.sendOperationRequest({options:t},cs)}}const ts=createSerializer(i,!0),ns={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:un},default:{bodyMapper:Mt,headersMapper:hn}},requestBody:ji,queryParameters:[Wi,Gi,Xi],urlParameters:[Ki],headerParameters:[Vi,$i,Qi,Ji],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ts},rs={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Ct,headersMapper:gn},default:{bodyMapper:Mt,headersMapper:fn}},queryParameters:[Wi,Gi,Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ts},is={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:kt,headersMapper:yn},default:{bodyMapper:Mt,headersMapper:bn}},queryParameters:[Wi,Xi,{parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ts},os={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:It,headersMapper:xn},default:{bodyMapper:Mt,headersMapper:Nn}},queryParameters:[Xi,Zi,eo,to,no,{parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ts},as={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:Ot,headersMapper:vn},default:{bodyMapper:Mt,headersMapper:Sn}},requestBody:ro,queryParameters:[Wi,Xi,{parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Vi,$i,Qi,Ji],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ts},ss={path:"/",httpMethod:"GET",responses:{200:{headersMapper:wn},default:{bodyMapper:Mt,headersMapper:En}},queryParameters:[Gi,Xi,io],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ts},ls={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Cn},default:{bodyMapper:Mt,headersMapper:Pn}},requestBody:oo,queryParameters:[Xi,ao],urlParameters:[Ki],headerParameters:[$i,Qi,Ji,so,lo],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ts},cs={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Dt,headersMapper:An},default:{bodyMapper:Mt,headersMapper:Tn}},queryParameters:[Xi,to,no,co,mo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ts};class ContainerImpl{client;constructor(t){this.client=t}create(t){return this.client.sendOperationRequest({options:t},ds)}getProperties(t){return this.client.sendOperationRequest({options:t},ps)}delete(t){return this.client.sendOperationRequest({options:t},us)}setMetadata(t){return this.client.sendOperationRequest({options:t},hs)}getAccessPolicy(t){return this.client.sendOperationRequest({options:t},gs)}setAccessPolicy(t){return this.client.sendOperationRequest({options:t},fs)}restore(t){return this.client.sendOperationRequest({options:t},ys)}rename(t,n){return this.client.sendOperationRequest({sourceContainerName:t,options:n},bs)}submitBatch(t,n,r,i){return this.client.sendOperationRequest({contentLength:t,multipartContentType:n,body:r,options:i},xs)}filterBlobs(t){return this.client.sendOperationRequest({options:t},Ns)}acquireLease(t){return this.client.sendOperationRequest({options:t},vs)}releaseLease(t,n){return this.client.sendOperationRequest({leaseId:t,options:n},Ss)}renewLease(t,n){return this.client.sendOperationRequest({leaseId:t,options:n},ws)}breakLease(t){return this.client.sendOperationRequest({options:t},Es)}changeLease(t,n,r){return this.client.sendOperationRequest({leaseId:t,proposedLeaseId:n,options:r},Cs)}listBlobFlatSegment(t){return this.client.sendOperationRequest({options:t},Ps)}listBlobHierarchySegment(t,n){return this.client.sendOperationRequest({delimiter:t,options:n},As)}getAccountInfo(t){return this.client.sendOperationRequest({options:t},Ts)}}const ms=createSerializer(i,!0),ds={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Rn},default:{bodyMapper:Mt,headersMapper:zn}},queryParameters:[Xi,po],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,uo,ho,{parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},{parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}}],isXML:!0,serializer:ms},ps={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Mn},default:{bodyMapper:Mt,headersMapper:kn}},queryParameters:[Xi,po],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go],isXML:!0,serializer:ms},us={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Ln},default:{bodyMapper:Mt,headersMapper:In}},queryParameters:[Xi,po],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo],isXML:!0,serializer:ms},hs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:_n},default:{bodyMapper:Mt,headersMapper:Bn}},queryParameters:[Xi,po,bo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,uo,go,fo],isXML:!0,serializer:ms},gs={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:qn},default:{bodyMapper:Mt,headersMapper:On}},queryParameters:[Xi,po,xo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go],isXML:!0,serializer:ms},fs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Dn},default:{bodyMapper:Mt,headersMapper:Hn}},requestBody:{parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},queryParameters:[Xi,po,xo],urlParameters:[Ki],headerParameters:[Vi,$i,Qi,Ji,ho,go,fo,yo],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ms},ys={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Fn},default:{bodyMapper:Mt,headersMapper:Un}},queryParameters:[Xi,po,No],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,{parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},{parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}}],isXML:!0,serializer:ms},bs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Vn},default:{bodyMapper:Mt,headersMapper:jn}},queryParameters:[Xi,po,{parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,{parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},{parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}}],isXML:!0,serializer:ms},xs={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:$n},default:{bodyMapper:Mt,headersMapper:Kn}},requestBody:oo,queryParameters:[Xi,ao,po],urlParameters:[Ki],headerParameters:[$i,Qi,Ji,so,lo],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ms},Ns={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Dt,headersMapper:Wn},default:{bodyMapper:Mt,headersMapper:Gn}},queryParameters:[Xi,to,no,co,mo,po],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ms},vs={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Xn},default:{bodyMapper:Mt,headersMapper:Qn}},queryParameters:[Xi,po,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,So,wo,Eo],isXML:!0,serializer:ms},Ss={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Jn},default:{bodyMapper:Mt,headersMapper:Yn}},queryParameters:[Xi,po,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Co,Po],isXML:!0,serializer:ms},ws={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Zn},default:{bodyMapper:Mt,headersMapper:er}},queryParameters:[Xi,po,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Po,Ao],isXML:!0,serializer:ms},Es={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:tr},default:{bodyMapper:Mt,headersMapper:nr}},queryParameters:[Xi,po,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,To,Ro],isXML:!0,serializer:ms},Cs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:rr},default:{bodyMapper:Mt,headersMapper:ir}},queryParameters:[Xi,po,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Po,zo,Mo],isXML:!0,serializer:ms},Ps={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:$t,headersMapper:or},default:{bodyMapper:Mt,headersMapper:ar}},queryParameters:[Xi,Zi,eo,to,no,po,ko],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ms},As={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Qt,headersMapper:sr},default:{bodyMapper:Mt,headersMapper:lr}},queryParameters:[Xi,Zi,eo,to,no,po,ko,{parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ms},Ts={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:cr},default:{bodyMapper:Mt,headersMapper:mr}},queryParameters:[Gi,Xi,io],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:ms};class BlobImpl{client;constructor(t){this.client=t}download(t){return this.client.sendOperationRequest({options:t},zs)}getProperties(t){return this.client.sendOperationRequest({options:t},Ms)}delete(t){return this.client.sendOperationRequest({options:t},ks)}undelete(t){return this.client.sendOperationRequest({options:t},Ls)}setExpiry(t,n){return this.client.sendOperationRequest({expiryOptions:t,options:n},Is)}setHttpHeaders(t){return this.client.sendOperationRequest({options:t},_s)}setImmutabilityPolicy(t){return this.client.sendOperationRequest({options:t},Bs)}deleteImmutabilityPolicy(t){return this.client.sendOperationRequest({options:t},qs)}setLegalHold(t,n){return this.client.sendOperationRequest({legalHold:t,options:n},Os)}setMetadata(t){return this.client.sendOperationRequest({options:t},Ds)}acquireLease(t){return this.client.sendOperationRequest({options:t},Hs)}releaseLease(t,n){return this.client.sendOperationRequest({leaseId:t,options:n},Fs)}renewLease(t,n){return this.client.sendOperationRequest({leaseId:t,options:n},Us)}changeLease(t,n,r){return this.client.sendOperationRequest({leaseId:t,proposedLeaseId:n,options:r},Vs)}breakLease(t){return this.client.sendOperationRequest({options:t},js)}createSnapshot(t){return this.client.sendOperationRequest({options:t},$s)}startCopyFromURL(t,n){return this.client.sendOperationRequest({copySource:t,options:n},Ks)}copyFromURL(t,n){return this.client.sendOperationRequest({copySource:t,options:n},Ws)}abortCopyFromURL(t,n){return this.client.sendOperationRequest({copyId:t,options:n},Gs)}setTier(t,n){return this.client.sendOperationRequest({tier:t,options:n},Xs)}getAccountInfo(t){return this.client.sendOperationRequest({options:t},Qs)}query(t){return this.client.sendOperationRequest({options:t},Js)}getTags(t){return this.client.sendOperationRequest({options:t},Ys)}setTags(t){return this.client.sendOperationRequest({options:t},Zs)}}const Rs=createSerializer(i,!0),zs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:dr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:dr},default:{bodyMapper:Mt,headersMapper:pr}},queryParameters:[Xi,Lo,Io],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,_o,{parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},{parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},Bo,qo,Oo,Do,Ho,Fo],isXML:!0,serializer:Rs},Ms={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ur},default:{bodyMapper:Mt,headersMapper:hr}},queryParameters:[Xi,Lo,Io],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo],isXML:!0,serializer:Rs},ks={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:gr},default:{bodyMapper:Mt,headersMapper:fr}},queryParameters:[Xi,Lo,Io,{parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,Do,Ho,Fo,{parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}}],isXML:!0,serializer:Rs},Ls={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yr},default:{bodyMapper:Mt,headersMapper:br}},queryParameters:[Xi,No],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:Rs},Is={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xr},default:{bodyMapper:Mt,headersMapper:Nr}},queryParameters:[Xi,{parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,{parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},{parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}}],isXML:!0,serializer:Rs},_s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vr},default:{bodyMapper:Mt,headersMapper:Sr}},queryParameters:[Gi,Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,Do,Ho,Fo,Uo,Vo,jo,$o,Ko,Wo],isXML:!0,serializer:Rs},Bs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wr},default:{bodyMapper:Mt,headersMapper:Er}},queryParameters:[Xi,Lo,Io,Go],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,yo,Xo,Qo],isXML:!0,serializer:Rs},qs={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Cr},default:{bodyMapper:Mt,headersMapper:Pr}},queryParameters:[Xi,Lo,Io,Go],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:Rs},Os={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ar},default:{bodyMapper:Mt,headersMapper:Tr}},queryParameters:[Xi,Lo,Io,{parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,{parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}],isXML:!0,serializer:Rs},Ds={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rr},default:{bodyMapper:Mt,headersMapper:zr}},queryParameters:[Xi,bo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Jo],isXML:!0,serializer:Rs},Hs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:Mt,headersMapper:kr}},queryParameters:[Xi,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,So,wo,Eo,Do,Ho,Fo],isXML:!0,serializer:Rs},Fs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lr},default:{bodyMapper:Mt,headersMapper:Ir}},queryParameters:[Xi,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Co,Po,Do,Ho,Fo],isXML:!0,serializer:Rs},Us={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_r},default:{bodyMapper:Mt,headersMapper:Br}},queryParameters:[Xi,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Po,Ao,Do,Ho,Fo],isXML:!0,serializer:Rs},Vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:qr},default:{bodyMapper:Mt,headersMapper:Or}},queryParameters:[Xi,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Po,zo,Mo,Do,Ho,Fo],isXML:!0,serializer:Rs},js={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Dr},default:{bodyMapper:Mt,headersMapper:Hr}},queryParameters:[Xi,vo],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,To,Ro,Do,Ho,Fo],isXML:!0,serializer:Rs},$s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:Mt,headersMapper:Ur}},queryParameters:[Xi,{parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Jo],isXML:!0,serializer:Rs},Ks={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Vr},default:{bodyMapper:Mt,headersMapper:jr}},queryParameters:[Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,uo,go,fo,yo,Do,Ho,Fo,Xo,Qo,Yo,Zo,ea,na,ia,oa,aa,sa,la,{parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},ca],isXML:!0,serializer:Rs},Ws={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:$r},default:{bodyMapper:Mt,headersMapper:Kr}},queryParameters:[Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,uo,go,fo,yo,Do,Ho,Fo,Xo,Qo,Jo,Yo,ea,na,ia,oa,sa,la,ca,{parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},ma,da,pa,ha],isXML:!0,serializer:Rs},Gs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Wr},default:{bodyMapper:Mt,headersMapper:Gr}},queryParameters:[Xi,{parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},{parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,{parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}}],isXML:!0,serializer:Rs},Xs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xr},202:{headersMapper:Xr},default:{bodyMapper:Mt,headersMapper:Qr}},queryParameters:[Xi,Lo,Io,{parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,Fo,Zo,{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"]}}}],isXML:!0,serializer:Rs},Qs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Jr},default:{bodyMapper:Mt,headersMapper:Yr}},queryParameters:[Gi,Xi,io],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi],isXML:!0,serializer:Rs},Js={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Zr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Zr},default:{bodyMapper:Mt,headersMapper:ei}},requestBody:ga,queryParameters:[Xi,Lo,{parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Vi,$i,Qi,Ji,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rs},Ys={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ft,headersMapper:ti},default:{bodyMapper:Mt,headersMapper:ni}},queryParameters:[Xi,Lo,Io,fa],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,Fo],isXML:!0,serializer:Rs},Zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:ri},default:{bodyMapper:Mt,headersMapper:ii}},requestBody:ba,queryParameters:[Xi,Io,fa],urlParameters:[Ki],headerParameters:[Vi,$i,Qi,Ji,go,Fo,Na,Sa],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rs};class PageBlobImpl{client;constructor(t){this.client=t}create(t,n,r){return this.client.sendOperationRequest({contentLength:t,blobContentLength:n,options:r},tl)}uploadPages(t,n,r){return this.client.sendOperationRequest({contentLength:t,body:n,options:r},nl)}clearPages(t,n){return this.client.sendOperationRequest({contentLength:t,options:n},rl)}uploadPagesFromURL(t,n,r,i,o){return this.client.sendOperationRequest({sourceUrl:t,sourceRange:n,contentLength:r,range:i,options:o},il)}getPageRanges(t){return this.client.sendOperationRequest({options:t},ol)}getPageRangesDiff(t){return this.client.sendOperationRequest({options:t},al)}resize(t,n){return this.client.sendOperationRequest({blobContentLength:t,options:n},sl)}updateSequenceNumber(t,n){return this.client.sendOperationRequest({sequenceNumberAction:t,options:n},ll)}copyIncremental(t,n){return this.client.sendOperationRequest({copySource:t,options:n},cl)}}const el=createSerializer(i,!0),tl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:oi},default:{bodyMapper:Mt,headersMapper:ai}},queryParameters:[Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Uo,Vo,jo,$o,Ko,Wo,Xo,Qo,Jo,Yo,la,ca,{parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},Pa,Ta],isXML:!0,serializer:el},nl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:si},default:{bodyMapper:Mt,headersMapper:li}},requestBody:Ma,queryParameters:[Xi,La],urlParameters:[Ki],headerParameters:[Qi,Ji,so,go,fo,yo,_o,Bo,qo,Oo,Do,Ho,Fo,Jo,Na,Sa,Ra,ka,_a,qa,Oa,Fa],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:el},rl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ci},default:{bodyMapper:Mt,headersMapper:mi}},queryParameters:[Xi,La],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,go,fo,yo,_o,Bo,qo,Oo,Do,Ho,Fo,Jo,qa,Oa,Fa,{parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}}],isXML:!0,serializer:el},il={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:di},default:{bodyMapper:Mt,headersMapper:pi}},queryParameters:[Xi,La],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Jo,ea,na,ia,oa,ma,da,ha,_a,qa,Oa,Fa,Ua,{parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Va,{parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}}],isXML:!0,serializer:el},ol={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:nn,headersMapper:ui},default:{bodyMapper:Mt,headersMapper:hi}},queryParameters:[Xi,to,no,Lo,ja],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,_o,Do,Ho,Fo],isXML:!0,serializer:el},al={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:nn,headersMapper:gi},default:{bodyMapper:Mt,headersMapper:fi}},queryParameters:[Xi,to,no,Lo,ja,{parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,_o,Do,Ho,Fo,{parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}}],isXML:!0,serializer:el},sl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yi},default:{bodyMapper:Mt,headersMapper:bi}},queryParameters:[Gi,Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Jo,Pa],isXML:!0,serializer:el},ll={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xi},default:{bodyMapper:Mt,headersMapper:Ni}},queryParameters:[Gi,Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,Do,Ho,Fo,Ta,{parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}}],isXML:!0,serializer:el},cl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:vi},default:{bodyMapper:Mt,headersMapper:Si}},queryParameters:[Xi,{parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,fo,yo,Do,Ho,Fo,sa],isXML:!0,serializer:el};class AppendBlobImpl{client;constructor(t){this.client=t}create(t,n){return this.client.sendOperationRequest({contentLength:t,options:n},dl)}appendBlock(t,n,r){return this.client.sendOperationRequest({contentLength:t,body:n,options:r},pl)}appendBlockFromUrl(t,n,r){return this.client.sendOperationRequest({sourceUrl:t,contentLength:n,options:r},ul)}seal(t){return this.client.sendOperationRequest({options:t},hl)}}const ml=createSerializer(i,!0),dl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:wi},default:{bodyMapper:Mt,headersMapper:Ei}},queryParameters:[Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Uo,Vo,jo,$o,Ko,Wo,Xo,Qo,Jo,la,ca,{parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}}],isXML:!0,serializer:ml},pl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ci},default:{bodyMapper:Mt,headersMapper:Pi}},requestBody:Ma,queryParameters:[Xi,$a],urlParameters:[Ki],headerParameters:[Qi,Ji,so,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Jo,Na,Sa,Ra,ka,Ka,Wa],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:ml},ul={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ai},default:{bodyMapper:Mt,headersMapper:Ti}},queryParameters:[Xi,$a],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Jo,ea,na,ia,oa,ma,da,ha,Na,Ua,Va,Ka,Wa,Xa],isXML:!0,serializer:ml},hl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ri},default:{bodyMapper:Mt,headersMapper:zi}},queryParameters:[Xi,{parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,fo,yo,Do,Ho,Wa],isXML:!0,serializer:ml};class BlockBlobImpl{client;constructor(t){this.client=t}upload(t,n,r){return this.client.sendOperationRequest({contentLength:t,body:n,options:r},fl)}putBlobFromUrl(t,n,r){return this.client.sendOperationRequest({contentLength:t,copySource:n,options:r},yl)}stageBlock(t,n,r,i){return this.client.sendOperationRequest({blockId:t,contentLength:n,body:r,options:i},bl)}stageBlockFromURL(t,n,r,i){return this.client.sendOperationRequest({blockId:t,contentLength:n,sourceUrl:r,options:i},xl)}commitBlockList(t,n){return this.client.sendOperationRequest({blocks:t,options:n},Nl)}getBlockList(t,n){return this.client.sendOperationRequest({listType:t,options:n},vl)}}const gl=createSerializer(i,!0),fl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mi},default:{bodyMapper:Mt,headersMapper:ki}},requestBody:Ma,queryParameters:[Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,so,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Uo,Vo,jo,$o,Ko,Wo,Xo,Qo,Jo,Yo,la,ca,Na,Sa,Ra,ka,Qa],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:gl},yl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Li},default:{bodyMapper:Mt,headersMapper:Ii}},queryParameters:[Xi],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Uo,Vo,jo,$o,Ko,Wo,Jo,Yo,ea,na,ia,oa,aa,sa,la,ma,da,pa,ha,Na,Qa,{parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}}],isXML:!0,serializer:gl},bl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_i},default:{bodyMapper:Mt,headersMapper:Bi}},requestBody:Ma,queryParameters:[Xi,Ja,Ya],urlParameters:[Ki],headerParameters:[Qi,Ji,so,go,Bo,qo,Oo,Jo,Na,Sa,Ra,ka],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:gl},xl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qi},default:{bodyMapper:Mt,headersMapper:Oi}},queryParameters:[Xi,Ja,Ya],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,so,go,Bo,qo,Oo,Jo,ea,na,ia,oa,ma,da,ha,Ua,Va,Xa],isXML:!0,serializer:gl},Nl={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Di},default:{bodyMapper:Mt,headersMapper:Hi}},requestBody:Za,queryParameters:[Xi,es],urlParameters:[Ki],headerParameters:[Vi,$i,Qi,Ji,uo,go,fo,yo,Bo,qo,Oo,Do,Ho,Fo,Uo,Vo,jo,$o,Ko,Wo,Xo,Qo,Jo,Yo,la,ca,Na,Sa],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:gl},vl={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:en,headersMapper:Fi},default:{bodyMapper:Mt,headersMapper:Ui}},queryParameters:[Xi,Lo,es,{parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}],urlParameters:[Ki],headerParameters:[Qi,Ji,Yi,go,Fo],isXML:!0,serializer:gl};class StorageClient extends ExtendedServiceClient{url;version;constructor(t,n){if(void 0===t)throw new Error("'url' cannot be null");n||(n={});const r="azsdk-js-azure-storage-blob/12.29.1",i=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${r}`:`${r}`;super({requestContentType:"application/json; charset=utf-8",...n,userAgentOptions:{userAgentPrefix:i},endpoint:n.endpoint??n.baseUri??"{url}"}),this.url=t,this.version=n.version||"2025-11-05",this.service=new ServiceImpl(this),this.container=new ContainerImpl(this),this.blob=new BlobImpl(this),this.pageBlob=new PageBlobImpl(this),this.appendBlob=new AppendBlobImpl(this),this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(t,n){const r={...n};return"/{containerName}"!==r.path&&"/{containerName}/{blob}"!==r.path||(r.path=""),super.sendOperationRequest(t,r)}}class StorageClient_StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(t,n){this.url=escapeURLPath(t),this.accountName=getAccountNameFromUrl(t),this.pipeline=n,this.storageClientContext=new StorageContextClient(this.url,getCoreClientOptions(n)),this.isHttps=iEqual(function getURLScheme(t){try{const n=new URL(t);return n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol}catch(Il){return}}(this.url)||"","https"),this.credential=getCredentialFromPipeline(n);this.storageClientContext.requestContentType=void 0}}const Sl=createTracingClient({packageName:"@azure/storage-blob",packageVersion:We,namespace:"Microsoft.Storage"});class BlobSASPermissions{static parse(t){const n=new BlobSASPermissions;for(const r of t)switch(r){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"x":n.deleteVersion=!0;break;case"t":n.tag=!0;break;case"m":n.move=!0;break;case"e":n.execute=!0;break;case"i":n.setImmutabilityPolicy=!0;break;case"y":n.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return n}static from(t){const n=new BlobSASPermissions;return t.read&&(n.read=!0),t.add&&(n.add=!0),t.create&&(n.create=!0),t.write&&(n.write=!0),t.delete&&(n.delete=!0),t.deleteVersion&&(n.deleteVersion=!0),t.tag&&(n.tag=!0),t.move&&(n.move=!0),t.execute&&(n.execute=!0),t.setImmutabilityPolicy&&(n.setImmutabilityPolicy=!0),t.permanentDelete&&(n.permanentDelete=!0),n}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;toString(){const t=[];return this.read&&t.push("r"),this.add&&t.push("a"),this.create&&t.push("c"),this.write&&t.push("w"),this.delete&&t.push("d"),this.deleteVersion&&t.push("x"),this.tag&&t.push("t"),this.move&&t.push("m"),this.execute&&t.push("e"),this.setImmutabilityPolicy&&t.push("i"),this.permanentDelete&&t.push("y"),t.join("")}}class ContainerSASPermissions{static parse(t){const n=new ContainerSASPermissions;for(const r of t)switch(r){case"r":n.read=!0;break;case"a":n.add=!0;break;case"c":n.create=!0;break;case"w":n.write=!0;break;case"d":n.delete=!0;break;case"l":n.list=!0;break;case"t":n.tag=!0;break;case"x":n.deleteVersion=!0;break;case"m":n.move=!0;break;case"e":n.execute=!0;break;case"i":n.setImmutabilityPolicy=!0;break;case"y":n.permanentDelete=!0;break;case"f":n.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return n}static from(t){const n=new ContainerSASPermissions;return t.read&&(n.read=!0),t.add&&(n.add=!0),t.create&&(n.create=!0),t.write&&(n.write=!0),t.delete&&(n.delete=!0),t.list&&(n.list=!0),t.deleteVersion&&(n.deleteVersion=!0),t.tag&&(n.tag=!0),t.move&&(n.move=!0),t.execute&&(n.execute=!0),t.setImmutabilityPolicy&&(n.setImmutabilityPolicy=!0),t.permanentDelete&&(n.permanentDelete=!0),t.filterByTags&&(n.filterByTags=!0),n}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;list=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;filterByTags=!1;toString(){const t=[];return this.read&&t.push("r"),this.add&&t.push("a"),this.create&&t.push("c"),this.write&&t.push("w"),this.delete&&t.push("d"),this.deleteVersion&&t.push("x"),this.list&&t.push("l"),this.tag&&t.push("t"),this.move&&t.push("m"),this.execute&&t.push("e"),this.setImmutabilityPolicy&&t.push("i"),this.permanentDelete&&t.push("y"),this.filterByTags&&t.push("f"),t.join("")}}class UserDelegationKeyCredential{}function ipRangeToString(t){return t.end?`${t.start}-${t.end}`:t.start}var wl;!function(t){t.Https="https",t.HttpsAndHttp="https,http"}(wl||(wl={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}constructor(t,n,r,i,o,a,s,l,c,m,p,u,h,y,x,v,w,E,C,A){this.version=t,this.signature=n,void 0!==r&&"string"!=typeof r?(this.permissions=r.permissions,this.services=r.services,this.resourceTypes=r.resourceTypes,this.protocol=r.protocol,this.startsOn=r.startsOn,this.expiresOn=r.expiresOn,this.ipRangeInner=r.ipRange,this.identifier=r.identifier,this.encryptionScope=r.encryptionScope,this.resource=r.resource,this.cacheControl=r.cacheControl,this.contentDisposition=r.contentDisposition,this.contentEncoding=r.contentEncoding,this.contentLanguage=r.contentLanguage,this.contentType=r.contentType,r.userDelegationKey&&(this.signedOid=r.userDelegationKey.signedObjectId,this.signedTenantId=r.userDelegationKey.signedTenantId,this.signedStartsOn=r.userDelegationKey.signedStartsOn,this.signedExpiresOn=r.userDelegationKey.signedExpiresOn,this.signedService=r.userDelegationKey.signedService,this.signedVersion=r.userDelegationKey.signedVersion,this.preauthorizedAgentObjectId=r.preauthorizedAgentObjectId,this.correlationId=r.correlationId)):(this.services=i,this.resourceTypes=o,this.expiresOn=l,this.permissions=r,this.protocol=a,this.startsOn=s,this.ipRangeInner=c,this.encryptionScope=A,this.identifier=m,this.resource=p,this.cacheControl=u,this.contentDisposition=h,this.contentEncoding=y,this.contentLanguage=x,this.contentType=v,w&&(this.signedOid=w.signedObjectId,this.signedTenantId=w.signedTenantId,this.signedStartsOn=w.signedStartsOn,this.signedExpiresOn=w.signedExpiresOn,this.signedService=w.signedService,this.signedVersion=w.signedVersion,this.preauthorizedAgentObjectId=E,this.correlationId=C))}toString(){const t=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"],n=[];for(const r of t)switch(r){case"sv":this.tryAppendQueryParameter(n,r,this.version);break;case"ss":this.tryAppendQueryParameter(n,r,this.services);break;case"srt":this.tryAppendQueryParameter(n,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(n,r,this.protocol);break;case"st":this.tryAppendQueryParameter(n,r,this.startsOn?truncatedISO8061Date(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(n,r,this.expiresOn?truncatedISO8061Date(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(n,r,this.ipRange?ipRangeToString(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(n,r,this.identifier);break;case"ses":this.tryAppendQueryParameter(n,r,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(n,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(n,r,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(n,r,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(n,r,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(n,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(n,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(n,r,this.resource);break;case"sp":this.tryAppendQueryParameter(n,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(n,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(n,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(n,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(n,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(n,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(n,r,this.contentType);break;case"saoid":this.tryAppendQueryParameter(n,r,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(n,r,this.correlationId)}return n.join("&")}tryAppendQueryParameter(t,n,r){r&&(n=encodeURIComponent(n),r=encodeURIComponent(r),n.length>0&&r.length>0&&t.push(`${n}=${r}`))}}function generateBlobSASQueryParameters(t,n,r){return generateBlobSASQueryParametersInternal(t,n,r).sasQueryParameters}function generateBlobSASQueryParametersInternal(t,n,r){const i=t.version?t.version:Ge,o=n instanceof StorageSharedKeyCredential?n:void 0;let a;if(void 0===o&&void 0!==r&&(a=new UserDelegationKeyCredential(r,n)),void 0===o&&void 0===a)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(i>="2020-12-06")return void 0!==o?function generateBlobSASQueryParameters20201206(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!(t.identifier||t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r,i="c",o=t.snapshotTime;t.blobName&&(i="b",t.snapshotTime?i="bs":t.versionId&&(i="bv",o=t.versionId));t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,i,o,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join("\n"),s=n.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:a}}(t,o):i>="2025-07-05"?function generateBlobSASQueryParametersUDK20250705(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,i="c",o=t.snapshotTime;t.blobName&&(i="b",t.snapshotTime?i="bs":t.versionId&&(i="bv",o=t.versionId));t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?truncatedISO8061Date(n.userDelegationKey.signedStartsOn,!1):"",n.userDelegationKey.signedExpiresOn?truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,!1):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,void 0,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,i,o,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join("\n"),s=n.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,n.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:a}}(t,a):function generateBlobSASQueryParametersUDK20201206(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,i="c",o=t.snapshotTime;t.blobName&&(i="b",t.snapshotTime?i="bs":t.versionId&&(i="bv",o=t.versionId));t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?truncatedISO8061Date(n.userDelegationKey.signedStartsOn,!1):"",n.userDelegationKey.signedExpiresOn?truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,!1):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,i,o,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join("\n"),s=n.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,n.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:a}}(t,a);if(i>="2018-11-09")return void 0!==o?function generateBlobSASQueryParameters20181109(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!(t.identifier||t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r,i="c",o=t.snapshotTime;t.blobName&&(i="b",t.snapshotTime?i="bs":t.versionId&&(i="bv",o=t.versionId));t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,i,o,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join("\n"),s=n.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:a}}(t,o):i>="2020-02-10"?function generateBlobSASQueryParametersUDK20200210(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,i="c",o=t.snapshotTime;t.blobName&&(i="b",t.snapshotTime?i="bs":t.versionId&&(i="bv",o=t.versionId));t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?truncatedISO8061Date(n.userDelegationKey.signedStartsOn,!1):"",n.userDelegationKey.signedExpiresOn?truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,!1):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,i,o,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join("\n"),s=n.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,n.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:a}}(t,a):function generateBlobSASQueryParametersUDK20181109(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,i="c",o=t.snapshotTime;t.blobName&&(i="b",t.snapshotTime?i="bs":t.versionId&&(i="bv",o=t.versionId));t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const a=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?truncatedISO8061Date(n.userDelegationKey.signedStartsOn,!1):"",n.userDelegationKey.signedExpiresOn?truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,!1):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,i,o,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join("\n"),s=n.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,n.userDelegationKey),stringToSign:a}}(t,a);if(i>="2015-04-05"){if(void 0!==o)return function generateBlobSASQueryParameters20150405(t,n){if(t=SASSignatureValuesSanityCheckAndAutofill(t),!(t.identifier||t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r,i="c";t.blobName&&(i="b");t.permissions&&(r=t.blobName?BlobSASPermissions.parse(t.permissions.toString()).toString():ContainerSASPermissions.parse(t.permissions.toString()).toString());const o=[r||"",t.startsOn?truncatedISO8061Date(t.startsOn,!1):"",t.expiresOn?truncatedISO8061Date(t.expiresOn,!1):"",getCanonicalName(n.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ipRangeToString(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join("\n"),a=n.computeHMACSHA256(o);return{sasQueryParameters:new SASQueryParameters(t.version,a,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}(t,o);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}function getCanonicalName(t,n,r){const i=[`/blob/${t}/${n}`];return r&&i.push(`/${r}`),i.join("")}function SASSignatureValuesSanityCheckAndAutofill(t){const n=t.version?t.version:Ge;if(t.snapshotTime&&n<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(void 0===t.blobName&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&n<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(void 0===t.blobName&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&n<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&n<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&n<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&n<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(n<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(n<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(n<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&n<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=n,t}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(t,n){const r=t.storageClientContext;this._url=t.url,void 0===t.name?(this._isContainer=!0,this._containerOrBlobOperation=r.container):(this._isContainer=!1,this._containerOrBlobOperation=r.blob),n||(n=browser_uuidUtils_randomUUID()),this._leaseId=n}async acquireLease(t,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==it||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==it||n.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Sl.withSpan("BlobLeaseClient-acquireLease",n,(async r=>assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:n.abortSignal,duration:t,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:r.tracingOptions}))))}async changeLease(t,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==it||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==it||n.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Sl.withSpan("BlobLeaseClient-changeLease",n,(async r=>{const i=assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,t,{abortSignal:n.abortSignal,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions}));return this._leaseId=t,i}))}async releaseLease(t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==it||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==it||t.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Sl.withSpan("BlobLeaseClient-releaseLease",t,(async n=>assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async renewLease(t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==it||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==it||t.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Sl.withSpan("BlobLeaseClient-renewLease",t,(async n=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async breakLease(t,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==it||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==it||n.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Sl.withSpan("BlobLeaseClient-breakLease",n,(async r=>{const i={abortSignal:n.abortSignal,breakPeriod:t,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions};return assertResponse(await this._containerOrBlobOperation.breakLease(i))}))}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){throw Error("Quick query in browser is not supported yet.")}get readableStreamBody(){}get _response(){return this.originalResponse._response}originalResponse;constructor(t,n={}){this.originalResponse=t}}var El,Cl,Pl;function toAccessTier(t){if(void 0!==t)return t}function ensureCpkIfSpecified(t,n){if(t&&!n)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm="AES256")}function rangeResponseFromModel(t){const n=(t._response.parsedBody.pageRange||[]).map((t=>({offset:t.start,count:t.end-t.start}))),r=(t._response.parsedBody.clearRange||[]).map((t=>({offset:t.start,count:t.end-t.start})));return{...t,pageRange:n,clearRange:r,_response:{...t._response,parsedBody:{pageRange:n,clearRange:r}}}}!function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"}(El||(El={})),function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"}(Cl||(Cl={})),function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"}(Pl||(Pl={}));class PollerStoppedError extends Error{constructor(t){super(t),this.name="PollerStoppedError",Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(t){super(t),this.name="PollerCancelledError",Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(t){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=t,this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n})),this.promise.catch((()=>{}))}async startPolling(t={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(t),await this.delay()}async pollOnce(t={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:t.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(t){for(const n of this.pollProgressCallbacks)n(t)}async cancelOnce(t={}){this.operation=await this.operation.cancel(t)}poll(t={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(t);const clearPollOncePromise=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){const t=new PollerCancelledError("Operation was canceled");throw this.reject(t),t}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(t={}){return this.stopped&&this.startPolling(t).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(t){return this.pollProgressCallbacks.push(t),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((n=>n!==t))}}isDone(){const t=this.operation.state;return Boolean(t.isCompleted||t.isCancelled||t.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new PollerStoppedError("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(t={}){if(this.cancelPromise){if(t.abortSignal)throw new Error("A cancel request is currently pending")}else this.cancelPromise=this.cancelOnce(t);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(t){const{blobClient:n,copySource:r,intervalInMs:i=15e3,onProgress:o,resumeFrom:a,startCopyFromURLOptions:s}=t;let l;a&&(l=JSON.parse(a).state);super(makeBlobBeginCopyFromURLPollOperation({...l,blobClient:n,copySource:r,startCopyFromURLOptions:s})),"function"==typeof o&&this.onProgress(o),this.intervalInMs=i}delay(){return browser_delay_delay(this.intervalInMs)}}const Al=async function cancel(t={}){const n=this.state,{copyId:r}=n;return n.isCompleted?makeBlobBeginCopyFromURLPollOperation(n):r?(await n.blobClient.abortCopyFromURL(r,{abortSignal:t.abortSignal}),n.isCancelled=!0,makeBlobBeginCopyFromURLPollOperation(n)):(n.isCancelled=!0,makeBlobBeginCopyFromURLPollOperation(n))},Tl=async function update(t={}){const n=this.state,{blobClient:r,copySource:i,startCopyFromURLOptions:o}=n;if(n.isStarted){if(!n.isCompleted)try{const r=await n.blobClient.getProperties({abortSignal:t.abortSignal}),{copyStatus:i,copyProgress:o}=r,a=n.copyProgress;o&&(n.copyProgress=o),"pending"===i&&o!==a&&"function"==typeof t.fireProgress?t.fireProgress(n):"success"===i?(n.result=r,n.isCompleted=!0):"failed"===i&&(n.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`),n.isCompleted=!0)}catch(a){n.error=a,n.isCompleted=!0}}else{n.isStarted=!0;const t=await r.startCopyFromURL(i,o);n.copyId=t.copyId,"success"===t.copyStatus&&(n.result=t,n.isCompleted=!0)}return makeBlobBeginCopyFromURLPollOperation(n)},Rl=function toString(){return JSON.stringify({state:this.state},((t,n)=>{if("blobClient"!==t)return n}))};function makeBlobBeginCopyFromURLPollOperation(t){return{state:{...t},cancel:Al,toString:Rl,update:Tl}}function rangeToString(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}var zl,Ml=r(37007);!function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"}(zl||(zl={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=zl.Good;emitter;constructor(t=5){if(t<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=t,this.emitter=new Ml.EventEmitter}addOperation(t){this.operations.push((async()=>{try{this.actives++,await t(),this.actives--,this.completed++,this.parallelExecute()}catch(n){this.emitter.emit("error",n)}}))}async do(){return 0===this.operations.length?Promise.resolve():(this.parallelExecute(),new Promise(((t,n)=>{this.emitter.on("finish",t),this.emitter.on("error",(t=>{this.state=zl.Error,n(t)}))})))}nextOperation(){return this.offset=this.operations.length)this.emitter.emit("finish");else for(;this.actives{const o=assertResponse(await this.blobContext.download({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onDownloadProgress:ye?void 0:r.onProgress},range:0!==t||n?rangeToString({offset:t,count:n}):void 0,rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey,tracingOptions:i.tracingOptions})),a={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(o.objectReplicationRules)};if(!ye)return a;if((void 0===r.maxRetryRequests||r.maxRetryRequests<0)&&(r.maxRetryRequests=5),void 0===o.contentLength)throw new RangeError("File download response doesn't contain valid content length header");if(!o.etag)throw new RangeError("File download response doesn't contain valid etag header");return new 1(a,(async n=>{const i={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||o.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:r.conditions?.tagConditions},range:rangeToString({count:t+o.contentLength-n,offset:n}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download({abortSignal:r.abortSignal,...i})).readableStreamBody}),t,o.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}))}async exists(t={}){return Sl.withSpan("BlobClient-exists",t,(async n=>{try{return ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:t.abortSignal,customerProvidedKey:t.customerProvidedKey,conditions:t.conditions,tracingOptions:n.tracingOptions}),!0}catch(Il){if(404===Il.statusCode)return!1;if(409===Il.statusCode&&("BlobUsesCustomerSpecifiedEncryption"===Il.details.errorCode||"BlobDoesNotUseCustomerSpecifiedEncryption"===Il.details.errorCode))return!0;throw Il}}))}async getProperties(t={}){return t.conditions=t.conditions||{},ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps),Sl.withSpan("BlobClient-getProperties",t,(async n=>{const r=assertResponse(await this.blobContext.getProperties({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return{...r,_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationRules)}}))}async delete(t={}){return t.conditions=t.conditions||{},Sl.withSpan("BlobClient-delete",t,(async n=>assertResponse(await this.blobContext.delete({abortSignal:t.abortSignal,deleteSnapshots:t.deleteSnapshots,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async deleteIfExists(t={}){return Sl.withSpan("BlobClient-deleteIfExists",t,(async t=>{try{const n=assertResponse(await this.delete(t));return{succeeded:!0,...n,_response:n._response}}catch(Il){if("BlobNotFound"===Il.details?.errorCode)return{succeeded:!1,...Il.response?.parsedHeaders,_response:Il.response};throw Il}}))}async undelete(t={}){return Sl.withSpan("BlobClient-undelete",t,(async n=>assertResponse(await this.blobContext.undelete({abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async setHTTPHeaders(t,n={}){return n.conditions=n.conditions||{},ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps),Sl.withSpan("BlobClient-setHTTPHeaders",n,(async r=>assertResponse(await this.blobContext.setHttpHeaders({abortSignal:n.abortSignal,blobHttpHeaders:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}async setMetadata(t,n={}){return n.conditions=n.conditions||{},ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps),Sl.withSpan("BlobClient-setMetadata",n,(async r=>assertResponse(await this.blobContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:t,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions}))))}async setTags(t,n={}){return Sl.withSpan("BlobClient-setTags",n,(async r=>assertResponse(await this.blobContext.setTags({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions,tags:toBlobTags(t)}))))}async getTags(t={}){return Sl.withSpan("BlobClient-getTags",t,(async n=>{const r=assertResponse(await this.blobContext.getTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return{...r,_response:r._response,tags:toTags({blobTagSet:r.blobTagSet})||{}}}))}getBlobLeaseClient(t){return new BlobLeaseClient(this,t)}async createSnapshot(t={}){return t.conditions=t.conditions||{},ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps),Sl.withSpan("BlobClient-createSnapshot",t,(async n=>assertResponse(await this.blobContext.createSnapshot({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async beginCopyFromURL(t,n={}){const r=new BlobBeginCopyFromUrlPoller({blobClient:{abortCopyFromURL:(...t)=>this.abortCopyFromURL(...t),getProperties:(...t)=>this.getProperties(...t),startCopyFromURL:(...t)=>this.startCopyFromURL(...t)},copySource:t,intervalInMs:n.intervalInMs,onProgress:n.onProgress,resumeFrom:n.resumeFrom,startCopyFromURLOptions:n});return await r.poll(),r}async abortCopyFromURL(t,n={}){return Sl.withSpan("BlobClient-abortCopyFromURL",n,(async r=>assertResponse(await this.blobContext.abortCopyFromURL(t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,tracingOptions:r.tracingOptions}))))}async syncCopyFromURL(t,n={}){return n.conditions=n.conditions||{},n.sourceConditions=n.sourceConditions||{},Sl.withSpan("BlobClient-syncCopyFromURL",n,(async r=>assertResponse(await this.blobContext.copyFromURL(t,{abortSignal:n.abortSignal,metadata:n.metadata,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:n.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(n.sourceAuthorization),tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,encryptionScope:n.encryptionScope,copySourceTags:n.copySourceTags,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async setAccessTier(t,n={}){return Sl.withSpan("BlobClient-setAccessTier",n,(async r=>assertResponse(await this.blobContext.setTier(toAccessTier(t),{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},rehydratePriority:n.rehydratePriority,tracingOptions:r.tracingOptions}))))}async downloadToBuffer(t,n,r,i={}){let o,a=0,s=0,l=i;t instanceof Buffer?(o=t,a=n||0,s="number"==typeof r?r:0):(a="number"==typeof t?t:0,s="number"==typeof n?n:0,l=r||{});let c=l.blockSize??0;if(c<0)throw new RangeError("blockSize option must be >= 0");if(0===c&&(c=Ye),a<0)throw new RangeError("offset option must be >= 0");if(s&&s<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),Sl.withSpan("BlobClient-downloadToBuffer",l,(async t=>{if(!s){const n=await this.getProperties({...l,tracingOptions:t.tracingOptions});if(s=n.contentLength-a,s<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${n.contentLength}`)}if(!o)try{o=Buffer.alloc(s)}catch(i){throw new Error(`Unable to allocate the buffer of size: ${s}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${i.message}`)}if(o.length{let r=a+s;o+c{const o=await this.download(n,r,{...i,tracingOptions:t.tracingOptions});return o.readableStreamBody&&await void o.readableStreamBody,o.blobDownloadStream=void 0,o}))}getBlobAndContainerNamesFromUrl(){let t,n;try{const r=new URL(this.url);if("blob"===r.host.split(".")[1]){const i=r.pathname.match("/([^/]*)(/(.*))?");t=i[1],n=i[3]}else if(isIpEndpointStyle(r)){const i=r.pathname.match("/([^/]*)/([^/]*)(/(.*))?");t=i[2],n=i[4]}else{const i=r.pathname.match("/([^/]*)(/(.*))?");t=i[1],n=i[3]}if(t=decodeURIComponent(t),n=decodeURIComponent(n),n=n.replace(/\\/g,"/"),!t)throw new Error("Provided containerName is invalid.");return{blobName:n,containerName:t}}catch(r){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(t,n={}){return Sl.withSpan("BlobClient-startCopyFromURL",n,(async r=>(n.conditions=n.conditions||{},n.sourceConditions=n.sourceConditions||{},assertResponse(await this.blobContext.startCopyFromURL(t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions.ifMatch,sourceIfModifiedSince:n.sourceConditions.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions.ifUnmodifiedSince,sourceIfTags:n.sourceConditions.tagConditions},immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,rehydratePriority:n.rehydratePriority,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),sealBlob:n.sealBlob,tracingOptions:r.tracingOptions})))))}generateSasUrl(t){return new Promise((n=>{if(!(this.credential instanceof StorageSharedKeyCredential))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");const r=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...t},this.credential).toString();n(appendToURLQuery(this.url,r))}))}generateSasStringToSign(t){if(!(this.credential instanceof StorageSharedKeyCredential))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...t},this.credential).stringToSign}generateUserDelegationSasUrl(t,n){return new Promise((r=>{const i=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...t},n,this.accountName).toString();r(appendToURLQuery(this.url,i))}))}generateUserDelegationSasStringToSign(t,n){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...t},n,this.accountName).stringToSign}async deleteImmutabilityPolicy(t={}){return Sl.withSpan("BlobClient-deleteImmutabilityPolicy",t,(async t=>assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:t.tracingOptions}))))}async setImmutabilityPolicy(t,n={}){return Sl.withSpan("BlobClient-setImmutabilityPolicy",n,(async n=>assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:t.expiriesOn,immutabilityPolicyMode:t.policyMode,tracingOptions:n.tracingOptions}))))}async setLegalHold(t,n={}){return Sl.withSpan("BlobClient-setLegalHold",n,(async n=>assertResponse(await this.blobContext.setLegalHold(t,{tracingOptions:n.tracingOptions}))))}async getAccountInfo(t={}){return Sl.withSpan("BlobClient-getAccountInfo",t,(async n=>assertResponse(await this.blobContext.getAccountInfo({abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(t,n,r,i){let o,a;if(i=i||{},isPipelineLike(n))a=t,o=n;else if(ye&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))a=t,o=newPipeline(n,i=r);else if(n||"string"==typeof n){if(!n||"string"!=typeof n||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=n,l=r,c=extractConnectionStringParts(t);if("AccountConnString"===c.kind){if(!ye)throw new Error("Account connection string is only supported in Node.js environment");{const t=new StorageSharedKeyCredential(c.accountName,c.accountKey);a=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(s)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)),o=newPipeline(t,i)}}else{if("SASConnString"!==c.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");a=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(s)),encodeURIComponent(l))+"?"+c.accountSas,o=newPipeline(new AnonymousCredential,i)}}}else a=t,o=newPipeline(new AnonymousCredential,i);super(a,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new AppendBlobClient(utils_common_setURLParameter(this.url,et.SNAPSHOT,0===t.length?void 0:t),this.pipeline)}async create(t={}){return t.conditions=t.conditions||{},ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps),Sl.withSpan("AppendBlobClient-create",t,(async n=>assertResponse(await this.appendBlobContext.create(0,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,blobTagsString:toBlobTagsString(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(t={}){const n={ifNoneMatch:"*"};return Sl.withSpan("AppendBlobClient-createIfNotExists",t,(async t=>{try{const r=assertResponse(await this.create({...t,conditions:n}));return{succeeded:!0,...r,_response:r._response}}catch(Il){if("BlobAlreadyExists"===Il.details?.errorCode)return{succeeded:!1,...Il.response?.parsedHeaders,_response:Il.response};throw Il}}))}async seal(t={}){return t.conditions=t.conditions||{},Sl.withSpan("AppendBlobClient-seal",t,(async n=>assertResponse(await this.appendBlobContext.seal({abortSignal:t.abortSignal,appendPositionAccessConditions:t.conditions,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async appendBlock(t,n,r={}){return r.conditions=r.conditions||{},ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps),Sl.withSpan("AppendBlobClient-appendBlock",r,(async i=>assertResponse(await this.appendBlobContext.appendBlock(n,t,{abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}))))}async appendBlockFromURL(t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps),Sl.withSpan("AppendBlobClient-appendBlockFromURL",i,(async o=>assertResponse(await this.appendBlobContext.appendBlockFromUrl(t,0,{abortSignal:i.abortSignal,sourceRange:rangeToString({offset:n,count:r}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}}class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(t,n,r,i){let o,a;if(i=i||{},isPipelineLike(n))a=t,o=n;else if(ye&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))a=t,o=newPipeline(n,i=r);else if(n||"string"==typeof n){if(!n||"string"!=typeof n||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=n,l=r,c=extractConnectionStringParts(t);if("AccountConnString"===c.kind){if(!ye)throw new Error("Account connection string is only supported in Node.js environment");{const t=new StorageSharedKeyCredential(c.accountName,c.accountKey);a=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(s)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)),o=newPipeline(t,i)}}else{if("SASConnString"!==c.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");a=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(s)),encodeURIComponent(l))+"?"+c.accountSas,o=newPipeline(new AnonymousCredential,i)}}}else a=t,r&&"string"!=typeof r&&(i=r),o=newPipeline(new AnonymousCredential,i);super(a,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new BlockBlobClient(utils_common_setURLParameter(this.url,et.SNAPSHOT,0===t.length?void 0:t),this.pipeline)}async query(t,n={}){if(ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps),!ye)throw new Error("This operation currently is only supported in Node.js.");return Sl.withSpan("BlockBlobClient-query",n,(async r=>{const i=assertResponse(await this._blobContext.query({abortSignal:n.abortSignal,queryRequest:{queryType:"SQL",expression:t,inputSerialization:toQuerySerialization(n.inputTextConfiguration),outputSerialization:toQuerySerialization(n.outputTextConfiguration)},leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions}));return new BlobQueryResponse(i,{abortSignal:n.abortSignal,onProgress:n.onProgress,onError:n.onError})}))}async upload(t,n,r={}){return r.conditions=r.conditions||{},ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps),Sl.withSpan("BlockBlobClient-upload",r,(async i=>assertResponse(await this.blockBlobContext.upload(n,t,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:toAccessTier(r.tier),blobTagsString:toBlobTagsString(r.tags),tracingOptions:i.tracingOptions}))))}async syncUploadFromURL(t,n={}){return n.conditions=n.conditions||{},ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps),Sl.withSpan("BlockBlobClient-syncUploadFromURL",n,(async r=>assertResponse(await this.blockBlobContext.putBlobFromUrl(0,t,{...n,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince,sourceIfTags:n.sourceConditions?.tagConditions},cpkInfo:n.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(n.sourceAuthorization),tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),copySourceTags:n.copySourceTags,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:r.tracingOptions}))))}async stageBlock(t,n,r,i={}){return ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps),Sl.withSpan("BlockBlobClient-stageBlock",i,(async o=>assertResponse(await this.blockBlobContext.stageBlock(t,r,n,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}))))}async stageBlockFromURL(t,n,r=0,i,o={}){return ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps),Sl.withSpan("BlockBlobClient-stageBlockFromURL",o,(async a=>assertResponse(await this.blockBlobContext.stageBlockFromURL(t,0,n,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:0!==r||i?rangeToString({offset:r,count:i}):void 0,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:httpAuthorizationToString(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions}))))}async commitBlockList(t,n={}){return n.conditions=n.conditions||{},ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps),Sl.withSpan("BlockBlobClient-commitBlockList",n,(async r=>assertResponse(await this.blockBlobContext.commitBlockList({latest:t},{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:r.tracingOptions}))))}async getBlockList(t,n={}){return Sl.withSpan("BlockBlobClient-getBlockList",n,(async r=>{const i=assertResponse(await this.blockBlobContext.getBlockList(t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions}));return i.committedBlocks||(i.committedBlocks=[]),i.uncommittedBlocks||(i.uncommittedBlocks=[]),i}))}async uploadData(t,n={}){return Sl.withSpan("BlockBlobClient-uploadData",n,(async n=>{if(ye){let r;return r=t instanceof Buffer?t:t instanceof ArrayBuffer?Buffer.from(t):Buffer.from(t.buffer,t.byteOffset,t.byteLength),this.uploadSeekableInternal(((t,n)=>r.slice(t,t+n)),r.byteLength,n)}{const r=new Blob([t]);return this.uploadSeekableInternal(((t,n)=>r.slice(t,t+n)),r.size,n)}}))}async uploadBrowserData(t,n={}){return Sl.withSpan("BlockBlobClient-uploadBrowserData",n,(async n=>{const r=new Blob([t]);return this.uploadSeekableInternal(((t,n)=>r.slice(t,t+n)),r.size,n)}))}async uploadSeekableInternal(t,n,r={}){let i=r.blockSize??0;if(i<0||i>Qe)throw new RangeError("blockSize option must be >= 0 and <= 4194304000");const o=r.maxSingleShotSize??Xe;if(o<0||o>Xe)throw new RangeError("maxSingleShotSize option must be >= 0 and <= 268435456");if(0===i){if(n>2097152e8)throw new RangeError(`${n} is too larger to upload to a block blob.`);n>o&&(i=Math.ceil(n/Je),i{if(n<=o)return assertResponse(await this.upload(t(0,n),n,a));const s=Math.floor((n-1)/i)+1;if(s>Je)throw new RangeError("The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= 50000");const l=[],c=browser_uuidUtils_randomUUID();let m=0;const p=new Batch(r.concurrency);for(let o=0;o{const p=generateBlockID(c,o),u=i*o,h=(o===s-1?n:u+i)-u;l.push(p),await this.stageBlock(p,t(u,h),h,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:a.tracingOptions}),m+=h,r.onProgress&&r.onProgress({loadedBytes:m})}));return await p.do(),this.commitBlockList(l,a)}))}async uploadFile(t,n={}){return Sl.withSpan("BlockBlobClient-uploadFile",n,(async t=>{const r=(await void 0).size;return this.uploadSeekableInternal(((t,n)=>()=>{}),r,{...n,tracingOptions:t.tracingOptions})}))}async uploadStream(t,n=8388608,r=5,i={}){return i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),Sl.withSpan("BlockBlobClient-uploadStream",i,(async o=>{let a=0;const s=browser_uuidUtils_randomUUID();let l=0;const c=[],m=new BufferScheduler(t,n,r,(async(t,n)=>{const r=generateBlockID(s,a);c.push(r),a++,await this.stageBlock(r,t,n,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}),l+=n,i.onProgress&&i.onProgress({loadedBytes:l})}),Math.ceil(r/4*3));return await m.do(),assertResponse(await this.commitBlockList(c,{...i,tracingOptions:o.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(t,n,r,i){let o,a;if(i=i||{},isPipelineLike(n))a=t,o=n;else if(ye&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))a=t,o=newPipeline(n,i=r);else if(n||"string"==typeof n){if(!n||"string"!=typeof n||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=n,l=r,c=extractConnectionStringParts(t);if("AccountConnString"===c.kind){if(!ye)throw new Error("Account connection string is only supported in Node.js environment");{const t=new StorageSharedKeyCredential(c.accountName,c.accountKey);a=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(s)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=proxyPolicy_getDefaultProxySettings(c.proxyUri)),o=newPipeline(t,i)}}else{if("SASConnString"!==c.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");a=appendToURLPath(appendToURLPath(c.url,encodeURIComponent(s)),encodeURIComponent(l))+"?"+c.accountSas,o=newPipeline(new AnonymousCredential,i)}}}else a=t,o=newPipeline(new AnonymousCredential,i);super(a,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new PageBlobClient(utils_common_setURLParameter(this.url,et.SNAPSHOT,0===t.length?void 0:t),this.pipeline)}async create(t,n={}){return n.conditions=n.conditions||{},ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps),Sl.withSpan("PageBlobClient-create",n,(async r=>assertResponse(await this.pageBlobContext.create(0,t,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,blobSequenceNumber:n.blobSequenceNumber,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:r.tracingOptions}))))}async createIfNotExists(t,n={}){return Sl.withSpan("PageBlobClient-createIfNotExists",n,(async r=>{try{const i={ifNoneMatch:"*"},o=assertResponse(await this.create(t,{...n,conditions:i,tracingOptions:r.tracingOptions}));return{succeeded:!0,...o,_response:o._response}}catch(Il){if("BlobAlreadyExists"===Il.details?.errorCode)return{succeeded:!1,...Il.response?.parsedHeaders,_response:Il.response};throw Il}}))}async uploadPages(t,n,r,i={}){return i.conditions=i.conditions||{},ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps),Sl.withSpan("PageBlobClient-uploadPages",i,(async o=>assertResponse(await this.pageBlobContext.uploadPages(r,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:rangeToString({offset:n,count:r}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}))))}async uploadPagesFromURL(t,n,r,i,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps),Sl.withSpan("PageBlobClient-uploadPagesFromURL",o,(async a=>assertResponse(await this.pageBlobContext.uploadPagesFromURL(t,rangeToString({offset:n,count:i}),0,rangeToString({offset:r,count:i}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:httpAuthorizationToString(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions}))))}async clearPages(t=0,n,r={}){return r.conditions=r.conditions||{},Sl.withSpan("PageBlobClient-clearPages",r,(async i=>assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}))))}async getPageRanges(t=0,n,r={}){return r.conditions=r.conditions||{},Sl.withSpan("PageBlobClient-getPageRanges",r,(async i=>rangeResponseFromModel(assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:rangeToString({offset:t,count:n}),tracingOptions:i.tracingOptions})))))}async listPageRangesSegment(t=0,n,r,i={}){return Sl.withSpan("PageBlobClient-getPageRangesSegment",i,(async o=>assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:rangeToString({offset:t,count:n}),marker:r,maxPageSize:i.maxPageSize,tracingOptions:o.tracingOptions}))))}async*listPageRangeItemSegments(t=0,n,r,i={}){let o;if(r||void 0===r)do{o=await this.listPageRangesSegment(t,n,r,i),r=o.continuationToken,yield await o}while(r)}async*listPageRangeItems(t=0,n,r={}){for await(const i of this.listPageRangeItemSegments(t,n,undefined,r))yield*ExtractPageRangeInfoItems(i)}listPageRanges(t=0,n,r={}){r.conditions=r.conditions||{};const i=this.listPageRangeItems(t,n,r);return{next:()=>i.next(),[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeItemSegments(t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiff(t,n,r,i={}){return i.conditions=i.conditions||{},Sl.withSpan("PageBlobClient-getPageRangesDiff",i,(async o=>rangeResponseFromModel(assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:t,count:n}),tracingOptions:o.tracingOptions})))))}async listPageRangesDiffSegment(t,n,r,i,o={}){return Sl.withSpan("PageBlobClient-getPageRangesDiffSegment",o,(async a=>assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:r,range:rangeToString({offset:t,count:n}),marker:i,maxPageSize:o?.maxPageSize,tracingOptions:a.tracingOptions}))))}async*listPageRangeDiffItemSegments(t,n,r,i,o){let a;if(i||void 0===i)do{a=await this.listPageRangesDiffSegment(t,n,r,i,o),i=a.continuationToken,yield await a}while(i)}async*listPageRangeDiffItems(t,n,r,i){for await(const o of this.listPageRangeDiffItemSegments(t,n,r,undefined,i))yield*ExtractPageRangeInfoItems(o)}listPageRangesDiff(t,n,r,i={}){i.conditions=i.conditions||{};const o=this.listPageRangeDiffItems(t,n,r,{...i});return{next:()=>o.next(),[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeDiffItemSegments(t,n,r,o.continuationToken,{maxPageSize:o.maxPageSize,...i})}}async getPageRangesDiffForManagedDisks(t,n,r,i={}){return i.conditions=i.conditions||{},Sl.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,(async o=>rangeResponseFromModel(assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:r,range:rangeToString({offset:t,count:n}),tracingOptions:o.tracingOptions})))))}async resize(t,n={}){return n.conditions=n.conditions||{},Sl.withSpan("PageBlobClient-resize",n,(async r=>assertResponse(await this.pageBlobContext.resize(t,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions}))))}async updateSequenceNumber(t,n,r={}){return r.conditions=r.conditions||{},Sl.withSpan("PageBlobClient-updateSequenceNumber",r,(async i=>assertResponse(await this.pageBlobContext.updateSequenceNumber(t,{abortSignal:r.abortSignal,blobSequenceNumber:n,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}async startCopyIncremental(t,n={}){return Sl.withSpan("PageBlobClient-startCopyIncremental",n,(async r=>assertResponse(await this.pageBlobContext.copyIncremental(t,{abortSignal:n.abortSignal,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions}))))}}var kl,Ll;!function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"}(kl||(kl={}));!function(t){t.AES256="AES256"}(Ll||(Ll={}))},37007:t=>{"use strict";var n,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function ReflectApply(t,n,r){return Function.prototype.apply.call(t,n,r)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function ReflectOwnKeys(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function NumberIsNaN(t){return t!=t};function EventEmitter(){EventEmitter.init.call(this)}t.exports=EventEmitter,t.exports.once=function once(t,n){return new Promise((function(r,i){function errorListener(r){t.removeListener(n,resolver),i(r)}function resolver(){"function"==typeof t.removeListener&&t.removeListener("error",errorListener),r([].slice.call(arguments))}eventTargetAgnosticAddListener(t,n,resolver,{once:!0}),"error"!==n&&function addErrorHandlerIfEventEmitter(t,n,r){"function"==typeof t.on&&eventTargetAgnosticAddListener(t,"error",n,r)}(t,errorListener,{once:!0})}))},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var a=10;function checkListener(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _getMaxListeners(t){return void 0===t._maxListeners?EventEmitter.defaultMaxListeners:t._maxListeners}function _addListener(t,n,r,i){var o,a,s;if(checkListener(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",n,r.listener?r.listener:r),a=t._events),s=a[n]),void 0===s)s=a[n]=r,++t._eventsCount;else if("function"==typeof s?s=a[n]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(o=_getMaxListeners(t))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=n,l.count=s.length,function ProcessEmitWarning(t){console&&console.warn}()}return t}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(t,n,r){var i={fired:!1,wrapFn:void 0,target:t,type:n,listener:r},o=onceWrapper.bind(i);return o.listener=r,i.wrapFn=o,o}function _listeners(t,n,r){var i=t._events;if(void 0===i)return[];var o=i[n];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function unwrapListeners(t){for(var n=new Array(t.length),r=0;r0&&(s=n[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=a[t];if(void 0===c)return!1;if("function"==typeof c)i(c,this,n);else{var m=c.length,p=arrayClone(c,m);for(r=0;r=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function spliceOne(t,n){for(;n+1=0;i--)this.removeListener(t,n[i]);return this},EventEmitter.prototype.listeners=function listeners(t){return _listeners(this,t,!0)},EventEmitter.prototype.rawListeners=function rawListeners(t){return _listeners(this,t,!1)},EventEmitter.listenerCount=function(t,n){return"function"==typeof t.listenerCount?t.listenerCount(n):listenerCount.call(t,n)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?n(this._events):[]}},47654:(t,n,r)=>{var i="__lodash_hash_undefined__",o="[object Function]",a="[object GeneratorFunction]",s=/^\[object .+?Constructor\]$/,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,m=l||c||Function("return this")();var p,u=Array.prototype,h=Function.prototype,y=Object.prototype,x=m["__core-js_shared__"],v=(p=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",w=h.toString,E=y.hasOwnProperty,C=y.toString,A=RegExp("^"+w.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=u.splice,k=getNative(m,"Map"),I=getNative(Object,"create");function Hash(t){var n=-1,r=t?t.length:0;for(this.clear();++n-1},ListCache.prototype.set=function listCacheSet(t,n){var r=this.__data__,i=assocIndexOf(r,t);return i<0?r.push([t,n]):r[i][1]=n,this},MapCache.prototype.clear=function mapCacheClear(){this.__data__={hash:new Hash,map:new(k||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(t){return getMapData(this,t).delete(t)},MapCache.prototype.get=function mapCacheGet(t){return getMapData(this,t).get(t)},MapCache.prototype.has=function mapCacheHas(t){return getMapData(this,t).has(t)},MapCache.prototype.set=function mapCacheSet(t,n){return getMapData(this,t).set(t,n),this},memoize.Cache=MapCache,t.exports=memoize},57606:function(t,n){var r;!function(i){"use strict";r=function(){var t=function(){var noop=function(){},t=8,n=46,r=37,i=39,o={additionalTagClasses:"",allowDuplicates:!1,saveOnBlur:!1,clearOnBlur:!0,duplicateTagClass:"",containerFocusClass:"active",focusInputOnContainerClick:!0,hiddenInputName:"taggles[]",tags:[],delimeter:",",delimiter:"",attachTagId:!1,allowedTags:[],disallowedTags:[],trimTags:!0,maxTags:null,tabIndex:1,placeholder:"Enter tags...",submitKeys:[188,9,13],preserveCase:!1,inputFormatter:noop,tagFormatter:noop,onBeforeTagAdd:noop,onTagAdd:noop,onBeforeTagRemove:function(){return!0},onTagRemove:noop};function _extend(){for(var t=arguments[0],n=1,r=arguments.length;n-1&&(this.settings.duplicateTagClass&&i.childNodes[r].classList.add(this.settings.duplicateTagClass),!0)},Taggle.prototype._isConfirmKey=function(t){var n=!1;return this.settings.submitKeys.indexOf(t)>-1&&(n=!0),n},Taggle.prototype._setFocusStateForContainer=function(){this._fixInputWidth(),this.container.classList.contains(this.settings.containerFocusClass)||this.container.classList.add(this.settings.containerFocusClass),this._hidePlaceholder()},Taggle.prototype._blurEvent=function(t){if(this.container.classList.contains(this.settings.containerFocusClass)&&this.container.classList.remove(this.settings.containerFocusClass),this.settings.saveOnBlur){if(t=t||window.event,this._setInputWidth(),""!==this.input.value)return void this._confirmValidTagEvent(t);this.tag.values.length&&this._checkPrevOrNextTag(t)}else this.settings.clearOnBlur&&(this.input.value="",this._setInputWidth());this.tag.values.length||this.input.value||this._showPlaceholder()},Taggle.prototype._keydownEvents=function(t){var n=(t=t||window.event).keyCode;this.pasting=!1,this._setInputWidth(),86===n&&t.metaKey&&(this.pasting=!0),this._isConfirmKey(n)&&""!==this.input.value?this._confirmValidTagEvent(t):this.tag.values.length&&this._checkPrevOrNextTag(t)},Taggle.prototype._keyupEvents=function(t){t=t||window.event,this._backspacePressed=!1,-1===[r,i].indexOf(t.keyCode)?(_setText(this.sizer,this.input.value),this.input.value||this._setInputWidth(),this.pasting&&""!==this.input.value&&(this._add(t),this.pasting=!1)):this._moveInput(t.keyCode)},Taggle.prototype._moveInput=function(t){var n=this._inputPosition;switch(t){case r:var o=_clamp(this._inputPosition-1,0,this.tag.values.length),a=n!==o;this._inputPosition=o,a&&(this.list.insertBefore(this.inputLi,this.list.childNodes[o]||null),this.input.focus());break;case i:var s=_clamp(this._inputPosition+1,0,this.tag.values.length),l=n!==s;this._inputPosition=s,l&&(this.list.insertBefore(this.inputLi,this.list.childNodes[s+1]||null),this.input.focus())}},Taggle.prototype._confirmValidTagEvent=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,this._add(t,null,this._inputPosition)},Taggle.prototype._createTag=function(t,n){var r=document.createElement("li"),i=document.createElement("button"),o=document.createElement("input"),a=document.createElement("span");t=this._formatTag(t),_setText(i,"×"),i.className="close",i.setAttribute("type","button");var s=this._remove.bind(this,i);_on(i,"click",s),_setText(a,t),a.className="taggle_text",r.className="taggle "+this.settings.additionalTagClasses,o.type="hidden",o.value=t,o.name=this.settings.hiddenInputName,r.appendChild(a),r.appendChild(i),r.appendChild(o);var l=this.settings.tagFormatter(r);if(void 0!==l&&(r=l),!(r instanceof HTMLElement)||"li"!==r.localName&&"LI"!==r.tagName)throw new Error("tagFormatter must return an li element");return this.settings.attachTagId&&(this._id+=1,t={text:t,id:this._id}),this.tag.values.splice(n,0,t),this.tag.elements.splice(n,0,r),this._closeEvents.splice(n,0,s),this._closeButtons.splice(n,0,i),this._inputPosition=_clamp(this._inputPosition+1,0,this.tag.values.length),r},Taggle.prototype._showPlaceholder=function(){this.placeholder&&(this.placeholder.style.opacity=1,this.placeholder.setAttribute("aria-hidden","false"))},Taggle.prototype._hidePlaceholder=function(){this.placeholder&&(this.placeholder.style.opacity=0,this.placeholder.setAttribute("aria-hidden","true"))},Taggle.prototype._remove=function(t,n){var r,i,o,a=this;function done(i){if(!i){var s=a._closeEvents[o];_off(a._closeButtons[o],"click",s),t.parentNode.removeChild(t),a.tag.elements.splice(o,1),a.tag.values.splice(o,1),a._closeEvents.splice(o,1),a._closeButtons.splice(o,1),a.settings.onTagRemove(n,r),o=0&&t<=this.tag.values.length-1},Taggle.prototype.getTags=function(){return{elements:this.getTagElements(),values:this.getTagValues()}},Taggle.prototype.getTagElements=function(){return[].slice.apply(this.tag.elements)},Taggle.prototype.getTagValues=function(){return[].slice.apply(this.tag.values)},Taggle.prototype.getInput=function(){return this.input},Taggle.prototype.getContainer=function(){return this.container},Taggle.prototype.add=function(t,n){if(_isArray(t))for(var r=n,i=0,o=t.length;i-1;){var o=this.tag.values[r];if(this.settings.attachTagId&&(o=o.text),o===t&&(i=!0,this._remove(this.tag.elements[r])),i&&!n)break;r--}return this},Taggle.prototype.removeAll=function(){for(var t=this.tag.values.length-1;t>=0;t--)this._remove(this.tag.elements[t]);return this._showPlaceholder(),this},Taggle.prototype.setOptions=function(t){return this.settings=_extend({},this.settings,t||{}),this},Taggle.prototype.enable=function(){var t=[].slice.call(this.container.querySelectorAll("button")),n=[].slice.call(this.container.querySelectorAll("input"));return t.concat(n).forEach((function(t){t.removeAttribute("disabled")})),this},Taggle.prototype.disable=function(){var t=[].slice.call(this.container.querySelectorAll("button")),n=[].slice.call(this.container.querySelectorAll("input"));return t.concat(n).forEach((function(t){t.setAttribute("disabled","")})),this},Taggle.prototype.setData=function(t){return this.data=t,this},Taggle.prototype.getData=function(){return this.data},Taggle.prototype.attachEvents=function(){var t=this;return this._attachEvents()&&this._closeButtons.forEach((function(n,r){_on(n,"click",t._closeEvents[r])})),this},Taggle.prototype.removeEvents=function(){return this._detachEvents(),this},Taggle}();return i.Taggle=t,t}.apply(n,[]),void 0===r||(t.exports=r)}(this)},69030:(t,n,r)=>{"use strict";var i,o,a,s,l,c,m,p,__classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},__classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const u=new WeakMap;let h=null;class include_fragment_element_IncludeFragmentElement extends HTMLElement{constructor(){super(...arguments),i.add(this),o.set(this,!1),a.set(this,new IntersectionObserver((t=>{for(const n of t)if(n.isIntersecting){const{target:t}=n;if(__classPrivateFieldGet(this,a,"f").unobserve(t),!(t instanceof include_fragment_element_IncludeFragmentElement))return;"lazy"===t.loading&&__classPrivateFieldGet(this,i,"m",s).call(this)}}),{rootMargin:"0px 0px 256px 0px",threshold:.01}))}static define(t="include-fragment",n=customElements){return n.define(t,this),this}static setCSPTrustedTypesPolicy(t){h=null===t?t:Promise.resolve(t)}static get observedAttributes(){return["src","loading"]}get src(){const t=this.getAttribute("src");if(t){const n=this.ownerDocument.createElement("a");return n.href=t,n.href}return""}set src(t){this.setAttribute("src",t)}get loading(){return"lazy"===this.getAttribute("loading")?"lazy":"eager"}set loading(t){this.setAttribute("loading",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get data(){return __classPrivateFieldGet(this,i,"m",c).call(this)}attributeChangedCallback(t,n){"src"===t?this.isConnected&&"eager"===this.loading&&__classPrivateFieldGet(this,i,"m",s).call(this):"loading"===t&&this.isConnected&&"eager"!==n&&"eager"===this.loading&&__classPrivateFieldGet(this,i,"m",s).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:"open"});const t=document.createElement("style");t.textContent=":host {display: block;}",this.shadowRoot.append(t,document.createElement("slot"))}this.src&&"eager"===this.loading&&__classPrivateFieldGet(this,i,"m",s).call(this),"lazy"===this.loading&&__classPrivateFieldGet(this,a,"f").observe(this)}request(){const t=this.src;if(!t)throw new Error("missing src");return new Request(t,{method:"GET",credentials:"same-origin",headers:{Accept:this.accept||"text/html"}})}load(){return __classPrivateFieldGet(this,i,"m",c).call(this)}fetch(t){return fetch(t)}refetch(){u.delete(this),__classPrivateFieldGet(this,i,"m",s).call(this)}}o=new WeakMap,a=new WeakMap,i=new WeakSet,s=async function _IncludeFragmentElement_handleData(){if(!__classPrivateFieldGet(this,o,"f")){__classPrivateFieldSet(this,o,!0,"f"),__classPrivateFieldGet(this,a,"f").unobserve(this);try{const t=await __classPrivateFieldGet(this,i,"m",l).call(this);if(t instanceof Error)throw t;const n=t,r=document.createElement("template");r.innerHTML=n;const a=document.importNode(r.content,!0);if(!this.dispatchEvent(new CustomEvent("include-fragment-replace",{cancelable:!0,detail:{fragment:a}})))return void __classPrivateFieldSet(this,o,!1,"f");this.replaceWith(a),this.dispatchEvent(new CustomEvent("include-fragment-replaced"))}catch(t){this.classList.add("is-error")}finally{__classPrivateFieldSet(this,o,!1,"f")}}},l=async function _IncludeFragmentElement_getData(){const t=this.src,n=u.get(this);if(n&&n.src===t)return n.data;{let n;return n=t?__classPrivateFieldGet(this,i,"m",p).call(this):Promise.reject(new Error("missing src")),u.set(this,{src:t,data:n}),n}},c=async function _IncludeFragmentElement_getStringOrErrorData(){const t=await __classPrivateFieldGet(this,i,"m",l).call(this);if(t instanceof Error)throw t;return t.toString()},m=async function _IncludeFragmentElement_task(t){await new Promise((t=>setTimeout(t,0)));for(const n of t)this.dispatchEvent(new Event(n))},p=async function _IncludeFragmentElement_fetchDataWithEvents(){try{await __classPrivateFieldGet(this,i,"m",m).call(this,["loadstart"]);const t=await this.fetch(this.request());if(200!==t.status)throw new Error(`Failed to load resource: the server responded with a status of ${t.status}`);const n=t.headers.get("Content-Type");if(!(function isWildcard(t){return t&&!!t.split(",").find((t=>t.match(/^\s*\*\/\*/)))}(this.accept)||n&&n.includes(this.accept?this.accept:"text/html")))throw new Error(`Failed to load resource: expected ${this.accept||"text/html"} but was ${n}`);const r=await t.text();let o=r;if(h){o=(await h).createHTML(r,t)}return __classPrivateFieldGet(this,i,"m",m).call(this,["load","loadend"]),o}catch(t){throw __classPrivateFieldGet(this,i,"m",m).call(this,["error","loadend"]),t}};const y="undefined"!=typeof globalThis?globalThis:window;try{y.IncludeFragmentElement=include_fragment_element_IncludeFragmentElement.define()}catch(kr){if(!(y.DOMException&&kr instanceof DOMException&&"NotSupportedError"===kr.name||kr instanceof ReferenceError))throw kr}const x=new WeakMap;class RemoteInputElement extends HTMLElement{constructor(){super();const t=fetchResults.bind(null,this,!0),n={currentQuery:null,oninput:debounce((n=>t(n))),fetch:t,controller:null};x.set(this,n)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,n){n&&"src"===t&&fetchResults(this,!1)}connectedCallback(){const t=this.input;if(!t)return;t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false");const n=x.get(this);n&&(t.addEventListener("focus",n.fetch),t.addEventListener("change",n.fetch),t.addEventListener("input",n.oninput))}disconnectedCallback(){const t=this.input;if(!t)return;const n=x.get(this);n&&(t.removeEventListener("focus",n.fetch),t.removeEventListener("change",n.fetch),t.removeEventListener("input",n.oninput))}get input(){const t=this.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}}async function fetchResults(t,n,r){const i=t.input;if(!i)return;const o=x.get(t);if(!o)return;const a=i.value;if(n&&o.currentQuery===a)return;o.currentQuery=a;const s=t.src;if(!s)return;const l=document.getElementById(t.getAttribute("aria-owns")||"");if(!l)return;const c=new URL(s,window.location.href),m=new URLSearchParams(c.search);let p;m.append(t.getAttribute("param")||"q",a),c.search=m.toString(),o.controller?o.controller.abort():(t.dispatchEvent(new CustomEvent("loadstart")),t.setAttribute("loading","")),o.controller=function makeAbortController(){return"AbortController"in window?new AbortController:{signal:null,abort(){}}}();let u="";try{p=await async function fetchWithNetworkEvents(t,n,r){try{const i=await fetch(n,r);return t.dispatchEvent(new CustomEvent("load")),t.dispatchEvent(new CustomEvent("loadend")),i}catch(i){throw i instanceof Error&&"AbortError"!==(null==i?void 0:i.name)&&(t.dispatchEvent(new CustomEvent("error")),t.dispatchEvent(new CustomEvent("loadend"))),i}}(t,c.toString(),{signal:o.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),u=await p.text(),t.removeAttribute("loading"),o.controller=null}catch(h){return void(h instanceof Error&&"AbortError"!==h.name&&(t.removeAttribute("loading"),o.controller=null))}p&&p.ok?(l.innerHTML=u,t.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:r?r.type:void 0}}))):t.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}function debounce(t){let n;return function(r){clearTimeout(n),n=setTimeout((()=>{clearTimeout(n),t(r)}),300)}}window.customElements.get("remote-input")||(window.RemoteInputElement=RemoteInputElement,window.customElements.define("remote-input",RemoteInputElement));var v,w=r(52426),__decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},action_list_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},action_list_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};class ActionListTruncationObserver{constructor(t){this.resizeObserver=new ResizeObserver((t=>{for(const n of t){const t=n.target;t instanceof HTMLElement&&this.update(t)}})),this.resizeObserver.observe(t)}unobserve(t){this.resizeObserver.unobserve(t)}update(t){const n=t.querySelectorAll("li");for(const r of n){const t=r.querySelector(".ActionListItem-label");if(!t)continue;const n=r.querySelector(".ActionListItem-truncationTooltip");if(!n)continue;const i=t.scrollWidth>t.clientWidth;n.style.display=i?"":"none"}}}let E=class ActionListElement extends HTMLElement{constructor(){super(...arguments),v.set(this,void 0)}connectedCallback(){action_list_classPrivateFieldSet(this,v,new ActionListTruncationObserver(this),"f")}disconnectedCallback(){action_list_classPrivateFieldGet(this,v,"f").unobserve(this)}};v=new WeakMap,E=__decorate([w.controller],E);const C={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},A={start:["end","center"],end:["start","center"],center:["end","start"]};function getAnchoredPosition(t,n,r={}){const i=function getPositionedParent(t){if(function isOnTopLayer(t){var n;if("DIALOG"===t.tagName)return!0;try{if(t.matches(":popover-open")&&/native code/.test(null===(n=document.body.showPopover)||void 0===n?void 0:n.toString()))return!0}catch(r){return!1}return!1}(t))return document.body;let n=t.parentNode;for(;null!==n;){if(n instanceof HTMLElement&&"static"!==getComputedStyle(n).position)return n;n=n.parentNode}return document.body}(t),o=function getClippingRect(t){let n=t;for(;null!==n&&n instanceof Element;){if("visible"!==getComputedStyle(n).overflow)break;n=n.parentNode}const r=n!==document.body&&n instanceof HTMLElement?n:document.body,i=r.getBoundingClientRect(),o=getComputedStyle(r),[a,s,l,c]=[o.borderTopWidth,o.borderLeftWidth,o.borderRightWidth,o.borderBottomWidth].map((t=>parseInt(t,10)||0));return{top:i.top+a,left:i.left+s,width:i.width-l-s,height:Math.max(i.height-a-c,r===document.body?window.innerHeight:-1/0)}}(i),a=getComputedStyle(i),s=i.getBoundingClientRect(),[l,c]=[a.borderTopWidth,a.borderLeftWidth].map((t=>parseInt(t,10)||0));return function pureCalculateAnchoredPosition(t,n,r,i,{side:o,align:a,allowOutOfBounds:s,anchorOffset:l,alignmentOffset:c}){const m={top:t.top-n.top,left:t.left-n.left,width:t.width,height:t.height};let p=calculatePosition(r,i,o,a,l,c),u=o,h=a;if(p.top-=n.top,p.left-=n.left,!s){const s=C[o];let y=0;if(s){let t=o;for(;yt.width+m.left&&(p.left=t.width+m.left-r.width),s&&yt.height+m.top&&(p.top=Math.max(t.height+m.top-r.height,0))}return Object.assign(Object.assign({},p),{anchorSide:u,anchorAlign:h})}(o,{top:s.top+l,left:s.left+c},t.getBoundingClientRect(),n instanceof Element?n.getBoundingClientRect():n,function getDefaultSettings(t={}){var n,r,i,o,a;const s=null!==(n=t.side)&&void 0!==n?n:z.side,l=null!==(r=t.align)&&void 0!==r?r:z.align;return{side:s,align:l,anchorOffset:null!==(i=t.anchorOffset)&&void 0!==i?i:"inside-center"===s?0:z.anchorOffset,alignmentOffset:null!==(o=t.alignmentOffset)&&void 0!==o?o:"center"!==l&&s.startsWith("inside")?z.alignmentOffset:0,allowOutOfBounds:null!==(a=t.allowOutOfBounds)&&void 0!==a?a:z.allowOutOfBounds}}(r))}const z={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function calculatePosition(t,n,r,i,o,a){const s=n.left+n.width,l=n.top+n.height;let c=-1,m=-1;return"outside-top"===r?c=n.top-o-t.height:"outside-bottom"===r?c=l+o:"outside-left"===r?m=n.left-o-t.width:"outside-right"===r&&(m=s+o),"outside-top"!==r&&"outside-bottom"!==r||(m="start"===i?n.left+a:"center"===i?n.left-(t.width-n.width)/2+a:s-t.width-a),"outside-left"!==r&&"outside-right"!==r||(c="start"===i?n.top+a:"center"===i?n.top-(t.height-n.height)/2+a:l-t.height-a),"inside-top"===r?c=n.top+o:"inside-bottom"===r?c=l-o-t.height:"inside-left"===r?m=n.left+o:"inside-right"===r?m=s-o-t.width:"inside-center"===r&&(m=(s+n.left)/2-t.width/2+o),"inside-top"===r||"inside-bottom"===r?m="start"===i?n.left+a:"center"===i?n.left-(t.width-n.width)/2+a:s-t.width-a:"inside-left"!==r&&"inside-right"!==r&&"inside-center"!==r||(c="start"===i?n.top+a:"center"===i?n.top-(t.height-n.height)/2+a:l-t.height-a),{top:c,left:m}}function shouldRecalculatePosition(t,n,r,i){return"outside-top"===t||"outside-bottom"===t?n.topr.height+r.top:n.leftr.width+r.left}function shouldRecalculateAlignment(t,n,r,i){return"end"===t?n.leftr.left+r.width||n.leftt instanceof HTMLElement&&a(t,o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!n.reverse&&a(t,o)&&(yield t),n.reverse){let t=s.lastChild();for(;t;)l=t,t=s.lastChild()}else l=s.firstChild();for(;l instanceof HTMLElement;)yield l,l=n.reverse?s.previousNode():s.nextNode();n.reverse&&a(t,o)&&(yield t)}function getFocusableChild(t,n=!1){return iterateFocusableElements(t,{reverse:n,strict:!0,onlyTabbable:!0}).next().value}function isFocusable(t,n=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(t.tagName)&&t.disabled,i=t.hidden,o=t instanceof HTMLInputElement&&"hidden"===t.type,a=t.classList.contains("sentinel");if(r||i||o||a)return!1;if(n){const n=getComputedStyle(t),r=0===t.offsetWidth||0===t.offsetHeight,i=["hidden","collapse"].includes(n.visibility),o="none"===n.display||!t.offsetParent,a=0===t.getClientRects().length;if(r||i||a||o)return!1}return null!=t.getAttribute("tabindex")||("true"===t.getAttribute("contenteditable")||"plaintext-only"===t.getAttribute("contenteditable")||!(t instanceof HTMLAnchorElement&&null==t.getAttribute("href"))&&-1!==t.tabIndex)}function isTabbable(t,n=!1){return isFocusable(t,n)&&"-1"!==t.getAttribute("tabindex")}let k=!1;function noop(){}try{const t=Object.create({},{signal:{get(){k=!0}}});window.addEventListener("test",noop,t),window.removeEventListener("test",noop,t)}catch(kr){}function polyfill(){(function featureSupported(){return k})()||(!function monkeyPatch(){if("undefined"==typeof window)return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(n,r,i){return"object"==typeof i&&"signal"in i&&i.signal instanceof AbortSignal&&t.call(i.signal,"abort",(()=>{this.removeEventListener(n,r,i)})),t.call(this,n,r,i)}}(),k=!0)}polyfill();const I=[];let _,B;function focusTrap(t,n,r){const i=new AbortController,o=null!=r?r:i.signal;t.setAttribute("data-focus-trap","active");const a=document.createElement("span");a.setAttribute("class","sentinel"),a.setAttribute("tabindex","0"),a.setAttribute("aria-hidden","true"),a.onfocus=()=>{const n=getFocusableChild(t,!0);null==n||n.focus()};const s=document.createElement("span");s.setAttribute("class","sentinel"),s.setAttribute("tabindex","0"),s.setAttribute("aria-hidden","true"),s.onfocus=()=>{const n=getFocusableChild(t);null==n||n.focus()},t.prepend(a),t.append(s);const l=function observeFocusTrap(t,n){const r=new MutationObserver((r=>{for(const i of r)if("childList"===i.type&&i.addedNodes.length){if(Array.from(i.addedNodes).filter((t=>t instanceof HTMLElement&&t.classList.contains("sentinel")&&"SPAN"===t.tagName)).length)return;const r=t.firstElementChild,o=t.lastElementChild,[a,s]=n;(null==r?void 0:r.classList.contains("sentinel"))||t.insertAdjacentElement("afterbegin",a),(null==o?void 0:o.classList.contains("sentinel"))||t.insertAdjacentElement("beforeend",s)}}));return r.observe(t,{childList:!0}),r}(t,[a,s]);let c;function ensureTrapZoneHasFocus(r){if(r instanceof HTMLElement&&document.contains(t)){if(t.contains(r))return void(c=r);if(c&&isTabbable(c)&&t.contains(c))return void c.focus();if(n&&t.contains(n))return void n.focus();{const n=getFocusableChild(t);return void(null==n||n.focus())}}}const m=function followSignal(t){const n=new AbortController;return t.addEventListener("abort",(()=>{n.abort()})),n}(o);if(_){const t=_;_.container.setAttribute("data-focus-trap","suspended"),_.controller.abort(),I.push(t)}m.signal.addEventListener("abort",(()=>{_=void 0})),o.addEventListener("abort",(()=>{t.removeAttribute("data-focus-trap");const n=t.getElementsByClassName("sentinel");for(;n.length>0;)n[0].remove();const r=I.findIndex((n=>n.container===t));r>=0&&I.splice(r,1),l.disconnect(),function tryReactivate(){const t=I.pop();t&&focusTrap(t.container,t.initialFocus,t.originalSignal)}()})),document.addEventListener("focus",(t=>{ensureTrapZoneHasFocus(t.target)}),{signal:m.signal,capture:!0}),ensureTrapZoneHasFocus(document.activeElement),_={container:t,controller:m,initialFocus:n,originalSignal:o};const p=I.findIndex((n=>n.container===t));if(p>=0&&I.splice(p,1),!r)return i}function isMacOS(){return void 0===B&&(B=/^mac/i.test(window.navigator.platform)),B}let q=1e4;var O;polyfill(),function(t){t[t.ArrowHorizontal=1]="ArrowHorizontal",t[t.ArrowVertical=2]="ArrowVertical",t[t.JK=4]="JK",t[t.HL=8]="HL",t[t.HomeAndEnd=16]="HomeAndEnd",t[t.PageUpDown=256]="PageUpDown",t[t.WS=32]="WS",t[t.AD=64]="AD",t[t.Tab=128]="Tab",t[t.Backspace=512]="Backspace",t[t.ArrowAll=3]="ArrowAll",t[t.HJKL=12]="HJKL",t[t.WASD=96]="WASD",t[t.All=511]="All"}(O||(O={}));const D={ArrowLeft:O.ArrowHorizontal,ArrowDown:O.ArrowVertical,ArrowUp:O.ArrowVertical,ArrowRight:O.ArrowHorizontal,h:O.HL,j:O.JK,k:O.JK,l:O.HL,a:O.AD,s:O.WS,w:O.WS,d:O.AD,Tab:O.Tab,Home:O.HomeAndEnd,End:O.HomeAndEnd,PageUp:O.PageUpDown,PageDown:O.PageUpDown,Backspace:O.Backspace},H={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function getDirection(t){const n=H[t.key];if("Tab"===t.key&&t.shiftKey)return"previous";const r=isMacOS();if(r&&t.metaKey||!r&&t.ctrlKey){if("ArrowLeft"===t.key||"ArrowUp"===t.key)return"start";if("ArrowRight"===t.key||"ArrowDown"===t.key)return"end"}return n}const F="data-is-active-descendant",j="data-has-active-descendant";function focusZone(t,n){var r,i,o,a,s;const l=[],c=new WeakMap,m=null!==(r=null==n?void 0:n.bindKeys)&&void 0!==r?r:((null==n?void 0:n.getNextFocusable)?O.ArrowAll:O.ArrowVertical)|O.HomeAndEnd,p=null!==(i=null==n?void 0:n.focusOutBehavior)&&void 0!==i?i:"stop",u=null!==(o=null==n?void 0:n.focusInStrategy)&&void 0!==o?o:"previous",h=null==n?void 0:n.activeDescendantControl,y=null==n?void 0:n.onActiveDescendantChanged;let x;const v=null!==(a=null==n?void 0:n.preventScroll)&&void 0!==a&&a;function getFirstFocusableElement(){return l[0]}function updateFocusedElement(t,n=!1){const r=x;x=t,h?t&&function isActiveDescendantInputFocused(){return document.activeElement===h}()?setActiveDescendant(r,t,n):clearActiveDescendant():(r&&r!==t&&c.has(r)&&r.setAttribute("tabindex","-1"),null==t||t.setAttribute("tabindex","0"))}function setActiveDescendant(n,r,i=!1){r.id||r.setAttribute("id",function uniqueId(){return"__primer_id_"+q++}()),n&&n!==r&&n.removeAttribute(F),h&&(i||h.getAttribute("aria-activedescendant")!==r.id)&&(h.setAttribute("aria-activedescendant",r.id),t.setAttribute(j,r.id),r.setAttribute(F,i?"activated-directly":"activated-indirectly"),null==y||y(r,n,i))}function clearActiveDescendant(n=x){"first"===u&&(x=void 0),null==h||h.removeAttribute("aria-activedescendant"),t.removeAttribute(j),null==n||n.removeAttribute(F);for(const r of t.querySelectorAll(`[${F}]`))null==r||r.removeAttribute(F);null==y||y(void 0,n,!1)}function beginFocusManagement(...t){const r=t.filter((t=>{var r,i;return null===(i=null===(r=null==n?void 0:n.focusableElementFilter)||void 0===r?void 0:r.call(n,t))||void 0===i||i}));if(0!==r.length){l.splice(function findInsertionIndex(t){const n=t[0];if(0===l.length)return 0;let r=0,i=l.length-1;for(;r<=i;){const t=Math.floor((r+i)/2);followsInDocument(n,l[t])?i=t-1:r=t+1}return r}(r),0,...r);for(const t of r)c.has(t)||c.set(t,t.getAttribute("tabindex")),t.setAttribute("tabindex","-1");x||updateFocusedElement(getFirstFocusableElement())}}function followsInDocument(t,n){return(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)>0}function endFocusManagement(...t){for(const n of t){const t=l.indexOf(n);t>=0&&l.splice(t,1);const r=c.get(n);if(void 0!==r&&(null===r?n.removeAttribute("tabindex"):n.setAttribute("tabindex",r),c.delete(n)),n===x){updateFocusedElement(getFirstFocusableElement())}}}const w={reverse:null==n?void 0:n.reverse,strict:null==n?void 0:n.strict,onlyTabbable:null==n?void 0:n.onlyTabbable};beginFocusManagement(...iterateFocusableElements(t,w));updateFocusedElement("function"==typeof u?u(document.body):getFirstFocusableElement());new MutationObserver((t=>{for(const n of t){for(const t of n.removedNodes)t instanceof HTMLElement&&endFocusManagement(...iterateFocusableElements(t));"attributes"===n.type&&null===n.oldValue&&n.target instanceof HTMLElement&&endFocusManagement(n.target)}for(const n of t){for(const t of n.addedNodes)t instanceof HTMLElement&&beginFocusManagement(...iterateFocusableElements(t,w));"attributes"===n.type&&null!==n.oldValue&&n.target instanceof HTMLElement&&beginFocusManagement(n.target)}})).observe(t,{subtree:!0,childList:!0,attributeFilter:["hidden","disabled"],attributeOldValue:!0});const E=new AbortController,C=null!==(s=null==n?void 0:n.abortSignal)&&void 0!==s?s:E.signal;let A;C.addEventListener("abort",(()=>{endFocusManagement(...l)})),t.addEventListener("mousedown",(t=>{t.target instanceof HTMLElement&&t.target!==document.activeElement&&(A=l.indexOf(t.target))}),{signal:C}),h?(t.addEventListener("focusin",(t=>{t.target instanceof HTMLElement&&l.includes(t.target)&&(h.focus({preventScroll:v}),updateFocusedElement(t.target))}),{signal:C}),t.addEventListener("mousemove",(({target:t})=>{if(!(t instanceof Node))return;const n=l.find((n=>n.contains(t)));n&&updateFocusedElement(n)}),{signal:C,capture:!0}),h.addEventListener("focusin",(()=>{x?setActiveDescendant(void 0,x):updateFocusedElement(getFirstFocusableElement())}),{signal:C}),h.addEventListener("focusout",(()=>{clearActiveDescendant()}),{signal:C})):t.addEventListener("focusin",(n=>{if(n.target instanceof HTMLElement)if(void 0!==A)A>=0&&l[A]!==x&&updateFocusedElement(l[A]),A=void 0;else if("previous"===u)updateFocusedElement(n.target);else if("closest"===u||"first"===u){if(n.relatedTarget instanceof Element&&!t.contains(n.relatedTarget)){const t="previous"===k?l.length-1:0,n=l[t];return void(null==n||n.focus({preventScroll:v}))}updateFocusedElement(n.target)}else if("function"==typeof u)if(n.relatedTarget instanceof Element&&!t.contains(n.relatedTarget)){const t=u(n.relatedTarget);if((t?l.indexOf(t):-1)>=0&&t instanceof HTMLElement)return void t.focus({preventScroll:v})}else updateFocusedElement(n.target);k=void 0}),{signal:C});const z=null!=h?h:t;let k;return"closest"===u&&document.addEventListener("keydown",(t=>{"Tab"===t.key&&(k=getDirection(t))}),{signal:C,capture:!0}),z.addEventListener("keydown",(r=>{var i;if(r.key in H){const o=D[r.key];if(!r.defaultPrevented&&(o&m)>0&&!function shouldIgnoreFocusHandling(t,n){const r=t.key,i=[...r].length,o=n instanceof HTMLInputElement&&"text"===n.type||n instanceof HTMLTextAreaElement;if(o&&(1===i||"Home"===r||"End"===r))return!0;if(n instanceof HTMLSelectElement){if(1===i)return!0;if("ArrowDown"===r&&isMacOS()&&!t.metaKey)return!0;if("ArrowDown"===r&&!isMacOS()&&t.altKey)return!0}if(n instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(o){const t=n,i=0===t.selectionStart&&0===t.selectionEnd,o=t.selectionStart===t.value.length&&t.selectionEnd===t.value.length;if("ArrowLeft"===r&&!i)return!0;if("ArrowRight"===r&&!o)return!0;if(t instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!i)return!0;if("ArrowDown"===r&&!o)return!0}}return!1}(r,document.activeElement)){const o=getDirection(r);let a;if((null==n?void 0:n.getNextFocusable)&&(a=n.getNextFocusable(o,null!==(i=document.activeElement)&&void 0!==i?i:void 0,r)),!a){const n=function getCurrentFocusedIndex(){if(!x)return 0;const n=l.indexOf(x);return-1!==n?n:x===t?-1:0}();let i=n;"previous"===o?i-=1:"start"===o?i=0:"next"===o?i+=1:i=l.length-1,i<0&&(i="wrap"===p&&"Tab"!==r.key?l.length-1:0),i>=l.length&&(i="wrap"===p&&"Tab"!==r.key?0:l.length-1),n!==i&&(a=l[i])}h?updateFocusedElement(a||x,!0):a&&(k=o,a.focus({preventScroll:v})),("Tab"!==r.key||a)&&r.preventDefault()}}}),{signal:C}),E}var $,G,ee,te,ne,re,ie,action_bar_element_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},action_bar_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},action_bar_element_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const oe=new IntersectionObserver((t=>{for(const n of t){const t=n.target;n.isIntersecting&&t instanceof le&&t.update()}})),ae=new ResizeObserver((t=>{for(const n of t){const t=n.target;t instanceof le&&t.update()}}));var se;!function(t){t[t.Item=0]="Item",t[t.Divider=1]="Divider"}(se||(se={}));let le=class ActionBarElement extends HTMLElement{constructor(){super(...arguments),$.add(this),G.set(this,null)}connectedCallback(){ae.observe(this),oe.observe(this),requestAnimationFrame((()=>{this.style.overflow="visible",this.update()}))}disconnectedCallback(){ae.unobserve(this),oe.unobserve(this)}menuItemClick(t){const n=t.currentTarget,r=n?.getAttribute("data-for");r&&document.getElementById(r)?.click()}update(){const t=action_bar_element_classPrivateFieldGet(this,$,"a",ee);if(!t)return;const n=t.getBoundingClientRect().top;let r=null;action_bar_element_classPrivateFieldGet(this,$,"m",ie).call(this,((t,i,o)=>{const a=t.getBoundingClientRect().top;return o===se.Item&&(a>n?(action_bar_element_classPrivateFieldGet(this,$,"m",ne).call(this,i),this.moreMenu.hidden&&(this.moreMenu.hidden=!1),r===se.Divider&&action_bar_element_classPrivateFieldGet(this,$,"m",ne).call(this,i-1)):(action_bar_element_classPrivateFieldGet(this,$,"m",te).call(this,i),i===this.items.length-1&&(this.moreMenu.hidden=!0),r===se.Divider&&action_bar_element_classPrivateFieldGet(this,$,"m",te).call(this,i-1))),r=o,!0})),action_bar_element_classPrivateFieldGet(this,G,"f")&&action_bar_element_classPrivateFieldGet(this,G,"f").abort(),action_bar_element_classPrivateFieldSet(this,G,focusZone(this,{bindKeys:O.ArrowHorizontal|O.HomeAndEnd,focusOutBehavior:"wrap",focusableElementFilter:t=>{const n=this.items.indexOf(t.parentElement),r=n>-1&&"visible"===this.items[n].style.visibility,i=t===this.moreMenu.invokerElement&&!this.moreMenu.hidden;return r||i}}),"f")}};G=new WeakMap,$=new WeakSet,ee=function _ActionBarElement_firstItem_get(){let t=null;return action_bar_element_classPrivateFieldGet(this,$,"m",ie).call(this,((n,r,i)=>i!==se.Item||(t=n,!1))),t},te=function _ActionBarElement_showItem(t){const n=this.items[t],r=action_bar_element_classPrivateFieldGet(this,$,"a",re)[t];n&&r&&(n.style.setProperty("visibility","visible"),r.hidden=!0)},ne=function _ActionBarElement_hideItem(t){const n=this.items[t],r=action_bar_element_classPrivateFieldGet(this,$,"a",re)[t];n&&r&&(n.style.setProperty("visibility","hidden"),r.hidden=!1)},re=function _ActionBarElement_menuItems_get(){return this.moreMenu.querySelectorAll('[role="menu"] > li')},ie=function _ActionBarElement_eachItem(t){for(let n=0;ntrackComposition(this,t))),fromEvent(t,"compositionend",(t=>trackComposition(this,t))),fromEvent(t,"click",(n=>shouldCommit(t,n))),fromEvent(t,"change",(n=>shouldCommit(t,n))),fromEvent(t,"keydown",(n=>function keydown(t,n,r){if(!(r instanceof KeyboardEvent))return;if(t.querySelector("details[open]"))return;const i=ce.get(n);if(!i||i.isComposing)return;const o=r.target instanceof Element&&"SUMMARY"===r.target.tagName;switch(r.key){case"Escape":t.hasAttribute("open")&&(dist_close(t),r.preventDefault(),r.stopPropagation());break;case"ArrowDown":{o&&!t.hasAttribute("open")&&t.setAttribute("open","");const n=sibling(t,!0);n&&n.focus(),r.preventDefault()}break;case"ArrowUp":{o&&!t.hasAttribute("open")&&t.setAttribute("open","");const n=sibling(t,!1);n&&n.focus(),r.preventDefault()}break;case"n":if(de&&r.ctrlKey){const n=sibling(t,!0);n&&n.focus(),r.preventDefault()}break;case"p":if(de&&r.ctrlKey){const n=sibling(t,!1);n&&n.focus(),r.preventDefault()}break;case" ":case"Enter":{const n=document.activeElement;n instanceof HTMLElement&&isMenuItem(n)&&n.closest("details")===t&&(r.preventDefault(),r.stopPropagation(),n.click())}}}(t,this,n))),fromEvent(t,"toggle",(()=>loadFragment(t,this)),{once:!0}),fromEvent(t,"toggle",(()=>function closeCurrentMenu(t){if(!t.hasAttribute("open"))return;for(const n of document.querySelectorAll("details[open] > details-menu")){const r=n.closest("details");r&&r!==t&&!r.contains(t)&&r.removeAttribute("open")}}(t))),this.preload?fromEvent(t,"mouseover",(()=>loadFragment(t,this)),{once:!0}):me,...focusOnOpen(t)];ce.set(this,{subscriptions:r,loaded:!1,isComposing:!1})}disconnectedCallback(){const t=ce.get(this);if(t){ce.delete(this);for(const n of t.subscriptions)n.unsubscribe()}}}const ce=new WeakMap,me={unsubscribe(){}};function fromEvent(t,n,r,i=!1){return t.addEventListener(n,r,i),{unsubscribe:()=>{t.removeEventListener(n,r,i)}}}function loadFragment(t,n){const r=n.getAttribute("src");if(!r)return;const i=ce.get(n);if(!i)return;if(i.loaded)return;i.loaded=!0;const o=n.querySelector("include-fragment");o&&!o.hasAttribute("src")&&(o.addEventListener("loadend",(()=>autofocus(t))),o.setAttribute("src",r))}function focusOnOpen(t){let n=!1;return[fromEvent(t,"mousedown",(()=>n=!0)),fromEvent(t,"keydown",(()=>n=!1)),fromEvent(t,"toggle",(()=>{t.hasAttribute("open")&&(autofocus(t)||n||function focusFirstItem(t){const n=document.activeElement;if(n&&isMenuItem(n)&&t.contains(n))return;const r=sibling(t,!0);r&&r.focus()}(t))}))]}function autofocus(t){if(!t.hasAttribute("open"))return!1;const n=t.querySelector("details-menu [autofocus]");return!!n&&(n.focus(),!0)}function sibling(t,n){const r=Array.from(t.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled])')),i=document.activeElement,o=i instanceof HTMLElement?r.indexOf(i):-1,a=n?r[o+1]:r[o-1],s=n?r[0]:r[r.length-1];return a||s}const de=navigator.userAgent.match(/Macintosh/);function shouldCommit(t,n){const r=n.target;if(r instanceof Element&&r.closest("details")===t)if("click"===n.type){const n=r.closest('[role="menuitem"], [role="menuitemradio"]');if(!n)return;const i=n.querySelector("input");if("LABEL"===n.tagName&&r===i)return;"LABEL"===n.tagName&&i&&!i.checked||commit(n,t)}else if("change"===n.type){const n=r.closest('[role="menuitemradio"], [role="menuitemcheckbox"]');n&&commit(n,t)}}function commit(t,n){if(t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled"))return;const r=t.closest("details-menu");if(!r)return;r.dispatchEvent(new CustomEvent("details-menu-select",{cancelable:!0,detail:{relatedTarget:t}}))&&(!function updateLabel(t,n){const r=n.querySelector("[data-menu-button]");if(!r)return;const i=function labelText(t){if(!t)return null;const n=t.hasAttribute("data-menu-button-text")?t:t.querySelector("[data-menu-button-text]");return n?n.getAttribute("data-menu-button-text")||n.textContent:null}(t);if(i)r.textContent=i;else{const n=function labelHTML(t){if(!t)return null;const n=t.hasAttribute("data-menu-button-contents")?t:t.querySelector("[data-menu-button-contents]");return n?n.innerHTML:null}(t);n&&(r.innerHTML=n)}}(t,n),function updateChecked(t,n){for(const r of n.querySelectorAll('[role="menuitemradio"], [role="menuitemcheckbox"]')){const n=r.querySelector('input[type="radio"], input[type="checkbox"]');let i=(r===t).toString();n instanceof HTMLInputElement&&(i=n.indeterminate?"mixed":n.checked.toString()),r.setAttribute("aria-checked",i)}}(t,n),"menuitemcheckbox"!==t.getAttribute("role")&&dist_close(n),r.dispatchEvent(new CustomEvent("details-menu-selected",{detail:{relatedTarget:t}})))}function isMenuItem(t){const n=t.getAttribute("role");return"menuitem"===n||"menuitemcheckbox"===n||"menuitemradio"===n}function dist_close(t){if(!t.hasAttribute("open"))return;t.removeAttribute("open");const n=t.querySelector("summary");n&&n.focus()}function trackComposition(t,n){const r=ce.get(t);r&&(r.isComposing="compositionstart"===n.type)}window.customElements.get("details-menu")||(window.DetailsMenuElement=DetailsMenuElement,window.customElements.define("details-menu",DetailsMenuElement));var pe,ue,anchored_position_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},anchored_position_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const he=(()=>{const t=new Set;let n=null,r=null;function updateVisibleAnchors(){for(const n of t)n.update()}return i=>{window.addEventListener("resize",updateVisibleAnchors),window.addEventListener("scroll",updateVisibleAnchors),n||(n=new IntersectionObserver((n=>{for(const r of n){const n=r.target;r.isIntersecting?(n.update(),t.add(n)):t.delete(n)}}))),r||(r=new ResizeObserver((()=>{for(const n of t)n.update()}))),r.observe(i.ownerDocument.documentElement),n.observe(i)}})();class AnchoredPositionElement extends HTMLElement{constructor(){super(...arguments),pe.set(this,null),ue.set(this,void 0)}get align(){const t=this.getAttribute("align");return"center"===t||"end"===t?t:"start"}set align(t){this.setAttribute("align",`${t}`)}get side(){const t=this.getAttribute("side");return"inside-top"===t||"inside-bottom"===t||"inside-left"===t||"inside-right"===t||"inside-center"===t||"outside-top"===t||"outside-left"===t||"outside-right"===t?t:"outside-bottom"}set side(t){this.setAttribute("side",`${t}`)}get anchorOffset(){const t=this.getAttribute("anchor-offset");return"spacious"===t||"8"===t?8:4}set anchorOffset(t){this.setAttribute("anchor-offset",`${t}`)}get anchor(){return this.getAttribute("anchor")||""}set anchor(t){this.setAttribute("anchor",`${t}`)}get anchorElement(){if(anchored_position_classPrivateFieldGet(this,pe,"f"))return anchored_position_classPrivateFieldGet(this,pe,"f");const t=this.anchor;return t?this.ownerDocument.getElementById(t):null}set anchorElement(t){anchored_position_classPrivateFieldSet(this,pe,t,"f"),anchored_position_classPrivateFieldGet(this,pe,"f")||this.removeAttribute("anchor")}get alignmentOffset(){return Number(this.getAttribute("alignment-offset"))}set alignmentOffset(t){this.setAttribute("alignment-offset",`${t}`)}get allowOutOfBounds(){return this.hasAttribute("allow-out-of-bounds")}set allowOutOfBounds(t){this.toggleAttribute("allow-out-of-bounds",t)}connectedCallback(){this.update(),this.addEventListener("beforetoggle",(()=>this.update())),he(this)}attributeChangedCallback(){this.update()}update(){this.isConnected&&(cancelAnimationFrame(anchored_position_classPrivateFieldGet(this,ue,"f")),anchored_position_classPrivateFieldSet(this,ue,requestAnimationFrame((()=>{const t=this.anchorElement;if(this.classList.toggle("not-anchored",!t),t){const{left:n,top:r}=getAnchoredPosition(this,t,this);this.style.top=`${r}px`,this.style.left=`${n}px`,this.style.bottom="auto",this.style.right="auto"}else this.style.top="0",this.style.left="0",this.style.bottom="0",this.style.right="0"})),"f"))}}pe=new WeakMap,ue=new WeakMap,AnchoredPositionElement.observedAttributes=["align","side","anchor","alignment-offset","allow-out-of-bounds"];customElements.get("anchored-position")||(window.AnchoredPositionElement=AnchoredPositionElement,customElements.define("anchored-position",AnchoredPositionElement));var ge,fe,ye,dialog_helper_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},dialog_helper_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};function dialogInvokerButtonHandler(t){const n=t.target,r=n?.closest("button");if(!r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled"))return;let i=r?.getAttribute("data-show-dialog-id");if(i){const n=document.getElementById(i);if(n instanceof HTMLDialogElement){n.showModal(),t.preventDefault();let i=r,o=!1;for(;i;)i=i.parentElement?.closest("[popover]:not(:popover-open)"),i&&"auto"===i.popover&&(i.classList.add("dialog-inside-popover-fix"),i.popover="manual",i.showPopover(),o=!0);o&&(n.addEventListener("close",(t=>t.stopImmediatePropagation()),{once:!0}),n.close(),n.showModal(),n.addEventListener("close",(()=>{for(const t of n.ownerDocument.querySelectorAll(".dialog-inside-popover-fix"))t.contains(n)&&(t.classList.remove("dialog-inside-popover-fix"),t.popover="auto",t.showPopover())}),{once:!0}))}}if(i=r.getAttribute("data-close-dialog-id")||r.getAttribute("data-submit-dialog-id"),i){const t=document.getElementById(i);t instanceof HTMLDialogElement&&t.open&&t.close()}}class DialogHelperElement extends HTMLElement{constructor(){super(...arguments),ge.add(this),fe.set(this,null)}get dialog(){return this.querySelector("dialog")}connectedCallback(){const{signal:t}=dialog_helper_classPrivateFieldSet(this,fe,new AbortController,"f");document.addEventListener("click",dialogInvokerButtonHandler,!0),document.addEventListener("click",this,{signal:t}),this.ownerDocument.body.style.setProperty("--dialog-scrollgutter",window.innerWidth-this.ownerDocument.body.clientWidth+"px"),new MutationObserver((t=>{for(const n of t)n.target===this.dialog&&dialog_helper_classPrivateFieldGet(this,ge,"m",ye).call(this)})).observe(this,{subtree:!0,attributeFilter:["open"]}),dialog_helper_classPrivateFieldGet(this,ge,"m",ye).call(this)}disconnectedCallback(){dialog_helper_classPrivateFieldGet(this,fe,"f")?.abort()}handleEvent(t){const n=t.target,r=this.dialog;if(n!==r||!r?.open)return;const i=r.getBoundingClientRect();i.top<=t.clientY&&t.clientY<=i.top+i.height&&i.left<=t.clientX&&t.clientX<=i.left+i.width||r.close()}}fe=new WeakMap,ge=new WeakSet,ye=function _DialogHelperElement_handleDialogOpenAttribute(){this.dialog&&this.dialog.matches("[open]:not(:modal)")&&(this.dialog.addEventListener("close",(t=>t.stopImmediatePropagation()),{once:!0}),this.dialog.close(),this.dialog.showModal())},window.customElements.get("dialog-helper")||(window.DialogHelperElement=DialogHelperElement,window.customElements.define("dialog-helper",DialogHelperElement));var be=class extends Event{oldState;newState;constructor(t,{oldState:n="",newState:r="",...i}={}){super(t,i),this.oldState=String(n||""),this.newState=String(r||"")}},xe=new WeakMap;function queuePopoverToggleEventTask(t,n,r){xe.set(t,setTimeout((()=>{xe.has(t)&&t.dispatchEvent(new be("toggle",{cancelable:!1,oldState:n,newState:r}))}),0))}var Ne=globalThis.ShadowRoot||function(){},ve=globalThis.HTMLDialogElement||function(){},Se=new WeakMap,we=new WeakMap,Ee=new WeakMap;function getPopoverVisibilityState(t){return Ee.get(t)||"hidden"}var Ce=new WeakMap;function checkPopoverValidity(t,n){return("auto"===t.popover||"manual"===t.popover)&&(!!t.isConnected&&((!n||"showing"===getPopoverVisibilityState(t))&&(!(!n&&"hidden"!==getPopoverVisibilityState(t))&&(!(t instanceof ve&&t.hasAttribute("open"))&&document.fullscreenElement!==t))))}function getStackPosition(t){return t?Array.from(we.get(t.ownerDocument)||[]).indexOf(t)+1:0}function topMostClickedPopover(t){const n=nearestInclusiveOpenPopover(t),r=function nearestInclusiveTargetPopoverForInvoker(t){for(;t;){const n=t.popoverTargetElement;if(n instanceof HTMLElement)return n;if((t=t.parentElement||getRootNode(t))instanceof Ne&&(t=t.host),t instanceof Document)return}}(t);return getStackPosition(n)>getStackPosition(r)?n:r}function topMostAutoPopover(t){const n=we.get(t);for(const r of n||[]){if(r.isConnected)return r;n.delete(r)}return null}function getRootNode(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?getRootNode(t.parentNode):t}function nearestInclusiveOpenPopover(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Ee.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||getRootNode(t))instanceof Ne&&(t=t.host),t instanceof Document)return}}function popover_isFocusable(t){return!(t.hidden||t instanceof Ne)&&((!(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)||!t.disabled)&&(!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(!(t instanceof HTMLAnchorElement&&""===t.href)&&("number"==typeof t.tabIndex&&-1!==t.tabIndex))))}function popoverFocusingSteps(t){(function focusDelegate(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let n=t;n.shadowRoot&&(n=n.shadowRoot);let r=n.querySelector("[autofocus]");if(r)return r;{const t=n.querySelectorAll("slot");for(const n of t){const t=n.assignedElements({flatten:!0});for(const n of t){if(n.hasAttribute("autofocus"))return n;if(r=n.querySelector("[autofocus]"),r)return r}}}const i=t.ownerDocument.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){if(popover_isFocusable(o))return o;o=i.nextNode()}})(t)?.focus()}var Pe=new WeakMap;function showPopover(t){if(!checkPopoverValidity(t,!1))return;const n=t.ownerDocument;if(!t.dispatchEvent(new be("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!checkPopoverValidity(t,!1))return;let r=!1;if("auto"===t.popover){const r=t.getAttribute("popover");if(hideAllPopoversUntil(function topMostPopoverAncestor(t){const n=new Map;let r=0;for(const o of we.get(t.ownerDocument)||[])n.set(o,r),r+=1;n.set(t,r),r+=1;let i=null;return function checkAncestor(t){const r=nearestInclusiveOpenPopover(t);if(null===r)return null;const o=n.get(r);(null===i||n.get(i){const n=t.composedPath(),r=n[0];if(!(r instanceof Element)||r?.shadowRoot)return;const i=getRootNode(r);if(!(i instanceof Re||i instanceof Document))return;const o=n.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return o?(function popoverTargetAttributeActivationBehavior(t){const n=t.popoverTargetElement;if(!(n instanceof HTMLElement))return;const r=getPopoverVisibilityState(n);"show"===t.popoverTargetAction&&"showing"===r||"hide"===t.popoverTargetAction&&"hidden"===r||("showing"===r?hidePopover(n,!0,!0):checkPopoverValidity(n,!1)&&(Ce.set(n,t),showPopover(n)))}(o),void t.preventDefault()):void 0},onKeydown=t=>{const n=t.key,r=t.target;t.defaultPrevented||!r||"Escape"!==n&&"Esc"!==n||hideAllPopoversUntil(r.ownerDocument,!0,!0)};(t=>{t.addEventListener("click",handleInvokerActivation),t.addEventListener("keydown",onKeydown),t.addEventListener("pointerdown",lightDismissOpenPopovers),t.addEventListener("pointerup",lightDismissOpenPopovers)})(document),injectStyles(document)}();var ke,Le,Ie,_e,focus_group_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},focus_group_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};const Be=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]'].map((t=>`:not([hidden]) > ${t}`)).join(", "),getMnemonicFor=t=>t.textContent?.trim()[0].toLowerCase(),qe=/^\S$/;class FocusGroupElement extends HTMLElement{constructor(){super(...arguments),ke.add(this),Le.set(this,null),Ie.set(this,null)}get nowrap(){return this.hasAttribute("nowrap")}set nowrap(t){this.toggleAttribute("nowrap",t)}get direction(){return"horizontal"===this.getAttribute("direction")?"horizontal":"vertical"}set direction(t){this.setAttribute("direction",`${t}`)}get retain(){return this.hasAttribute("retain")}set retain(t){this.toggleAttribute("retain",t)}get mnemonics(){return this.hasAttribute("mnemonics")}connectedCallback(){focus_group_classPrivateFieldSet(this,Ie,new AbortController,"f");const{signal:t}=focus_group_classPrivateFieldGet(this,Ie,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusin",this,{signal:t})}disconnectedCallback(){focus_group_classPrivateFieldGet(this,Ie,"f")?.abort()}handleEvent(t){const{direction:n,nowrap:r}=this;if("focusin"===t.type){if(this.retain&&t.target instanceof Element&&t.target.matches(Be)){focus_group_classPrivateFieldGet(this,Le,"f")?.abort();const{signal:n}=focus_group_classPrivateFieldSet(this,Le,new AbortController,"f");for(const r of focus_group_classPrivateFieldGet(this,ke,"a",_e)){r.setAttribute("tabindex",r===t.target?"0":"-1");const i=t.target.closest("[popover]");r===t.target&&"auto"===i?.popover&&i.closest("focus-group")===this&&i.addEventListener("toggle",(t=>{if(t.target instanceof Element&&"closed"===t.newState&&(focus_group_classPrivateFieldGet(this,Le,"f")?.abort(),r.setAttribute("tabindex","-1"),i.id)){const t=this.querySelector(`[popovertarget="${i.id}"]`);t?t.setAttribute("tabindex","0"):focus_group_classPrivateFieldGet(this,ke,"a",_e)[0]?.setAttribute("tabindex","0")}}),{signal:n})}}}else if(t instanceof KeyboardEvent){const i=Array.from(focus_group_classPrivateFieldGet(this,ke,"a",_e));let o=i.indexOf(t.target);const a=t.key;if("Up"===a||"ArrowUp"===a)"vertical"!==n&&"both"!==n||(o-=o<0?0:1,t.preventDefault());else if("Down"===a||"ArrowDown"===a)"vertical"!==n&&"both"!==n||(o+=1,t.preventDefault());else if("Left"===t.key||"ArrowLeft"===t.key)"horizontal"!==n&&"both"!==n||(o-=1,t.preventDefault());else if("Right"===t.key||"ArrowRight"===t.key)"horizontal"!==n&&"both"!==n||(o+=1,t.preventDefault());else if("Home"===t.key||"PageUp"===t.key)o=0,t.preventDefault();else if("End"===t.key||"PageDown"===t.key)o=i.length-1,t.preventDefault();else{if(!this.mnemonics||!qe.test(a))return;{const n=a.toLowerCase(),s=o>0&&getMnemonicFor(t.target)===n?o:0;o=i.findIndex(((t,r)=>r>s&&getMnemonicFor(t)===n)),o<0&&!r&&(o=i.findIndex((t=>getMnemonicFor(t)===n)))}}r&&o<0&&(o=0),!r&&o>=i.length&&(o=0);const s=i.at(Math.min(o,i.length-1));{let n=s;do{n=n.closest("[popover]:not(:popover-open)"),"auto"!==n?.popover||["ArrowRight","ArrowLeft"].includes(t.key)||n.showPopover(),n=n?.parentElement||null}while(n)}s?.focus()}}}Le=new WeakMap,Ie=new WeakMap,ke=new WeakSet,_e=function _FocusGroupElement_items_get(){return this.querySelectorAll(Be)};customElements.get("focus-group")||(window.FocusGroupElement=FocusGroupElement,customElements.define("focus-group",FocusGroupElement));var scrollable_region_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s};let Oe=class ScrollableRegionElement extends HTMLElement{constructor(){super(...arguments),this.hasOverflow=!1,this.labelledBy=""}connectedCallback(){this.style.overflow="auto",this.observer=new ResizeObserver((t=>{for(const n of t)this.hasOverflow=n.target.scrollHeight>n.target.clientHeight||n.target.scrollWidth>n.target.clientWidth})),this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}attributeChangedCallback(t){"data-has-overflow"===t&&(this.hasOverflow?(this.setAttribute("aria-labelledby",this.labelledBy),this.setAttribute("role","region"),this.setAttribute("tabindex","0")):(this.removeAttribute("aria-labelledby"),this.removeAttribute("role"),this.removeAttribute("tabindex")))}};scrollable_region_decorate([w.attr],Oe.prototype,"hasOverflow",void 0),scrollable_region_decorate([w.attr],Oe.prototype,"labelledBy",void 0),Oe=scrollable_region_decorate([w.controller],Oe),window.ScrollableRegionElement=Oe;var De,He,Fe,Ue,modal_dialog_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},modal_dialog_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};function focusIfNeeded(t){document.activeElement!==t&&t?.focus()}const Ve=[];function clickHandler(t){const n=t.target,r=n?.closest("button");if(!r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled"))return;let i=r?.getAttribute("data-show-dialog-id");if(i){t.stopPropagation();const n=document.getElementById(i);if(n instanceof ModalDialogElement)return n.openButton=r,n.show(),void t.preventDefault()}if(Ve.length&&(i=r.getAttribute("data-close-dialog-id")||r.getAttribute("data-submit-dialog-id"),i)){const t=document.getElementById(i);if(t instanceof ModalDialogElement){const n=Ve.findIndex((t=>t.id===i));Ve.splice(n,1),t.close(r.hasAttribute("data-submit-dialog-id"))}}}function keydownHandler(t){!(t instanceof KeyboardEvent&&"keydown"===t.type&&"Enter"===t.key)||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey||clickHandler(t)}function mousedownHandler(t){const n=t.target;if(n?.closest("button"))return;const r=Ve[Ve.length-1];if(!r)return;!n.closest(`#${r.getAttribute("id")}`)&&n.ownerDocument.addEventListener("mouseup",(t=>{t.target===n&&(Ve.pop(),r.close())}),{once:!0})}class ModalDialogElement extends HTMLElement{constructor(){super(...arguments),De.add(this),He.set(this,new AbortController)}get open(){return this.hasAttribute("open")}set open(t){if(t){if(this.open)return;this.setAttribute("open",""),this.setAttribute("aria-disabled","false"),document.body.style.paddingRight=window.innerWidth-document.body.clientWidth+"px",document.body.style.overflow="hidden",modal_dialog_classPrivateFieldGet(this,De,"a",Fe)?.classList.remove("Overlay--hidden"),modal_dialog_classPrivateFieldGet(this,He,"f").signal.aborted&&modal_dialog_classPrivateFieldSet(this,He,new AbortController,"f"),focusTrap(this,this.querySelector("[autofocus]"),modal_dialog_classPrivateFieldGet(this,He,"f").signal),Ve.push(this)}else{if(!this.open)return;this.removeAttribute("open"),this.setAttribute("aria-disabled","true"),modal_dialog_classPrivateFieldGet(this,De,"a",Fe)?.classList.add("Overlay--hidden"),document.body.style.paddingRight="0",document.body.style.overflow="initial",modal_dialog_classPrivateFieldGet(this,He,"f").abort();const t=this.openButton?.closest("details")||this.openButton?.closest("action-menu");focusIfNeeded(t?getFocusableChild(t):this.openButton),this.openButton=null}}get showButtons(){return document.querySelectorAll(`button[data-show-dialog-id='${this.id}']`)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),document.addEventListener("click",clickHandler),document.addEventListener("keydown",keydownHandler),document.addEventListener("mousedown",mousedownHandler),this.addEventListener("keydown",(t=>modal_dialog_classPrivateFieldGet(this,De,"m",Ue).call(this,t)))}show(){this.open=!0}close(t=!1){if(!1===this.open)return;const n=new Event(t?"close":"cancel");this.dispatchEvent(n),this.open=!1}}He=new WeakMap,De=new WeakSet,Fe=function _ModalDialogElement_overlayBackdrop_get(){return this.parentElement?.hasAttribute("data-modal-dialog-overlay")?this.parentElement:null},Ue=function _ModalDialogElement_keydown(t){if(t instanceof KeyboardEvent&&!t.isComposing&&this.open)switch(t.key){case"Escape":this.close(),t.preventDefault(),t.stopPropagation();break;case"Enter":t.target.getAttribute("data-close-dialog-id")===this.id&&t.stopPropagation();break}},window.customElements.get("modal-dialog")||(window.ModalDialogElement=ModalDialogElement,window.customElements.define("modal-dialog",ModalDialogElement));var je,$e,Ke,We,Ge,Xe,Qe,Je,nav_list_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},nav_list_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},nav_list_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};let Ye=class NavListElement extends HTMLElement{constructor(){super(...arguments),je.add(this),$e.set(this,void 0)}connectedCallback(){this.topLevelList&&nav_list_classPrivateFieldSet(this,$e,new ActionListTruncationObserver(this.topLevelList),"f")}disconnectedCallback(){this.topLevelList&&nav_list_classPrivateFieldGet(this,$e,"f").unobserve(this.topLevelList)}selectItemById(t){if(!t)return!1;const n=nav_list_classPrivateFieldGet(this,je,"m",Ke).call(this,t);return!!n&&(nav_list_classPrivateFieldGet(this,je,"m",Xe).call(this,n),!0)}selectItemByHref(t){if(!t)return!1;const n=nav_list_classPrivateFieldGet(this,je,"m",We).call(this,t);return!!n&&(nav_list_classPrivateFieldGet(this,je,"m",Xe).call(this,n),!0)}selectItemByCurrentLocation(){const t=nav_list_classPrivateFieldGet(this,je,"m",Ge).call(this);return!!t&&(nav_list_classPrivateFieldGet(this,je,"m",Xe).call(this,t),!0)}expandItem(t){t.nextElementSibling?.removeAttribute("data-hidden"),t.setAttribute("aria-expanded","true")}collapseItem(t){t.nextElementSibling?.setAttribute("data-hidden",""),t.setAttribute("aria-expanded","false"),t.focus()}itemIsExpanded(t){return"A"===t?.tagName||"true"===t?.getAttribute("aria-expanded")}handleItemWithSubItemClick(t){const n=t.target;if(!(n instanceof HTMLElement))return;const r=n.closest("button");r&&(this.itemIsExpanded(r)?this.collapseItem(r):this.expandItem(r),t.stopPropagation())}handleItemWithSubItemKeydown(t){const n=t.currentTarget;if(!(n instanceof HTMLElement))return;let r=n.closest("button");if(!r){const t=n.getAttribute("aria-labelledby");if(!t)return;r=document.getElementById(t)}this.itemIsExpanded(r)&&"Escape"===t.key&&this.collapseItem(r),t.stopPropagation()}};$e=new WeakMap,je=new WeakSet,Ke=function _NavListElement_findSelectedNavItemById(t){for(const n of this.items){if(n.classList.contains("ActionListItem--hasSubItem"))continue;if((n.getAttribute("data-item-id")?.split(" ")||[]).includes(t))return n}return null},We=function _NavListElement_findSelectedNavItemByHref(t){const n=this.querySelector(`.ActionListContent[href="proxy.php?url=${t}"]`);return n?n.closest(".ActionListItem"):null},Ge=function _NavListElement_findSelectedNavItemByCurrentLocation(){return nav_list_classPrivateFieldGet(this,je,"m",We).call(this,window.location.pathname)},Xe=function _NavListElement_select(t){const n=this.querySelector(".ActionListItem--navActive");n&&nav_list_classPrivateFieldGet(this,je,"m",Qe).call(this,n),t.classList.add("ActionListItem--navActive"),t.children.length>0&&t.children[0].setAttribute("aria-current","page");const r=nav_list_classPrivateFieldGet(this,je,"m",Je).call(this,t);r&&(this.expandItem(r),r.classList.add("ActionListContent--hasActiveSubItem"))},Qe=function _NavListElement_deselect(t){t.classList.remove("ActionListItem--navActive"),t.children.length>0&&t.children[0].removeAttribute("aria-current");const n=nav_list_classPrivateFieldGet(this,je,"m",Je).call(this,t);n&&(this.collapseItem(n),n.classList.remove("ActionListContent--hasActiveSubItem"))},Je=function _NavListElement_findParentMenu(t){if(!t.classList.contains("ActionListItem--subItem"))return null;const n=t.closest("li.ActionListItem--hasSubItem")?.querySelector("button.ActionListContent");return n||null},nav_list_decorate([w.targets],Ye.prototype,"items",void 0),nav_list_decorate([w.target],Ye.prototype,"topLevelList",void 0),Ye=nav_list_decorate([w.controller],Ye);var Ze,et,tt,nav_list_group_element_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},nav_list_group_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};let nt=class NavListGroupElement extends HTMLElement{constructor(){super(...arguments),Ze.add(this),tt.set(this,new ActionListTruncationObserver(this))}connectedCallback(){this.setShowMoreItemState()}get showMoreDisabled(){return this.showMoreItem.hasAttribute("aria-disabled")}set showMoreDisabled(t){t?this.showMoreItem.setAttribute("aria-disabled","true"):this.showMoreItem.removeAttribute("aria-disabled"),this.showMoreItem.classList.toggle("disabled",t)}set currentPage(t){this.showMoreItem.setAttribute("data-current-page",t.toString())}get currentPage(){return parseInt(this.showMoreItem.getAttribute("data-current-page"))||1}get totalPages(){return parseInt(this.showMoreItem.getAttribute("data-total-pages"))||1}get paginationSrc(){return this.showMoreItem.getAttribute("src")||""}async showMore(t){if(t.preventDefault(),this.showMoreDisabled)return;let n;this.showMoreDisabled=!0;try{const t=new URL(this.paginationSrc,window.location.origin);this.currentPage++,t.searchParams.append("page",this.currentPage.toString());const r=await fetch(t);if(!r.ok)return;n=await r.text(),this.currentPage===this.totalPages&&(this.showMoreItem.hidden=!0)}catch(o){return this.showMoreDisabled=!1,void this.currentPage--}const r=nav_list_group_element_classPrivateFieldGet(this,Ze,"m",et).call(this,document,n);r?.querySelector("li > a")?.setAttribute("data-targets","nav-list-group.focusMarkers");const i=t.target.closest("button").getAttribute("data-list-id");document.getElementById(i).append(r),this.focusMarkers.pop()?.focus(),this.showMoreDisabled=!1}setShowMoreItemState(){this.showMoreItem&&(this.currentPage=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},segmented_control_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};let ot=class SegmentedControlElement extends HTMLElement{constructor(){super(...arguments),rt.add(this)}connectedCallback(){segmented_control_classPrivateFieldGet(this,rt,"m",it).call(this)}select(t){const n=t.currentTarget;for(const r of this.items)r.classList.remove("SegmentedControl-item--selected"),r.querySelector("[aria-current]")?.setAttribute("aria-current","false");n.closest("li.SegmentedControl-item")?.classList.add("SegmentedControl-item--selected"),n.setAttribute("aria-current","true")}};rt=new WeakSet,it=function _SegmentedControlElement_updateButtonLabels(){for(const t of this.querySelectorAll(".Button-label"))t.setAttribute("data-content",t.textContent||"")},segmented_control_decorate([w.targets],ot.prototype,"items",void 0),ot=segmented_control_decorate([w.controller],ot),window.customElements.get("segmented-control")||(window.SegmentedControlElement=ot,window.customElements.define("segmented-control",ot));var toggle_switch_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s};let at=class ToggleSwitchElement extends HTMLElement{constructor(){super(...arguments),this.turbo=!1,this.toggling=!1}get src(){const t=this.getAttribute("src");if(!t)return null;const n=this.ownerDocument.createElement("a");return n.href=t,n.href}get csrf(){const t=this.querySelector("[data-csrf]");return this.getAttribute("data-csrf")||t instanceof HTMLInputElement&&t.value||null}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}isRemote(){return null!=this.src}async toggle(){if(!this.toggling&&(this.toggling=!0,!this.isDisabled())){if(!this.isRemote())return this.performToggle(),void(this.toggling=!1);this.performToggle(),this.setLoadingState();try{await this.submitForm()}catch(t){return void(t instanceof Error&&(this.setErrorState(t.message||"An error occurred, please try again."),this.performToggle()))}finally{this.toggling=!1}this.setSuccessState()}}turnOn(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","true"),this.classList.add("ToggleSwitch--checked"))}turnOff(){this.isDisabled()||(this.switch.setAttribute("aria-pressed","false"),this.classList.remove("ToggleSwitch--checked"))}isOn(){return"true"===this.switch.getAttribute("aria-pressed")}isOff(){return!this.isOn()}isDisabled(){return null!=this.switch.getAttribute("disabled")}disable(){this.switch.setAttribute("disabled","disabled")}enable(){this.switch.removeAttribute("disabled")}performToggle(){this.isOn()?this.turnOff():this.turnOn()}setLoadingState(){this.errorIcon.setAttribute("hidden","hidden"),this.loadingSpinner.removeAttribute("hidden");const t=new CustomEvent("toggleSwitchLoading",{bubbles:!0});this.dispatchEvent(t)}setSuccessState(){const t=new CustomEvent("toggleSwitchSuccess",{bubbles:!0});this.dispatchEvent(t),this.setFinishedState(!1)}setErrorState(t){const n=new CustomEvent("toggleSwitchError",{bubbles:!0,detail:t});this.dispatchEvent(n),this.setFinishedState(!0)}setFinishedState(t){t&&this.errorIcon.removeAttribute("hidden"),this.loadingSpinner.setAttribute("hidden","hidden")}async submitForm(){const t=new FormData;if(this.csrf&&t.append(this.csrfField,this.csrf),t.append("value",this.isOn()?"1":"0"),!this.src)throw new Error("invalid src");let n;const r={"Requested-With":"XMLHttpRequest"};this.turbo&&(r.Accept="text/vnd.turbo-stream.html");try{n=await fetch(this.src,{credentials:"same-origin",method:"POST",headers:r,body:t})}catch(o){throw new Error("A network error occurred, please try again.")}if(!n.ok)throw new Error(await n.text());const i=n.headers.get("Content-Type");window.Turbo&&this.turbo&&i?.startsWith("text/vnd.turbo-stream.html")&&window.Turbo.renderStreamMessage(await n.text())}};toggle_switch_decorate([w.target],at.prototype,"switch",void 0),toggle_switch_decorate([w.target],at.prototype,"loadingSpinner",void 0),toggle_switch_decorate([w.target],at.prototype,"errorIcon",void 0),toggle_switch_decorate([w.attr],at.prototype,"turbo",void 0),at=toggle_switch_decorate([w.controller],at),window.customElements.get("toggle-switch")||(window.ToggleSwitchElement=at,window.customElements.define("toggle-switch",at));var st,lt,ct,mt,dt,pt,ut,ht,gt,ft,tool_tip_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},tool_tip_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const yt=(()=>{let t;return n=>t?n.matches(t):function setSelector(n){try{return t=":popover-open",n.matches(t)}catch{try{return t=":open",n.matches(":open")}catch{return t=".\\:popover-open",n.matches(".\\:popover-open")}}}(n)})(),bt="sr-only",xt=["tooltip-n","tooltip-s","tooltip-e","tooltip-w","tooltip-ne","tooltip-se","tooltip-nw","tooltip-sw"];function closeOpenTooltips(t){for(const n of vt)n!==t&&(yt(n)?n.hidePopover():vt.delete(n))}function focusOutListener(){closeOpenTooltips()}function focusInListener(t){setTimeout((()=>{for(const n of vt)yt(n)&&"focus"===n.showReason&&n.control!==t.target&&n.hidePopover()}),0)}const Nt=new Set,vt=new Set;class ToolTipElement extends HTMLElement{constructor(){super(...arguments),st.add(this),lt.set(this,void 0),ct.set(this,"center"),mt.set(this,"outside-bottom"),dt.set(this,!1),pt.set(this,"mouse")}styles(){return'\n :host {\n --tooltip-top: var(--tool-tip-position-top, 0);\n --tooltip-left: var(--tool-tip-position-left, 0);\n padding: var(--overlay-paddingBlock-condensed) var(--overlay-padding-condensed) !important;\n font: var(--text-body-shorthand-small);\n color: var(--tooltip-fgColor, var(--fgColor-onEmphasis)) !important;\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: break-word;\n white-space: pre;\n background: var(--tooltip-bgColor, var(--bgColor-emphasis)) !important;\n border-radius: var(--borderRadius-medium);\n border: 0 !important;\n opacity: 0;\n max-width: var(--overlay-width-small);\n word-wrap: break-word;\n white-space: normal;\n width: max-content !important;\n inset: var(--tooltip-top) auto auto var(--tooltip-left) !important;\n overflow: visible !important;\n text-wrap: balance;\n }\n\n :host(:is(.tooltip-n, .tooltip-nw, .tooltip-ne)) {\n --tooltip-top: calc(var(--tool-tip-position-top, 0) - var(--overlay-offset, 0.25rem));\n --tooltip-left: var(--tool-tip-position-left);\n }\n\n :host(:is(.tooltip-s, .tooltip-sw, .tooltip-se)) {\n --tooltip-top: calc(var(--tool-tip-position-top, 0) + var(--overlay-offset, 0.25rem));\n --tooltip-left: var(--tool-tip-position-left);\n }\n\n :host(.tooltip-w) {\n --tooltip-top: var(--tool-tip-position-top);\n --tooltip-left: calc(var(--tool-tip-position-left, 0) - var(--overlay-offset, 0.25rem));\n }\n\n :host(.tooltip-e) {\n --tooltip-top: var(--tool-tip-position-top);\n --tooltip-left: calc(var(--tool-tip-position-left, 0) + var(--overlay-offset, 0.25rem));\n }\n\n :host:after{\n position: absolute;\n display: block;\n right: 0;\n left: 0;\n height: var(--overlay-offset, 0.25rem);\n content: "";\n }\n\n :host(.tooltip-s):after,\n :host(.tooltip-se):after,\n :host(.tooltip-sw):after {\n bottom: 100%\n }\n\n :host(.tooltip-n):after,\n :host(.tooltip-ne):after,\n :host(.tooltip-nw):after {\n top: 100%;\n }\n\n @keyframes tooltip-appear {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n :host(:popover-open),\n :host(:popover-open):before {\n animation-name: tooltip-appear;\n animation-duration: .1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n }\n\n :host(.\\:popover-open) {\n animation-name: tooltip-appear;\n animation-duration: .1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n }\n\n @media (forced-colors: active) {\n :host {\n outline: solid 1px transparent;\n }\n\n :host:before {\n display: none;\n }\n }\n '}get showReason(){return tool_tip_classPrivateFieldGet(this,pt,"f")}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get type(){return"label"===this.getAttribute("data-type")?"label":"description"}set type(t){this.setAttribute("data-type",t)}get direction(){return this.getAttribute("data-direction")||"s"}set direction(t){this.setAttribute("data-direction",t)}get control(){return this.ownerDocument.getElementById(this.htmlFor)}set hiddenFromView(t){t&&yt(this)?this.hidePopover():t||yt(this)||this.showPopover()}get hiddenFromView(){return!yt(this)}connectedCallback(){if(Nt.add(this),tool_tip_classPrivateFieldGet(this,st,"m",ht).call(this),tool_tip_classPrivateFieldGet(this,st,"m",gt).call(this),!this.shadowRoot){const t=this.attachShadow({mode:"open"});t.appendChild(document.createElement("style")).textContent=this.styles(),t.appendChild(document.createElement("slot"))}if(tool_tip_classPrivateFieldGet(this,st,"m",ut).call(this,!1),tool_tip_classPrivateFieldSet(this,dt,!0,"f"),!this.control)return;this.setAttribute("role","tooltip"),tool_tip_classPrivateFieldGet(this,lt,"f")?.abort(),tool_tip_classPrivateFieldSet(this,lt,new AbortController,"f");const{signal:t}=tool_tip_classPrivateFieldGet(this,lt,"f");this.addEventListener("mouseleave",this,{signal:t}),this.addEventListener("toggle",this,{signal:t}),this.control.addEventListener("mouseenter",this,{signal:t}),this.control.addEventListener("mouseleave",this,{signal:t}),this.control.addEventListener("focus",this,{signal:t}),this.control.addEventListener("mousedown",this,{signal:t}),this.control.popoverTargetElement?.addEventListener("beforetoggle",this,{signal:t}),this.ownerDocument.addEventListener("focusout",focusOutListener),this.ownerDocument.addEventListener("focusin",focusInListener),this.ownerDocument.addEventListener("keydown",this,{signal:t,capture:!0})}disconnectedCallback(){Nt.delete(this),vt.delete(this),tool_tip_classPrivateFieldGet(this,lt,"f")?.abort()}async handleEvent(t){if(!this.control)return;const n=yt(this),r="mouseenter"===t.type||"focus"===t.type&&(navigator.webdriver||this.control.matches(":focus-visible")),i="mouseleave"===t.type&&t.relatedTarget!==this.control&&t.relatedTarget!==this,o="keydown"===t.type&&"Escape"===t.key,a="mousedown"===t.type&&t.currentTarget===this.control,s="beforetoggle"===t.type&&t.currentTarget!==this,l=i||o||a||s;n&&o&&(t.stopImmediatePropagation(),t.preventDefault()),await Promise.resolve(),n||!r||yt(this)?n&&l&&yt(this)&&this.hidePopover():(tool_tip_classPrivateFieldSet(this,pt,"mouseenter"===t.type?"mouse":"focus","f"),this.showPopover()),"toggle"===t.type&&tool_tip_classPrivateFieldGet(this,st,"m",ut).call(this,"open"===t.newState)}attributeChangedCallback(t){this.isConnected&&("id"===t||"data-type"===t?tool_tip_classPrivateFieldGet(this,st,"m",ht).call(this):"data-direction"===t&&tool_tip_classPrivateFieldGet(this,st,"m",gt).call(this))}}lt=new WeakMap,ct=new WeakMap,mt=new WeakMap,dt=new WeakMap,pt=new WeakMap,st=new WeakSet,ut=function _ToolTipElement_update(t){t?(vt.add(this),this.classList.remove(bt),closeOpenTooltips(this),tool_tip_classPrivateFieldGet(this,st,"m",ft).call(this)):(vt.delete(this),this.classList.remove(...xt),this.classList.add(bt))},ht=function _ToolTipElement_updateControlReference(){if(this.id&&this.control)if("label"===this.type){let t=this.control.getAttribute("aria-labelledby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-labelledby",t),this.setAttribute("aria-hidden","true")}else{let t=this.control.getAttribute("aria-describedby");t=t?t.split(" ").includes(this.id)?`${t}`:`${t} ${this.id}`:this.id,this.control.setAttribute("aria-describedby",t)}},gt=function _ToolTipElement_updateDirection(){this.classList.remove(...xt);const t=this.direction;"n"===t?(tool_tip_classPrivateFieldSet(this,ct,"center","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-top","f")):"ne"===t?(tool_tip_classPrivateFieldSet(this,ct,"end","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-top","f")):"e"===t?(tool_tip_classPrivateFieldSet(this,ct,"center","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-right","f")):"se"===t?(tool_tip_classPrivateFieldSet(this,ct,"end","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-bottom","f")):"s"===t?(tool_tip_classPrivateFieldSet(this,ct,"center","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-bottom","f")):"sw"===t?(tool_tip_classPrivateFieldSet(this,ct,"start","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-bottom","f")):"w"===t?(tool_tip_classPrivateFieldSet(this,ct,"center","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-left","f")):"nw"===t&&(tool_tip_classPrivateFieldSet(this,ct,"start","f"),tool_tip_classPrivateFieldSet(this,mt,"outside-top","f"))},ft=function _ToolTipElement_updatePosition(){if(!this.control)return;if(!tool_tip_classPrivateFieldGet(this,dt,"f")||!yt(this))return;const t=getAnchoredPosition(this,this.control,{side:tool_tip_classPrivateFieldGet(this,mt,"f"),align:tool_tip_classPrivateFieldGet(this,ct,"f"),anchorOffset:0}),n=t.anchorSide,r=t.anchorAlign;this.style.setProperty("--tool-tip-position-top",`${t.top}px`),this.style.setProperty("--tool-tip-position-left",`${t.left}px`);let i="s";i="outside-left"===n?"w":"outside-right"===n?"e":"outside-top"===n?"center"===r?"n":"start"===r?"ne":"nw":"center"===r?"s":"start"===r?"se":"sw",this.classList.add(`tooltip-${i}`)},ToolTipElement.observedAttributes=["data-type","data-direction","id"],window.customElements.get("tool-tip")||(window.ToolTipElement=ToolTipElement,window.customElements.define("tool-tip",ToolTipElement));var St,wt,x_banner_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},x_banner_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};let Et=class XBannerElement extends HTMLElement{constructor(){super(...arguments),St.add(this)}dismiss(){if("remove"===x_banner_classPrivateFieldGet(this,St,"a",wt)){const t=this.parentElement;if(!t)return;t.removeChild(this)}else this.hide();this.dispatchEvent(new CustomEvent("banner:dismiss"))}show(){this.style.setProperty("display","initial")}hide(){this.style.setProperty("display","none")}};St=new WeakSet,wt=function _XBannerElement_dismissScheme_get(){return this.getAttribute("data-dismiss-scheme")},x_banner_decorate([w.target],Et.prototype,"titleText",void 0),Et=x_banner_decorate([w.controller],Et),window.customElements.get("x-banner")||(window.XBannerElement=Et,window.customElements.define("x-banner",Et));class Combobox{constructor(t,n,{tabInsertsSuggestions:r,defaultFirstOption:i,scrollIntoViewOptions:o}={}){this.input=t,this.list=n,this.tabInsertsSuggestions=null==r||r,this.defaultFirstOption=null!=i&&i,this.scrollIntoViewOptions=o,this.isComposing=!1,n.id||(n.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=t=>function keyboardBindings(t,n){if(t.shiftKey||t.metaKey||t.altKey)return;if(!n.ctrlBindings&&t.ctrlKey)return;if(n.isComposing)return;switch(t.key){case"Enter":dist_commit(n.input,n.list)&&t.preventDefault();break;case"Tab":n.tabInsertsSuggestions&&dist_commit(n.input,n.list)&&t.preventDefault();break;case"Escape":n.clearSelection();break;case"ArrowDown":n.navigate(1),t.preventDefault();break;case"ArrowUp":n.navigate(-1),t.preventDefault();break;case"n":n.ctrlBindings&&t.ctrlKey&&(n.navigate(1),t.preventDefault());break;case"p":n.ctrlBindings&&t.ctrlKey&&(n.navigate(-1),t.preventDefault());break;default:if(t.ctrlKey)break;n.clearSelection()}}(t,this),this.compositionEventHandler=t=>function dist_trackComposition(t,n){n.isComposing="compositionstart"===t.type;const r=document.getElementById(n.input.getAttribute("aria-controls")||"");if(!r)return;n.clearSelection()}(t,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",commitWithElement),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",commitWithElement)}indicateDefaultOption(){var t;this.defaultFirstOption&&(null===(t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(visible)[0])||void 0===t||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){const n=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(visible)[0],r=Array.from(this.list.querySelectorAll('[role="option"]')).filter(visible),i=r.indexOf(n);if(i===r.length-1&&1===t||0===i&&-1===t)return this.clearSelection(),void this.input.focus();let o=1===t?0:r.length-1;if(n&&i>=0){const n=i+t;n>=0&&n0||t.offsetHeight>0)}const Ct=window.testScreenReaderDelay||100;class Autocomplete{constructor(t,n,r,i=!1){var o;if(this.container=t,this.input=n,this.results=r,this.combobox=new Combobox(n,r,{defaultFirstOption:i}),this.feedback=t.getRootNode().getElementById(`${this.results.id}-feedback`),this.autoselectEnabled=i,this.clearButton=t.getRootNode().getElementById(`${this.input.id||this.input.name}-clear`),this.clientOptions=r.querySelectorAll("[role=option]"),this.feedback&&(this.feedback.setAttribute("aria-live","polite"),this.feedback.setAttribute("aria-atomic","true")),this.clearButton&&!this.clearButton.getAttribute("aria-label")){const t=document.querySelector(`label[for="${this.input.name}"]`);this.clearButton.setAttribute("aria-label","clear:"),this.clearButton.setAttribute("aria-labelledby",`${this.clearButton.id} ${(null==t?void 0:t.id)||""}`)}this.input.getAttribute("aria-expanded")||this.input.setAttribute("aria-expanded","false"),this.results.popover?this.results.matches(":popover-open")&&this.results.hidePopover():this.results.hidden=!0,this.results.getAttribute("aria-label")||this.results.setAttribute("aria-label","results"),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("spellcheck","false"),this.interactingWithList=!1,this.onInputChange=function debounce_debounce(t,n=0){let r;return function(...i){clearTimeout(r),r=window.setTimeout((()=>{clearTimeout(r),t(...i)}),n)}}(this.onInputChange.bind(this),300),this.onResultsMouseDown=this.onResultsMouseDown.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onCommit=this.onCommit.bind(this),this.handleClear=this.handleClear.bind(this),this.input.addEventListener("keydown",this.onKeydown),this.input.addEventListener("focus",this.onInputFocus),this.input.addEventListener("blur",this.onInputBlur),this.input.addEventListener("input",this.onInputChange),this.results.addEventListener("mousedown",this.onResultsMouseDown),this.results.addEventListener("combobox-commit",this.onCommit),null===(o=this.clearButton)||void 0===o||o.addEventListener("click",this.handleClear)}destroy(){this.input.removeEventListener("keydown",this.onKeydown),this.input.removeEventListener("focus",this.onInputFocus),this.input.removeEventListener("blur",this.onInputBlur),this.input.removeEventListener("input",this.onInputChange),this.results.removeEventListener("mousedown",this.onResultsMouseDown),this.results.removeEventListener("combobox-commit",this.onCommit)}handleClear(t){t.preventDefault(),"true"===this.input.getAttribute("aria-expanded")&&(this.input.setAttribute("aria-expanded","false"),this.updateFeedbackForScreenReaders("Results hidden.")),this.input.value="",this.container.value="",this.input.focus(),this.input.dispatchEvent(new Event("change")),this.close()}onKeydown(t){if("Escape"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowUp"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowDown"===t.key&&!this.container.open){if(!this.input.value.trim())return;this.open(),t.stopPropagation(),t.preventDefault()}}onInputFocus(){this.interactingWithList||this.fetchResults()}onInputBlur(){this.interactingWithList||this.close()}onCommit({target:t}){const n=t;if(!(n instanceof HTMLElement))return;if(this.close(),n instanceof HTMLAnchorElement)return;const r=n.getAttribute("data-autocomplete-value")||n.textContent;this.updateFeedbackForScreenReaders(`${n.textContent||""} selected.`),this.container.value=r,r||this.updateFeedbackForScreenReaders("Results hidden.")}onResultsMouseDown(){this.interactingWithList=!0}onInputChange(){this.feedback&&this.feedback.textContent&&(this.feedback.textContent=""),this.container.removeAttribute("value"),this.fetchResults()}identifyOptions(){let t=0;for(const n of this.results.querySelectorAll('[role="option"]:not([id])'))n.id=`${this.results.id}-option-${t++}`}updateFeedbackForScreenReaders(t){setTimeout((()=>{this.feedback&&(this.feedback.textContent=t)}),Ct)}fetchResults(){const t=this.input.value.trim();if(!t&&!this.container.fetchOnEmpty)return void this.close();const n=this.container.src;if(!n)return;const r=new URL(n,window.location.href),i=new URLSearchParams(r.search.slice(1));i.append("q",t),r.search=i.toString(),this.container.dispatchEvent(new CustomEvent("loadstart")),this.container.fetchResult(r).then((t=>{this.results.innerHTML=t,this.identifyOptions(),this.combobox.indicateDefaultOption();const n=this.results.querySelectorAll('[role="option"]'),r=!!n.length,i=n.length,[o]=n,a=null==o?void 0:o.textContent;this.autoselectEnabled&&a?this.updateFeedbackForScreenReaders(`${i} results. ${a} is the top result: Press Enter to activate.`):this.updateFeedbackForScreenReaders(`${i||"No"} results.`),r?this.open():this.close(),this.container.dispatchEvent(new CustomEvent("load")),this.container.dispatchEvent(new CustomEvent("loadend"))})).catch((()=>{this.container.dispatchEvent(new CustomEvent("error")),this.container.dispatchEvent(new CustomEvent("loadend"))}))}open(){(this.results.popover?!this.results.matches(":popover-open"):this.results.hidden)&&(this.combobox.start(),this.results.popover?this.results.showPopover():this.results.hidden=!1),this.container.open=!0,this.interactingWithList=!0}close(){(this.results.popover?this.results.matches(":popover-open"):!this.results.hidden)&&(this.combobox.stop(),this.results.popover?this.results.hidePopover():this.results.hidden=!0),this.container.open=!1,this.interactingWithList=!1}}var Pt,At,Tt,Rt,zt,auto_complete_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},auto_complete_element_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},__rest=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o{kt.get(this)||auto_complete_element_classPrivateFieldGet(this,Pt,"m",Rt).call(this)})).observe(this,{subtree:!0,childList:!0}))}disconnectedCallback(){const t=kt.get(this);t&&(t.destroy(),kt.delete(this))}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get open(){return this.hasAttribute("open")}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get fetchOnEmpty(){return this.hasAttribute("fetch-on-empty")}set fetchOnEmpty(t){this.toggleAttribute("fetch-on-empty",t)}async fetchResult(t){var n;null===(n=auto_complete_element_classPrivateFieldGet(this,zt,"f"))||void 0===n||n.abort();const{signal:r}=auto_complete_element_classPrivateFieldSet(this,zt,new AbortController,"f"),i=await fetch(t.toString(),{signal:r,headers:{Accept:"text/fragment+html"}});if(!i.ok)throw new Error(await i.text());if(Lt){return(await Lt).createHTML(await i.text(),i)}return await i.text()}static get observedAttributes(){return["open","value","for"]}attributeChangedCallback(t,n,r){var i,o;if(n===r)return;const a=kt.get(this);if(a)switch(this.forElement===(null===(i=kt.get(this))||void 0===i?void 0:i.results)&&this.inputElement===(null===(o=kt.get(this))||void 0===o?void 0:o.input)||auto_complete_element_classPrivateFieldGet(this,Pt,"m",Rt).call(this),t){case"open":null===r?a.close():a.open();break;case"value":null!==r&&(a.input.value=r),this.dispatchEvent(new AutoCompleteEvent("auto-complete-change",{bubbles:!0,relatedTarget:a.input}))}}}At=new WeakMap,Tt=new WeakMap,zt=new WeakMap,Pt=new WeakSet,Rt=function _AutoCompleteElement_reattachState(){var t;null===(t=kt.get(this))||void 0===t||t.destroy();const{forElement:n,inputElement:r}=this;if(!n||!r)return;const i="true"===this.getAttribute("data-autoselect");kt.set(this,new Autocomplete(this,r,n,i)),n.setAttribute("role","listbox")};const It="undefined"!=typeof globalThis?globalThis:window;try{It.AutocompleteElement=It.AutoCompleteElement=auto_complete_element_AutoCompleteElement.define()}catch(kr){if(!(It.DOMException&&kr instanceof DOMException&&"NotSupportedError"===kr.name||kr instanceof ReferenceError))throw kr}function copyNode(t){if("clipboard"in navigator)return navigator.clipboard.writeText(t.textContent||"");const n=getSelection();if(null==n)return Promise.reject(new Error);n.removeAllRanges();const r=document.createRange();return r.selectNodeContents(t),n.addRange(r),document.execCommand("copy"),n.removeAllRanges(),Promise.resolve()}function copyText(t){if("clipboard"in navigator)return navigator.clipboard.writeText(t);const n=document.body;if(!n)return Promise.reject(new Error);const r=function createNode(t){const n=document.createElement("pre");return n.style.width="1px",n.style.height="1px",n.style.position="fixed",n.style.top="5px",n.textContent=t,n}(t);return n.appendChild(r),copyNode(r),n.removeChild(r),Promise.resolve()}async function copy(t){const n=t.getAttribute("for"),r=t.getAttribute("value");function trigger(){t.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}if("true"!==t.getAttribute("aria-disabled"))if(r)await copyText(r),trigger();else if(n){const r="getRootNode"in Element.prototype?t.getRootNode():t.ownerDocument;if(!(r instanceof Document||"ShadowRoot"in window&&r instanceof ShadowRoot))return;const i=r.getElementById(n);i&&(await function copyTarget(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?copyText(t.value):t instanceof HTMLAnchorElement&&t.hasAttribute("href")?copyText(t.href):copyNode(t)}(i),trigger())}}function clicked(t){const n=t.currentTarget;n instanceof HTMLElement&©(n)}function clipboard_copy_element_keydown(t){if(" "===t.key||"Enter"===t.key){const n=t.currentTarget;n instanceof HTMLElement&&(t.preventDefault(),copy(n))}}function focused(t){t.currentTarget.addEventListener("keydown",clipboard_copy_element_keydown)}function blurred(t){t.currentTarget.removeEventListener("keydown",clipboard_copy_element_keydown)}class clipboard_copy_element_ClipboardCopyElement extends HTMLElement{static define(t="clipboard-copy",n=customElements){return n.define(t,this),this}constructor(){super(),this.addEventListener("click",clicked),this.addEventListener("focus",focused),this.addEventListener("blur",blurred)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}const _t="undefined"!=typeof globalThis?globalThis:window;try{_t.ClipboardCopyElement=clipboard_copy_element_ClipboardCopyElement.define()}catch(kr){if(!(_t.DOMException&&kr instanceof DOMException&&"NotSupportedError"===kr.name||kr instanceof ReferenceError))throw kr}function showSVG(t){t.style.display="inline-block"}function hideSVG(t){t.style.display="none"}const Bt=new WeakMap;document.addEventListener("clipboard-copy",(({target:t})=>{if(!(t instanceof HTMLElement))return;if(!t.hasAttribute("data-view-component"))return;const n=Bt.get(t),r=t.parentNode?.querySelector("[data-clipboard-copy-feedback]"),i="Copied!";n?(clearTimeout(n),Bt.delete(t)):(!function showCheck(t){const[n,r]=t.querySelectorAll(".octicon");n&&r&&(hideSVG(n),showSVG(r))}(t),r&&(r.textContent===i?r.textContent=`${i} `:r.textContent=i)),Bt.set(t,setTimeout((()=>{!function showCopy(t){const[n,r]=t.querySelectorAll(".octicon");n&&r&&(showSVG(n),hideSVG(r))}(t),Bt.delete(t)}),2e3))}));var qt,duration_format_ponyfill_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},duration_format_ponyfill_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};const Ot="undefined"!=typeof Intl&&Intl.ListFormat||class ListFormatPonyFill{formatToParts(t){const n=[];for(const r of t)n.push({type:"element",value:r}),n.push({type:"literal",value:", "});return n.slice(0,-1)}},Dt=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Ht={minimumIntegerDigits:2};class DurationFormat{constructor(t,n={}){qt.set(this,void 0);let r=String(n.style||"short");"long"!==r&&"short"!==r&&"narrow"!==r&&"digital"!==r&&(r="short");let i="digital"===r?"numeric":r;const o=n.hours||i;i="2-digit"===o?"numeric":o;const a=n.minutes||i;i="2-digit"===a?"numeric":a;const s=n.seconds||i;i="2-digit"===s?"numeric":s;const l=n.milliseconds||i;duration_format_ponyfill_classPrivateFieldSet(this,qt,{locale:t,style:r,years:n.years||"digital"===r?"short":r,yearsDisplay:"always"===n.yearsDisplay?"always":"auto",months:n.months||"digital"===r?"short":r,monthsDisplay:"always"===n.monthsDisplay?"always":"auto",weeks:n.weeks||"digital"===r?"short":r,weeksDisplay:"always"===n.weeksDisplay?"always":"auto",days:n.days||"digital"===r?"short":r,daysDisplay:"always"===n.daysDisplay?"always":"auto",hours:o,hoursDisplay:"always"===n.hoursDisplay||"digital"===r?"always":"auto",minutes:a,minutesDisplay:"always"===n.minutesDisplay||"digital"===r?"always":"auto",seconds:s,secondsDisplay:"always"===n.secondsDisplay||"digital"===r?"always":"auto",milliseconds:l,millisecondsDisplay:"always"===n.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return duration_format_ponyfill_classPrivateFieldGet(this,qt,"f")}formatToParts(t){const n=[],r=duration_format_ponyfill_classPrivateFieldGet(this,qt,"f"),i=r.style,o=r.locale;for(const[a,s]of Dt){const i=t[a];if("auto"===r[`${a}Display`]&&!i)continue;const l=r[a],c="2-digit"===l?Ht:"numeric"===l?{}:{style:"unit",unit:s,unitDisplay:l};n.push(new Intl.NumberFormat(o,c).format(i))}return new Ot(o,{type:"unit",style:"digital"===i?"short":i}).formatToParts(n)}format(t){return this.formatToParts(t).map((t=>t.value)).join("")}}qt=new WeakMap;const Ft=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Ut=["year","month","week","day","hour","minute","second","millisecond"];class Duration{constructor(t=0,n=0,r=0,i=0,o=0,a=0,s=0,l=0){this.years=t,this.months=n,this.weeks=r,this.days=i,this.hours=o,this.minutes=a,this.seconds=s,this.milliseconds=l,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new Duration(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var n;if("string"==typeof t){const r=String(t).trim(),i=r.startsWith("-")?-1:1,o=null===(n=r.match(Ft))||void 0===n?void 0:n.slice(1).map((t=>(Number(t)||0)*i));return o?new Duration(...o):new Duration}if("object"==typeof t){const{years:n,months:r,weeks:i,days:o,hours:a,minutes:s,seconds:l,milliseconds:c}=t;return new Duration(n,r,i,o,a,s,l,c)}throw new RangeError("invalid duration")}static compare(t,n){const r=Date.now(),i=Math.abs(applyDuration(r,Duration.from(t)).getTime()-r),o=Math.abs(applyDuration(r,Duration.from(n)).getTime()-r);return i>o?-1:i=900&&(m+=Math.round(p/1e3)),(m||c||l||s||a||o||i)&&(p=0),m>=55&&(c+=Math.round(m/60)),(c||l||s||a||o||i)&&(m=0),c>=55&&(l+=Math.round(c/60)),(l||s||a||o||i)&&(c=0),s&&l>=12&&(s+=Math.round(l/24)),!s&&l>=21&&(s+=Math.round(l/24)),(s||a||o||i)&&(l=0);const u=n.getFullYear(),h=n.getMonth(),y=n.getDate();if(s>=27||i+o+s){const t=new Date(n);t.setDate(1),t.setMonth(h+o*r+1),t.setDate(0);const l=Math.max(0,y-t.getDate()),c=new Date(n);c.setFullYear(u+i*r),c.setDate(y-l),c.setMonth(h+o*r),c.setDate(y-l+s*r);const m=c.getFullYear()-n.getFullYear(),p=c.getMonth()-n.getMonth(),x=Math.abs(Math.round((Number(c)-Number(n))/864e5))+l,v=Math.abs(12*m+p);x<27?(s>=6?(a+=Math.round(s/7),s=0):s=x,o=i=0):v<11?(o=v,i=0):(o=0,i=m*r),(o||i)&&(s=0)}return i&&(o=0),a>=4&&(o+=Math.round(a/4)),(o||i)&&(a=0),s&&a&&!o&&!i&&(a+=Math.round(s/7),s=0),new Duration(i*r,o*r,a*r,s*r,l*r,c*r,m*r,p*r)}var Vt,jt,$t,Kt,Wt,Gt,Xt,Qt,Jt,Yt,Zt,relative_time_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},relative_time_element_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const en=globalThis.HTMLElement||null,tn=new Duration,nn=new Duration(0,0,0,0,0,1);class RelativeTimeUpdatedEvent extends Event{constructor(t,n,r,i){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=t,this.newText=n,this.oldTitle=r,this.newTitle=i}}function getUnitFactor(t){if(!t.date)return 1/0;if("duration"===t.format||"elapsed"===t.format){const n=t.precision;if("second"===n)return 1e3;if("minute"===n)return 6e4}const n=Math.abs(Date.now()-t.date.getTime());return n<6e4?1e3:n<36e5?6e4:36e5}const rn=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(t){if(this.elements.has(t))return;this.elements.add(t);const n=t.date;if(n&&n.getTime()){const n=getUnitFactor(t),r=Date.now()+n;rthis.update()),n),this.time=r)}}unobserve(t){this.elements.has(t)&&this.elements.delete(t)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let t=1/0;for(const n of this.elements)t=Math.min(t,getUnitFactor(n)),n.update();this.time=Math.min(36e5,t),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class relative_time_element_RelativeTimeElement extends en{constructor(){super(...arguments),Vt.add(this),jt.set(this,!1),$t.set(this,!1),Wt.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),Zt.set(this,null)}static define(t="relative-time",n=customElements){return n.define(t,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return relative_time_element_classPrivateFieldGet(this,Zt,"f")}set onRelativeTimeUpdated(t){relative_time_element_classPrivateFieldGet(this,Zt,"f")&&this.removeEventListener("relative-time-updated",relative_time_element_classPrivateFieldGet(this,Zt,"f")),relative_time_element_classPrivateFieldSet(this,Zt,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("relative-time-updated",t)}get second(){const t=this.getAttribute("second");if("numeric"===t||"2-digit"===t)return t}set second(t){this.setAttribute("second",t||"")}get minute(){const t=this.getAttribute("minute");if("numeric"===t||"2-digit"===t)return t}set minute(t){this.setAttribute("minute",t||"")}get hour(){const t=this.getAttribute("hour");if("numeric"===t||"2-digit"===t)return t}set hour(t){this.setAttribute("hour",t||"")}get weekday(){const t=this.getAttribute("weekday");return"long"===t||"short"===t||"narrow"===t?t:"datetime"===this.format&&""!==t?this.formatStyle:void 0}set weekday(t){this.setAttribute("weekday",t||"")}get day(){var t;const n=null!==(t=this.getAttribute("day"))&&void 0!==t?t:"numeric";if("numeric"===n||"2-digit"===n)return n}set day(t){this.setAttribute("day",t||"")}get month(){const t=this.format;let n=this.getAttribute("month");if(""!==n)return null!=n||(n="datetime"===t?this.formatStyle:"short"),"numeric"===n||"2-digit"===n||"short"===n||"long"===n||"narrow"===n?n:void 0}set month(t){this.setAttribute("month",t||"")}get year(){var t;const n=this.getAttribute("year");return"numeric"===n||"2-digit"===n?n:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(t=this.date)||void 0===t?void 0:t.getUTCFullYear())?void 0:"numeric"}set year(t){this.setAttribute("year",t||"")}get timeZoneName(){const t=this.getAttribute("time-zone-name");if("long"===t||"short"===t||"shortOffset"===t||"longOffset"===t||"shortGeneric"===t||"longGeneric"===t)return t}set timeZoneName(t){this.setAttribute("time-zone-name",t||"")}get prefix(){var t;return null!==(t=this.getAttribute("prefix"))&&void 0!==t?t:"datetime"===this.format?"":"on"}set prefix(t){this.setAttribute("prefix",t)}get threshold(){const t=this.getAttribute("threshold");return t&&(n=t,Ft.test(n))?t:"P30D";var n}set threshold(t){this.setAttribute("threshold",t)}get tense(){const t=this.getAttribute("tense");return"past"===t?"past":"future"===t?"future":"auto"}set tense(t){this.setAttribute("tense",t)}get precision(){const t=this.getAttribute("precision");return Ut.includes(t)?t:"micro"===this.format?"minute":"second"}set precision(t){this.setAttribute("precision",t)}get format(){const t=this.getAttribute("format");return"datetime"===t?"datetime":"relative"===t?"relative":"duration"===t?"duration":"micro"===t?"micro":"elapsed"===t?"elapsed":"auto"}set format(t){this.setAttribute("format",t)}get formatStyle(){const t=this.getAttribute("format-style");if("long"===t)return"long";if("short"===t)return"short";if("narrow"===t)return"narrow";const n=this.format;return"elapsed"===n||"micro"===n?"narrow":"datetime"===n?"short":"long"}set formatStyle(t){this.setAttribute("format-style",t)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(t){this.toggleAttribute("no-title",t)}get datetime(){return this.getAttribute("datetime")||""}set datetime(t){this.setAttribute("datetime",t)}get date(){const t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(null==t?void 0:t.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){rn.unobserve(this)}attributeChangedCallback(t,n,r){n!==r&&("title"===t&&relative_time_element_classPrivateFieldSet(this,jt,null!==r&&(this.date&&relative_time_element_classPrivateFieldGet(this,Vt,"m",Gt).call(this,this.date))!==r,"f"),relative_time_element_classPrivateFieldGet(this,$t,"f")||"title"===t&&relative_time_element_classPrivateFieldGet(this,jt,"f")||relative_time_element_classPrivateFieldSet(this,$t,(async()=>{await Promise.resolve(),this.update(),relative_time_element_classPrivateFieldSet(this,$t,!1,"f")})(),"f"))}update(){const t=relative_time_element_classPrivateFieldGet(this,Wt,"f").textContent||this.textContent||"",n=this.getAttribute("title")||"";let r=n;const i=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!i)return void(relative_time_element_classPrivateFieldGet(this,Wt,"f").textContent=t);const o=Date.now();relative_time_element_classPrivateFieldGet(this,jt,"f")||(r=relative_time_element_classPrivateFieldGet(this,Vt,"m",Gt).call(this,i)||"",r&&!this.noTitle&&this.setAttribute("title",r));const a=function elapsedTime(t,n="second",r=Date.now()){const i=t.getTime()-r;if(0===i)return new Duration;const o=Math.sign(i),a=Math.abs(i),s=Math.floor(a/1e3),l=Math.floor(s/60),c=Math.floor(l/60),m=Math.floor(c/24),p=Math.floor(m/30),u=Math.floor(p/12),h=Ut.indexOf(n)||Ut.length;return new Duration(h>=0?u*o:0,h>=1?(p-12*u)*o:0,0,h>=3?(m-30*p)*o:0,h>=4?(c-24*m)*o:0,h>=5?(l-60*c)*o:0,h>=6?(s-60*l)*o:0,h>=7?(a-1e3*s)*o:0)}(i,this.precision,o),s=relative_time_element_classPrivateFieldGet(this,Vt,"m",Xt).call(this,a);let l=t;l="duration"===s?relative_time_element_classPrivateFieldGet(this,Vt,"m",Qt).call(this,a):"relative"===s?relative_time_element_classPrivateFieldGet(this,Vt,"m",Jt).call(this,a):relative_time_element_classPrivateFieldGet(this,Vt,"m",Yt).call(this,i),l?relative_time_element_classPrivateFieldGet(this,Wt,"f").textContent=l:this.shadowRoot===relative_time_element_classPrivateFieldGet(this,Wt,"f")&&this.textContent&&(relative_time_element_classPrivateFieldGet(this,Wt,"f").textContent=this.textContent),l===t&&r===n||this.dispatchEvent(new RelativeTimeUpdatedEvent(t,l,n,r)),"relative"===s||"duration"===s?rn.observe(this):rn.unobserve(this)}}jt=new WeakMap,$t=new WeakMap,Wt=new WeakMap,Zt=new WeakMap,Vt=new WeakSet,Kt=function _RelativeTimeElement_lang_get(){var t;return(null===(t=this.closest("[lang]"))||void 0===t?void 0:t.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},Gt=function _RelativeTimeElement_getFormattedTitle(t){return new Intl.DateTimeFormat(relative_time_element_classPrivateFieldGet(this,Vt,"a",Kt),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(t)},Xt=function _RelativeTimeElement_resolveFormat(t){const n=this.format;if("datetime"===n)return"datetime";if("duration"===n)return"duration";if("elapsed"===n)return"duration";if("micro"===n)return"duration";if(("auto"===n||"relative"===n)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const n=this.tense;if("past"===n||"future"===n)return"relative";if(1===Duration.compare(t,this.threshold))return"relative"}return"datetime"},Qt=function _RelativeTimeElement_getDurationFormat(t){const n=relative_time_element_classPrivateFieldGet(this,Vt,"a",Kt),r=this.format,i=this.formatStyle,o=this.tense;let a=tn;"micro"===r?(t=roundToSingleUnit(t),a=nn,("past"===this.tense&&-1!==t.sign||"future"===this.tense&&1!==t.sign)&&(t=nn)):("past"===o&&-1!==t.sign||"future"===o&&1!==t.sign)&&(t=a);const s=`${this.precision}sDisplay`;return t.blank?a.toLocaleString(n,{style:i,[s]:"always"}):t.abs().toLocaleString(n,{style:i})},Jt=function _RelativeTimeElement_getRelativeFormat(t){const n=new Intl.RelativeTimeFormat(relative_time_element_classPrivateFieldGet(this,Vt,"a",Kt),{numeric:"auto",style:this.formatStyle}),r=this.tense;"future"===r&&1!==t.sign&&(t=tn),"past"===r&&-1!==t.sign&&(t=tn);const[i,o]=function getRelativeTimeUnit(t,n){const r=roundToSingleUnit(t,n);if(r.blank)return[0,"second"];for(const i of Ut){if("millisecond"===i)continue;const t=r[`${i}s`];if(t)return[t,i]}return[0,"second"]}(t);return"second"===o&&i<10?n.format(0,"millisecond"===this.precision?"second":this.precision):n.format(i,o)},Yt=function _RelativeTimeElement_getDateTimeFormat(t){const n=new Intl.DateTimeFormat(relative_time_element_classPrivateFieldGet(this,Vt,"a",Kt),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${n.format(t)}`.trim()};const on="undefined"!=typeof globalThis?globalThis:window;try{on.RelativeTimeElement=relative_time_element_RelativeTimeElement.define()}catch(kr){if(!(on.DOMException&&kr instanceof DOMException&&"NotSupportedError"===kr.name||kr instanceof ReferenceError))throw kr}function getTabs(t){return Array.from(t.querySelectorAll('[role="tablist"] [role="tab"]')).filter((n=>n instanceof HTMLElement&&n.closest(t.tagName)===t))}class tab_container_element_TabContainerElement extends HTMLElement{static define(t="tab-container",n=customElements){return n.define(t,this),this}connectedCallback(){this.addEventListener("keydown",(t=>{var n;const r=t.target;if(!(r instanceof HTMLElement))return;if(r.closest(this.tagName)!==this)return;if("tab"!==r.getAttribute("role")&&!r.closest('[role="tablist"]'))return;const i=getTabs(this),o=i.indexOf(i.find((t=>t.matches('[aria-selected="true"]')))),[a,s]=function getNavigationKeyCodes(t){return t?[["ArrowDown","ArrowRight"],["ArrowUp","ArrowLeft"]]:[["ArrowRight"],["ArrowLeft"]]}("vertical"===(null===(n=r.closest('[role="tablist"]'))||void 0===n?void 0:n.getAttribute("aria-orientation")));if(a.some((n=>t.code===n))){let t=o+1;t>=i.length&&(t=0),this.selectTab(t)}else if(s.some((n=>t.code===n))){let t=o-1;t<0&&(t=i.length-1),this.selectTab(t)}else"Home"===t.code?(this.selectTab(0),t.preventDefault()):"End"===t.code&&(this.selectTab(i.length-1),t.preventDefault())})),this.addEventListener("click",(t=>{const n=getTabs(this);if(!(t.target instanceof Element))return;if(t.target.closest(this.tagName)!==this)return;const r=t.target.closest('[role="tab"]');if(!(r instanceof HTMLElement&&r.closest('[role="tablist"]')))return;const i=n.indexOf(r);this.selectTab(i)}));for(const t of getTabs(this))t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.hasAttribute("tabindex")||("true"===t.getAttribute("aria-selected")?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1"))}selectTab(t){const n=getTabs(this),r=Array.from(this.querySelectorAll('[role="tabpanel"]')).filter((t=>t.closest(this.tagName)===this));if(t>n.length-1)throw new RangeError(`Index "${t}" out of bounds`);const i=n[t],o=r[t];if(!!this.dispatchEvent(new CustomEvent("tab-container-change",{bubbles:!0,cancelable:!0,detail:{relatedTarget:o}}))){for(const t of n)t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");for(const t of r)t.hidden=!0,t.hasAttribute("tabindex")||t.hasAttribute("data-tab-container-no-tabstop")||t.setAttribute("tabindex","0");i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"),i.focus(),o.hidden=!1,this.dispatchEvent(new CustomEvent("tab-container-changed",{bubbles:!0,detail:{relatedTarget:o}}))}}}const an="undefined"!=typeof globalThis?globalThis:window;try{an.TabContainerElement=tab_container_element_TabContainerElement.define()}catch(kr){if(!(an.DOMException&&kr instanceof DOMException&&"NotSupportedError"===kr.name||kr instanceof ReferenceError))throw kr}var primer_multi_input_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s};let sn=class PrimerMultiInputElement extends HTMLElement{activateField(t){const n=this.findField(t);if(n){for(const t of this.fields)t!==n&&(t.setAttribute("disabled","disabled"),t.setAttribute("hidden","hidden"),t.parentElement?.setAttribute("hidden","hidden"));n.removeAttribute("disabled"),n.removeAttribute("hidden"),n.parentElement?.removeAttribute("hidden")}}findField(t){for(const n of this.fields)if(n.getAttribute("data-name")===t)return n;return null}};primer_multi_input_decorate([w.targets],sn.prototype,"fields",void 0),sn=primer_multi_input_decorate([w.controller],sn),window.customElements.get("primer-multi-input")||(Object.assign(window,{PrimerMultiInputElement:sn}),window.customElements.define("primer-multi-input",sn));var ln,cn=r(70170),auto_check_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},auto_check_element_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const mn=new WeakMap;class AutoCheckEvent extends Event{constructor(t){super(`auto-check-${t}`,{bubbles:!0}),this.phase=t}get detail(){return this}}class AutoCheckValidationEvent extends AutoCheckEvent{constructor(t,n=""){super(t),this.phase=t,this.message=n,this.setValidity=t=>{this.message=t}}}class AutoCheckCompleteEvent extends AutoCheckEvent{constructor(){super("complete")}}class AutoCheckSuccessEvent extends AutoCheckEvent{constructor(t){super("success"),this.response=t}}class AutoCheckStartEvent extends AutoCheckValidationEvent{constructor(){super("start","Verifying…")}}class AutoCheckErrorEvent extends AutoCheckValidationEvent{constructor(t){super("error","Validation failed"),this.response=t}}class AutoCheckSendEvent extends AutoCheckEvent{constructor(t){super("send"),this.body=t}}class auto_check_element_AutoCheckElement extends HTMLElement{constructor(){super(...arguments),ln.set(this,null)}static define(t="auto-check",n=customElements){return n.define(t,this),this}get onloadend(){return auto_check_element_classPrivateFieldGet(this,ln,"f")}set onloadend(t){auto_check_element_classPrivateFieldGet(this,ln,"f")&&this.removeEventListener("loadend",auto_check_element_classPrivateFieldGet(this,ln,"f")),auto_check_element_classPrivateFieldSet(this,ln,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("loadend",t)}connectedCallback(){const t=this.input;if(!t)return;const n=(0,cn.s)(check.bind(null,this),300),r={check:n,controller:null};mn.set(this,r),t.addEventListener("input",setLoadingState),t.addEventListener("input",n),t.autocomplete="off",t.spellcheck=!1}disconnectedCallback(){const t=this.input;if(!t)return;const n=mn.get(this);n&&(mn.delete(this),t.removeEventListener("input",setLoadingState),t.removeEventListener("input",n.check),t.setCustomValidity(""))}attributeChangedCallback(t){if("required"===t){const t=this.input;if(!t)return;t.required=this.required}}static get observedAttributes(){return["required"]}get input(){return this.querySelector("input")}get src(){const t=this.getAttribute("src");if(!t)return"";const n=this.ownerDocument.createElement("a");return n.href=t,n.href}set src(t){this.setAttribute("src",t)}get csrf(){const t=this.querySelector("[data-csrf]");return this.getAttribute("csrf")||t instanceof HTMLInputElement&&t.value||""}set csrf(t){this.setAttribute("csrf",t)}get required(){return this.hasAttribute("required")}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get csrfField(){return this.getAttribute("csrf-field")||"authenticity_token"}set csrfField(t){this.setAttribute("csrf-field",t)}}function setLoadingState(t){const n=t.currentTarget;if(!(n instanceof HTMLInputElement))return;const r=n.closest("auto-check");if(!(r instanceof auto_check_element_AutoCheckElement))return;const i=r.src,o=r.csrf,a=mn.get(r);if(!i||!o||!a)return;const s=new AutoCheckStartEvent;n.dispatchEvent(s),r.required&&n.setCustomValidity(s.message)}async function check(t){const n=t.input;if(!n)return;const r=t.csrfField,i=t.src,o=t.csrf,a=mn.get(t);if(!i||!o||!a)return void(t.required&&n.setCustomValidity(""));if(!n.value.trim())return void(t.required&&n.setCustomValidity(""));const s=new FormData;s.append(r,o),s.append("value",n.value),n.dispatchEvent(new AutoCheckSendEvent(s)),a.controller?a.controller.abort():t.dispatchEvent(new Event("loadstart")),a.controller=function auto_check_element_makeAbortController(){return"AbortController"in window?new AbortController:{signal:null,abort(){}}}();try{const r=await async function auto_check_element_fetchWithNetworkEvents(t,n,r){try{const i=await fetch(n,r);return t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend")),i}catch(i){throw"AbortError"!==i.name&&(t.dispatchEvent(new Event("error")),t.dispatchEvent(new Event("loadend"))),i}}(t,i,{credentials:"same-origin",signal:a.controller.signal,method:"POST",body:s});if(r.ok)t.required&&n.setCustomValidity(""),n.dispatchEvent(new AutoCheckSuccessEvent(r.clone()));else{const i=new AutoCheckErrorEvent(r.clone());n.dispatchEvent(i),t.required&&n.setCustomValidity(i.message)}a.controller=null,n.dispatchEvent(new AutoCheckCompleteEvent)}catch(l){"AbortError"!==l.name&&(a.controller=null,n.dispatchEvent(new AutoCheckCompleteEvent))}}ln=new WeakMap;const dn="undefined"!=typeof globalThis?globalThis:window;try{dn.AutoCheckElement=auto_check_element_AutoCheckElement.define()}catch(kr){if(!(dn.DOMException&&kr instanceof DOMException&&"NotSupportedError"===kr.name||kr instanceof ReferenceError))throw kr}var pn,primer_text_field_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},primer_text_field_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},primer_text_field_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};let un=class PrimerTextFieldElement extends HTMLElement{constructor(){super(...arguments),pn.set(this,void 0)}connectedCallback(){primer_text_field_classPrivateFieldGet(this,pn,"f")?.abort();const{signal:t}=primer_text_field_classPrivateFieldSet(this,pn,new AbortController,"f");this.addEventListener("auto-check-success",(async t=>{const n=await t.detail.response.text();n&&n.length>0?this.setSuccess(n):this.clearError()}),{signal:t}),this.addEventListener("auto-check-error",(async t=>{const n=await t.detail.response.text();this.setError(n)}),{signal:t})}disconnectedCallback(){primer_text_field_classPrivateFieldGet(this,pn,"f")?.abort()}clearContents(){this.inputElement.value="",this.inputElement.focus(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))}clearError(){this.inputElement.removeAttribute("invalid"),this.validationElement.hidden=!0,this.validationMessageElement.replaceChildren()}setValidationMessage(t){const n=document.createElement("template");n.innerHTML=t;const r=document.importNode(n.content,!0);this.validationMessageElement.replaceChildren(r)}toggleValidationStyling(t){t?this.validationElement.classList.remove("FormControl-inlineValidation--success"):this.validationElement.classList.add("FormControl-inlineValidation--success"),this.validationSuccessIcon.hidden=t,this.validationErrorIcon.hidden=!t,this.inputElement.setAttribute("invalid",t?"true":"false")}setSuccess(t){this.toggleValidationStyling(!1),this.setValidationMessage(t),this.validationElement.hidden=!1}setError(t){this.toggleValidationStyling(!0),this.setValidationMessage(t),this.validationElement.hidden=!1}showLeadingSpinner(){this.leadingSpinner?.removeAttribute("hidden"),this.leadingVisual?.setAttribute("hidden","")}hideLeadingSpinner(){this.leadingSpinner?.setAttribute("hidden",""),this.leadingVisual?.removeAttribute("hidden")}};pn=new WeakMap,primer_text_field_decorate([w.target],un.prototype,"inputElement",void 0),primer_text_field_decorate([w.target],un.prototype,"validationElement",void 0),primer_text_field_decorate([w.target],un.prototype,"validationMessageElement",void 0),primer_text_field_decorate([w.target],un.prototype,"validationSuccessIcon",void 0),primer_text_field_decorate([w.target],un.prototype,"validationErrorIcon",void 0),primer_text_field_decorate([w.target],un.prototype,"leadingVisual",void 0),primer_text_field_decorate([w.target],un.prototype,"leadingSpinner",void 0),un=primer_text_field_decorate([w.controller],un);var toggle_switch_input_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s};let hn=class ToggleSwitchInputElement extends HTMLElement{connectedCallback(){this.addEventListener("toggleSwitchError",(t=>{this.validationMessageElement.textContent=t.detail,this.validationElement.removeAttribute("hidden")})),this.addEventListener("toggleSwitchSuccess",(()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")})),this.addEventListener("toggleSwitchLoading",(()=>{this.validationMessageElement.textContent="",this.validationElement.setAttribute("hidden","hidden")}))}};toggle_switch_input_decorate([w.target],hn.prototype,"validationElement",void 0),toggle_switch_input_decorate([w.target],hn.prototype,"validationMessageElement",void 0),hn=toggle_switch_input_decorate([w.controller],hn);var gn,fn,yn,bn,xn,Nn,vn,Sn,wn,En,Cn,Pn,An,Tn,Rn,zn,Mn,kn,Ln,In,action_menu_element_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},action_menu_element_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r},action_menu_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)};const _n=['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]'],Bn=_n.map((t=>`:not([hidden]) > ${t}`));let qn=class ActionMenuElement extends HTMLElement{constructor(){super(...arguments),gn.add(this),fn.set(this,void 0),yn.set(this,""),bn.set(this,""),xn.set(this,!1)}get selectVariant(){return this.getAttribute("data-select-variant")}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){const t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get popoverElement(){return this.invokerElement?.popoverTargetElement||null}get invokerElement(){const t=this.querySelector("[role=menu]")?.id;if(!t)return null;for(const n of this.querySelectorAll("[aria-controls]"))if(n.getAttribute("aria-controls")===t)return n;return null}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){const t=this.querySelectorAll("[aria-checked=true]"),n=[];for(const r of t){const t=r.querySelector(".ActionListItem-label");n.push({label:t?.textContent,value:r?.getAttribute("data-value"),element:r})}return n}connectedCallback(){const{signal:t}=action_menu_element_classPrivateFieldSet(this,fn,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mouseover",this,{signal:t}),this.addEventListener("focusout",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.popoverElement?.addEventListener("toggle",this,{signal:t}),action_menu_element_classPrivateFieldGet(this,gn,"m",kn).call(this),action_menu_element_classPrivateFieldGet(this,gn,"m",Ln).call(this),action_menu_element_classPrivateFieldGet(this,gn,"m",Nn).call(this),this.includeFragment&&this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t})}disconnectedCallback(){action_menu_element_classPrivateFieldGet(this,fn,"f").abort()}handleEvent(t){const n=this.invokerElement?.contains(t.target),r=action_menu_element_classPrivateFieldGet(this,gn,"m",wn).call(this,t);if("toggle"===t.type&&"open"===t.newState&&action_menu_element_classPrivateFieldGet(this,gn,"a",In)?.focus(),n&&"mousedown"===t.type)return void action_menu_element_classPrivateFieldSet(this,xn,!0,"f");if("mousedown"===t.type)return void t.preventDefault();if(n&&r)return action_menu_element_classPrivateFieldGet(this,gn,"m",En).call(this,t),void action_menu_element_classPrivateFieldSet(this,xn,!1,"f");if("focusout"===t.type){if(action_menu_element_classPrivateFieldGet(this,xn,"f"))return;return void requestAnimationFrame((()=>{this.contains(document.activeElement)&&document.activeElement!==this.invokerElement||action_menu_element_classPrivateFieldGet(this,gn,"m",Tn).call(this)}))}const i=t.target.closest(Bn.join(","));if(null!==i&&r){if(action_menu_element_classPrivateFieldGet(this,gn,"m",vn).call(this,t))return;const n=i.closest("[data-show-dialog-id]");if(n){const r=this.ownerDocument.getElementById(n.getAttribute("data-show-dialog-id")||"");if(r&&this.contains(n))return void action_menu_element_classPrivateFieldGet(this,gn,"m",Cn).call(this,t,r)}return action_menu_element_classPrivateFieldGet(this,gn,"m",Sn).call(this,t)&&(t.preventDefault(),i.click()),void action_menu_element_classPrivateFieldGet(this,gn,"m",Pn).call(this,i)}"include-fragment-replaced"===t.type&&action_menu_element_classPrivateFieldGet(this,gn,"m",An).call(this)}get items(){return Array.from(this.querySelectorAll(Bn.join(",")))}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),t.querySelector(".ActionListContent").setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),t.querySelector(".ActionListContent").removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}hideItem(t){t&&t.setAttribute("hidden","hidden")}showItem(t){t&&t.removeAttribute("hidden")}isItemChecked(t){return!!t&&"true"===t.querySelector(".ActionListContent").getAttribute("aria-checked")}checkItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){const n=t.querySelector(".ActionListContent");"true"===n.getAttribute("aria-checked")||action_menu_element_classPrivateFieldGet(this,gn,"m",Pn).call(this,n)}}uncheckItem(t){if(t&&("single"===this.selectVariant||"multiple"===this.selectVariant)){const n=t.querySelector(".ActionListContent");"true"===n.getAttribute("aria-checked")&&action_menu_element_classPrivateFieldGet(this,gn,"m",Pn).call(this,n)}}};fn=new WeakMap,yn=new WeakMap,bn=new WeakMap,xn=new WeakMap,gn=new WeakSet,Nn=function _ActionMenuElement_softDisableItems(){const{signal:t}=action_menu_element_classPrivateFieldGet(this,fn,"f");for(const n of this.querySelectorAll(_n.join(",")))n.addEventListener("click",action_menu_element_classPrivateFieldGet(this,gn,"m",vn).bind(this),{signal:t}),n.addEventListener("keydown",action_menu_element_classPrivateFieldGet(this,gn,"m",vn).bind(this),{signal:t})},vn=function _ActionMenuElement_potentiallyDisallowActivation(t){if(!action_menu_element_classPrivateFieldGet(this,gn,"m",wn).call(this,t))return!1;const n=t.target.closest(Bn.join(","));return!!n&&(!!n.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0))},Sn=function _ActionMenuElement_isAnchorActivationViaSpace(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},wn=function _ActionMenuElement_isActivation(t){return t instanceof MouseEvent&&"click"===t.type||action_menu_element_classPrivateFieldGet(this,gn,"m",Sn).call(this,t)},En=function _ActionMenuElement_handleInvokerActivated(t){t.preventDefault(),t.stopPropagation(),action_menu_element_classPrivateFieldGet(this,gn,"m",Mn).call(this)?action_menu_element_classPrivateFieldGet(this,gn,"m",zn).call(this):action_menu_element_classPrivateFieldGet(this,gn,"m",Rn).call(this)},Cn=function _ActionMenuElement_handleDialogItemActivated(t,n){this.contains(n)&&(this.querySelector(".ActionListWrap").style.display="none");const r=new AbortController,{signal:i}=r,handleDialogClose=()=>{r.abort(),this.contains(n)&&(this.querySelector(".ActionListWrap").style.display="",action_menu_element_classPrivateFieldGet(this,gn,"m",Mn).call(this)&&action_menu_element_classPrivateFieldGet(this,gn,"m",zn).call(this));const t=this.ownerDocument.activeElement,i=this.ownerDocument.activeElement===this.ownerDocument.body,o=this.contains(t),a=n.contains(t);(i||o||a)&&setTimeout((()=>{const n=this.ownerDocument.activeElement;n!==t&&n!==this.ownerDocument.body||this.invokerElement?.focus()}),0)};n.addEventListener("close",handleDialogClose,{signal:i}),n.addEventListener("cancel",handleDialogClose,{signal:i})},Pn=function _ActionMenuElement_handleItemActivated(t){if("multiple"!==this.selectVariant&&setTimeout((()=>{action_menu_element_classPrivateFieldGet(this,gn,"m",Mn).call(this)&&action_menu_element_classPrivateFieldGet(this,gn,"m",zn).call(this)})),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;const n="true"!==t.getAttribute("aria-checked");if("single"===this.selectVariant){n&&t.setAttribute("aria-checked","true");for(const n of this.querySelectorAll("[aria-checked]"))n!==t&&n.setAttribute("aria-checked","false");action_menu_element_classPrivateFieldGet(this,gn,"m",kn).call(this)}else t.setAttribute("aria-checked",`${n}`);action_menu_element_classPrivateFieldGet(this,gn,"m",Ln).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{detail:{item:t.parentElement,checked:this.isItemChecked(t.parentElement)}}))},An=function _ActionMenuElement_handleIncludeFragmentReplaced(){action_menu_element_classPrivateFieldGet(this,gn,"a",In)&&action_menu_element_classPrivateFieldGet(this,gn,"a",In).focus(),action_menu_element_classPrivateFieldGet(this,gn,"m",Nn).call(this)},Tn=function _ActionMenuElement_handleFocusOut(){action_menu_element_classPrivateFieldGet(this,gn,"m",zn).call(this)},Rn=function _ActionMenuElement_show(){this.popoverElement?.showPopover()},zn=function _ActionMenuElement_hide(){this.popoverElement?.hidePopover()},Mn=function _ActionMenuElement_isOpen(){return this.popoverElement?.matches(":popover-open")},kn=function _ActionMenuElement_setDynamicLabel(){if(!this.dynamicLabel)return;const t=this.invokerLabel;if(!t)return;action_menu_element_classPrivateFieldSet(this,yn,action_menu_element_classPrivateFieldGet(this,yn,"f")||t.textContent||"","f");const n=this.querySelector("[aria-checked=true] .ActionListItem-label");if(n&&this.dynamicLabel){const r=document.createElement("span");r.classList.add("color-fg-muted");const i=document.createElement("span");r.textContent=this.dynamicLabelPrefix,i.textContent=n.textContent||"",t.replaceChildren(r,i)}else t.textContent=action_menu_element_classPrivateFieldGet(this,yn,"f")},Ln=function _ActionMenuElement_updateInput(){if("single"===this.selectVariant){const t=this.querySelector("[data-list-inputs=true] input");if(!t)return;const n=this.selectedItems[0];n?(t.value=(n.value||n.label||"").trim(),t.removeAttribute("disabled")):t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){const t=this.querySelector("[data-list-inputs=true]");if(!t)return;const n=t.querySelectorAll("input");n.length>0&&action_menu_element_classPrivateFieldSet(this,bn,action_menu_element_classPrivateFieldGet(this,bn,"f")||n[0].name,"f");for(const r of this.selectedItems){const n=document.createElement("input");n.setAttribute("data-list-input","true"),n.type="hidden",n.autocomplete="off",n.name=action_menu_element_classPrivateFieldGet(this,bn,"f"),n.value=(r.value||r.label||"").trim(),t.append(n)}for(const r of n)r.remove()}},In=function _ActionMenuElement_firstItem_get(){return this.querySelector(Bn.join(","))},action_menu_element_decorate([w.target],qn.prototype,"includeFragment",void 0),qn=action_menu_element_decorate([w.controller],qn),window.customElements.get("action-menu")||(window.ActionMenuElement=qn,window.customElements.define("action-menu",qn));r(46493);var On,Dn,Hn,Fn,Un,Vn,jn,$n,Kn,Wn,Gn,Xn,Qn,Jn,Yn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,mr,dr,pr,ur,hr,gr,fr,yr,br,xr,Nr,vr,Sr,wr,Er,select_panel_element_decorate=function(t,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},select_panel_element_classPrivateFieldGet=function(t,n,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:n.get(t)},select_panel_element_classPrivateFieldSet=function(t,n,r,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,r):o?o.value=r:n.set(t,r),r};const Cr=['[role="option"]'],Pr=Cr.join(","),Ar=Cr.map((t=>`:not([hidden]) > ${t}`)).join(",");var Tr,Rr;!function(t){t[t.REMOTE=0]="REMOTE",t[t.EVENTUALLY_LOCAL=1]="EVENTUALLY_LOCAL",t[t.LOCAL=2]="LOCAL"}(Tr||(Tr={})),function(t){t[t.BODY=0]="BODY",t[t.BANNER=1]="BANNER"}(Rr||(Rr={}));const zr=(()=>{const t=new Set;let n=null;function updateVisibleAnchors(){for(const n of t)n.updateAnchorPosition()}return r=>{window.addEventListener("resize",updateVisibleAnchors),window.addEventListener("scroll",updateVisibleAnchors),n||(n=new ResizeObserver((()=>{for(const n of t)n.updateAnchorPosition()}))),n.observe(r.ownerDocument.documentElement),r.addEventListener("dialog:close",(()=>{r.invokerElement?.setAttribute("aria-expanded","false"),t.delete(r)})),r.addEventListener("dialog:open",(()=>{t.add(r)}))}})();let Mr=class SelectPanelElement extends HTMLElement{constructor(){super(...arguments),On.add(this),Dn.set(this,void 0),Hn.set(this,void 0),Fn.set(this,""),Un.set(this,""),Vn.set(this,new Map),jn.set(this,null),$n.set(this,null),Kn.set(this,!1)}get open(){return this.dialog.open}get selectVariant(){return this.getAttribute("data-select-variant")}get ariaSelectionType(){return"multiple"===this.selectVariant?"aria-checked":"aria-selected"}set selectVariant(t){t?this.setAttribute("data-select-variant",t):this.removeAttribute("variant")}get dynamicLabelPrefix(){const t=this.getAttribute("data-dynamic-label-prefix");return t?`${t}:`:""}get dynamicAriaLabelPrefix(){const t=this.getAttribute("data-dynamic-aria-label-prefix");return t?`${t}:`:""}set dynamicLabelPrefix(t){this.setAttribute("data-dynamic-label",t)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(t){this.toggleAttribute("data-dynamic-label",t)}get invokerElement(){const t=this.querySelector("dialog")?.id;if(!t)return null;for(const n of this.querySelectorAll("[aria-controls]"))if(n.getAttribute("aria-controls")===t)return n;return null}get closeButton(){return this.querySelector("button[data-close-dialog-id]")}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){return Array.from(select_panel_element_classPrivateFieldGet(this,Vn,"f").values())}get align(){return this.getAttribute("anchor-align")||"start"}get side(){return this.getAttribute("anchor-side")||"outside-bottom"}updateAnchorPosition(){if(this&&null===this.offsetParent&&this.hide(),this.invokerElement){const{top:t,left:n}=getAnchoredPosition(this.dialog,this.invokerElement,{align:this.align,side:this.side,anchorOffset:4});this.dialog.style.top=`${t}px`,this.dialog.style.left=`${n}px`,this.dialog.style.bottom="auto",this.dialog.style.right="auto"}}connectedCallback(){const{signal:t}=select_panel_element_classPrivateFieldSet(this,Hn,new AbortController,"f");this.addEventListener("keydown",this,{signal:t}),this.addEventListener("click",this,{signal:t}),this.addEventListener("mousedown",this,{signal:t}),this.addEventListener("input",this,{signal:t}),this.addEventListener("remote-input-success",this,{signal:t}),this.addEventListener("remote-input-error",this,{signal:t}),this.addEventListener("loadstart",this,{signal:t}),select_panel_element_classPrivateFieldGet(this,On,"m",xr).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",Nr).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",Gn).call(this),zr(this),select_panel_element_classPrivateFieldGet(this,On,"m",Wn).call(this,(()=>Boolean(this.remoteInput)),(()=>{this.remoteInput.addEventListener("loadstart",this,{signal:t}),this.remoteInput.addEventListener("loadend",this,{signal:t})})),select_panel_element_classPrivateFieldGet(this,On,"m",Wn).call(this,(()=>Boolean(this.includeFragment)),(()=>{this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:t}),this.includeFragment.addEventListener("error",this,{signal:t}),this.includeFragment.addEventListener("loadend",this,{signal:t})})),select_panel_element_classPrivateFieldSet(this,Dn,new IntersectionObserver((t=>{for(const n of t){const t=n.target;n.isIntersecting&&t===this.dialog&&(this.filterInputTextField&&document.activeElement!==this.filterInputTextField&&this.filterInputTextField.focus(),this.dialog.setAttribute("data-ready","true"),this.updateAnchorPosition(),select_panel_element_classPrivateFieldGet(this,On,"a",ur)===Tr.LOCAL&&select_panel_element_classPrivateFieldGet(this,On,"m",lr).call(this))}})),"f"),select_panel_element_classPrivateFieldGet(this,On,"m",Wn).call(this,(()=>Boolean(this.dialog)),(()=>{select_panel_element_classPrivateFieldGet(this,Dn,"f").observe(this.dialog),this.dialog.addEventListener("close",this,{signal:t}),"true"===this.getAttribute("data-open-on-load")&&this.show()})),select_panel_element_classPrivateFieldGet(this,On,"a",ur)===Tr.LOCAL&&select_panel_element_classPrivateFieldGet(this,On,"m",Wn).call(this,(()=>this.items.length>0),(()=>{select_panel_element_classPrivateFieldGet(this,On,"m",lr).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",Nr).call(this)}))}disconnectedCallback(){select_panel_element_classPrivateFieldGet(this,Hn,"f").abort()}handleEvent(t){if(t.target===this.filterInputTextField)return void select_panel_element_classPrivateFieldGet(this,On,"m",sr).call(this,t);if(t.target===this.remoteInput)return void select_panel_element_classPrivateFieldGet(this,On,"m",or).call(this,t);const n=this.invokerElement?.contains(t.target),r=this.closeButton?.contains(t.target),i=select_panel_element_classPrivateFieldGet(this,On,"m",Yn).call(this,t);if(n&&"mousedown"===t.type)return;if("mousedown"===t.type&&t.target instanceof HTMLInputElement)return;if("mousedown"===t.type)return void t.preventDefault();if(n&&i)return void select_panel_element_classPrivateFieldGet(this,On,"m",fr).call(this,t);if(r&&i)return;if(t.target===this.dialog&&"close"===t.type){if(this.dialog.removeAttribute("data-ready"),this.invokerElement?.setAttribute("aria-expanded","false"),this.filterInputTextField){const t=this.filterInputTextField.value.length>0;this.filterInputTextField.value="",t&&this.filterInputTextField.dispatchEvent(new Event("input"))}return void this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}))}const o=t.target.closest(Ar)?.parentElement;if(null!=o&&i){if(select_panel_element_classPrivateFieldGet(this,On,"m",Qn).call(this,t))return;const n=o.closest("[data-show-dialog-id]");if(n){const r=this.ownerDocument.getElementById(n.getAttribute("data-show-dialog-id")||"");if(r&&this.contains(n)&&this.contains(r))return void select_panel_element_classPrivateFieldGet(this,On,"m",yr).call(this,t,r)}return select_panel_element_classPrivateFieldGet(this,On,"m",Jn).call(this,t)&&(t.preventDefault(),select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,o)?.click()),void select_panel_element_classPrivateFieldGet(this,On,"m",br).call(this,o)}if("click"===t.type){const n=this.dialog.getBoundingClientRect();n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width||this.hide()}t.target instanceof include_fragment_element_IncludeFragmentElement&&select_panel_element_classPrivateFieldGet(this,On,"m",rr).call(this,t)}show(){this.updateAnchorPosition(),this.dialog.showModal(),this.invokerElement?.setAttribute("aria-expanded","true");const t=new CustomEvent("dialog:open",{detail:{dialog:this.dialog}});this.dispatchEvent(t)}hide(){this.dialog.close()}get visibleItems(){return Array.from(this.querySelectorAll(Ar)).map((t=>t.parentElement))}get items(){return Array.from(this.querySelectorAll(Pr)).map((t=>t.parentElement))}get focusableItem(){for(const t of this.items){const n=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t);if(n&&"0"===n.getAttribute("tabindex"))return n}}getItemById(t){return this.querySelector(`li[data-item-id="${t}"`)}isItemDisabled(t){return!!t&&t.classList.contains("ActionListItem--disabled")}disableItem(t){t&&(t.classList.add("ActionListItem--disabled"),select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t).setAttribute("aria-disabled","true"))}enableItem(t){t&&(t.classList.remove("ActionListItem--disabled"),select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t).removeAttribute("aria-disabled"))}isItemHidden(t){return!!t&&t.hasAttribute("hidden")}isItemChecked(t){return!!t&&"true"===select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t).getAttribute(this.ariaSelectionType)}checkItem(t){!t||"single"!==this.selectVariant&&"multiple"!==this.selectVariant||this.isItemChecked(t)||select_panel_element_classPrivateFieldGet(this,On,"m",br).call(this,t)}uncheckItem(t){!t||"single"!==this.selectVariant&&"multiple"!==this.selectVariant||this.isItemChecked(t)&&select_panel_element_classPrivateFieldGet(this,On,"m",br).call(this,t)}};Dn=new WeakMap,Hn=new WeakMap,Fn=new WeakMap,Un=new WeakMap,Vn=new WeakMap,jn=new WeakMap,$n=new WeakMap,Kn=new WeakMap,On=new WeakSet,Wn=function _SelectPanelElement_waitForCondition(t,n){if(t())n();else{const r=new MutationObserver((()=>{t()&&(n(),r.disconnect())}));r.observe(this,{childList:!0,subtree:!0})}},Gn=function _SelectPanelElement_softDisableItems(){const{signal:t}=select_panel_element_classPrivateFieldGet(this,Hn,"f");for(const n of this.querySelectorAll(Cr.join(",")))n.addEventListener("click",select_panel_element_classPrivateFieldGet(this,On,"m",Qn).bind(this),{signal:t}),n.addEventListener("keydown",select_panel_element_classPrivateFieldGet(this,On,"m",Qn).bind(this),{signal:t})},Xn=function _SelectPanelElement_updateTabIndices(){let t=!1;if("single"===this.selectVariant)for(const n of this.items){const r=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,n);r&&(this.isItemHidden(n)||!this.isItemChecked(n)||t?r.setAttribute("tabindex","-1"):(r.setAttribute("tabindex","0"),t=!0),n.removeAttribute("tabindex"))}else for(const n of this.items){const t=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,n);t&&(t.setAttribute("tabindex","-1"),n.removeAttribute("tabindex"))}!t&&select_panel_element_classPrivateFieldGet(this,On,"a",vr)&&select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,select_panel_element_classPrivateFieldGet(this,On,"a",vr))?.setAttribute("tabindex","0")},Qn=function _SelectPanelElement_potentiallyDisallowActivation(t){if(!select_panel_element_classPrivateFieldGet(this,On,"m",Yn).call(this,t))return!1;const n=t.target.closest(Ar);return!!n&&(!!n.getAttribute("aria-disabled")&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!0))},Jn=function _SelectPanelElement_isAnchorActivationViaSpace(t){return t.target instanceof HTMLAnchorElement&&t instanceof KeyboardEvent&&"keydown"===t.type&&!(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&" "===t.key},Yn=function _SelectPanelElement_isActivation(t){return t instanceof MouseEvent&&"click"===t.type||select_panel_element_classPrivateFieldGet(this,On,"m",Jn).call(this,t)},Zn=function _SelectPanelElement_checkSelectedItems(){for(const t of this.items){const n=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t);if(!n)continue;const r=n.getAttribute("data-value");r&&select_panel_element_classPrivateFieldGet(this,Vn,"f").has(r)&&n.setAttribute(this.ariaSelectionType,"true")}select_panel_element_classPrivateFieldGet(this,On,"m",Nr).call(this)},er=function _SelectPanelElement_addSelectedItem(t){const n=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t);if(!n)return;const r=n.getAttribute("data-value");r&&select_panel_element_classPrivateFieldGet(this,Vn,"f").set(r,{value:r,label:n.querySelector(".ActionListItem-label")?.textContent?.trim(),inputName:n.getAttribute("data-input-name")})},tr=function _SelectPanelElement_removeSelectedItem(t){const n=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t);if(!n)return;const r=n.getAttribute("data-value");r&&select_panel_element_classPrivateFieldGet(this,Vn,"f").delete(r)},nr=function _SelectPanelElement_setTextFieldLoadingSpinnerTimer(){select_panel_element_classPrivateFieldGet(this,On,"a",hr)&&(select_panel_element_classPrivateFieldGet(this,jn,"f")&&clearTimeout(select_panel_element_classPrivateFieldGet(this,jn,"f")),select_panel_element_classPrivateFieldGet(this,$n,"f")&&clearTimeout(select_panel_element_classPrivateFieldGet(this,$n,"f")),select_panel_element_classPrivateFieldSet(this,$n,setTimeout((()=>{this.liveRegion.announce("Loading")}),2e3),"f"),select_panel_element_classPrivateFieldSet(this,jn,setTimeout((()=>{select_panel_element_classPrivateFieldGet(this,On,"a",hr)?.showLeadingSpinner()}),1e3),"f"))},rr=function _SelectPanelElement_handleIncludeFragmentEvent(t){switch(t.type){case"include-fragment-replaced":select_panel_element_classPrivateFieldGet(this,On,"m",lr).call(this);break;case"loadstart":select_panel_element_classPrivateFieldGet(this,On,"m",ir).call(this,!1);break;case"loadend":select_panel_element_classPrivateFieldGet(this,On,"a",hr)?.hideLeadingSpinner(),this.dispatchEvent(new CustomEvent("loadend"));break;case"error":{select_panel_element_classPrivateFieldGet(this,On,"m",ir).call(this,!0);const t=this.fragmentErrorElement;if(t&&!t.hasAttribute("hidden"))return void this.liveRegion.announceFromElement(t,{politeness:"assertive"});break}}},ir=function _SelectPanelElement_toggleIncludeFragmentElements(t){for(const n of this.includeFragment.querySelectorAll("[data-show-on-error]"))n instanceof HTMLElement&&(n.hidden=!t);for(const n of this.includeFragment.querySelectorAll("[data-hide-on-error]"))n instanceof HTMLElement&&(n.hidden=t)},or=function _SelectPanelElement_handleRemoteInputEvent(t){switch(t.type){case"remote-input-success":select_panel_element_classPrivateFieldGet(this,On,"m",dr).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",lr).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",Zn).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?select_panel_element_classPrivateFieldGet(this,On,"m",mr).call(this,Rr.BODY):select_panel_element_classPrivateFieldGet(this,On,"m",mr).call(this,Rr.BANNER);break;case"loadstart":if(!select_panel_element_classPrivateFieldGet(this,On,"m",gr).call(this)){if(select_panel_element_classPrivateFieldGet(this,On,"m",dr).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;select_panel_element_classPrivateFieldGet(this,On,"m",nr).call(this)}break;case"loadend":select_panel_element_classPrivateFieldGet(this,On,"a",hr)?.hideLeadingSpinner(),select_panel_element_classPrivateFieldGet(this,$n,"f")&&clearTimeout(select_panel_element_classPrivateFieldGet(this,$n,"f")),select_panel_element_classPrivateFieldGet(this,jn,"f")&&clearTimeout(select_panel_element_classPrivateFieldGet(this,jn,"f")),this.dispatchEvent(new CustomEvent("loadend"))}},ar=function _SelectPanelElement_defaultFilterFn(t,n){return(t.getAttribute("data-filter-string")||t.textContent||"").toLowerCase().indexOf(n.toLowerCase())>-1},sr=function _SelectPanelElement_handleSearchFieldEvent(t){if("keydown"===t.type){const n=t.key;if("Enter"===n){const t=this.visibleItems[0];if(t){const n=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t);n&&n.click()}}else if("ArrowDown"===n){const n=this.focusableItem||select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,this.visibleItems[0]);n&&(n.focus(),t.preventDefault())}else if("Home"===n){const n=this.visibleItems[0];if(n){const r=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,n);r&&r.focus(),t.preventDefault()}}else if("End"===n&&this.visibleItems.length>0){const n=this.visibleItems[this.visibleItems.length-1],r=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,n);r&&r.focus(),t.preventDefault()}}if("input"===t.type&&(this.bodySpinner||select_panel_element_classPrivateFieldGet(this,On,"m",gr).call(this)||select_panel_element_classPrivateFieldGet(this,On,"m",nr).call(this),select_panel_element_classPrivateFieldGet(this,On,"a",ur)===Tr.LOCAL||select_panel_element_classPrivateFieldGet(this,On,"a",ur)===Tr.EVENTUALLY_LOCAL)){if(this.includeFragment)return void this.includeFragment.refetch();select_panel_element_classPrivateFieldGet(this,On,"m",lr).call(this)}},lr=function _SelectPanelElement_updateItemVisibility(){if(!this.list)return;let t=!1;if(select_panel_element_classPrivateFieldGet(this,On,"m",gr).call(this)){const n=this.filterInputTextField?.value??"",r=this.filterFn||select_panel_element_classPrivateFieldGet(this,On,"m",ar);for(const i of this.items)r(i,n)?(select_panel_element_classPrivateFieldGet(this,On,"m",wr).call(this,i),t=!0):select_panel_element_classPrivateFieldGet(this,On,"m",Sr).call(this,i)}else t=this.items.length>0;select_panel_element_classPrivateFieldGet(this,On,"m",Xn).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",pr).call(this);for(const n of this.items){const t=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,n);if(!t)continue;const r=t.getAttribute("data-value");select_panel_element_classPrivateFieldGet(this,Kn,"f")?r&&!select_panel_element_classPrivateFieldGet(this,Vn,"f").has(r)&&t.setAttribute(this.ariaSelectionType,"false"):r&&!select_panel_element_classPrivateFieldGet(this,Vn,"f").has(r)&&this.isItemChecked(n)&&select_panel_element_classPrivateFieldGet(this,On,"m",er).call(this,n)}select_panel_element_classPrivateFieldSet(this,Kn,!0,"f"),this.noResults&&(select_panel_element_classPrivateFieldGet(this,On,"m",cr).call(this)?this.noResults.setAttribute("hidden",""):t?(this.noResults.setAttribute("hidden",""),this.list?.querySelector(".ActionListWrap")?.removeAttribute("hidden")):(this.list?.querySelector(".ActionListWrap")?.setAttribute("hidden",""),this.noResults.removeAttribute("hidden")))},cr=function _SelectPanelElement_inErrorState(){return!(!this.fragmentErrorElement||this.fragmentErrorElement.hasAttribute("hidden"))||!!this.bannerErrorElement&&!this.bannerErrorElement.hasAttribute("hidden")},mr=function _SelectPanelElement_setErrorState(t){let n=this.fragmentErrorElement;t===Rr.BODY&&this.fragmentErrorElement?(this.fragmentErrorElement.removeAttribute("hidden"),this.bannerErrorElement.setAttribute("hidden","")):(n=this.bannerErrorElement,this.bannerErrorElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),!n||n.hasAttribute("hidden")||this.liveRegion.announceFromElement(n,{politeness:"assertive"})},dr=function _SelectPanelElement_clearErrorState(){this.fragmentErrorElement?.setAttribute("hidden",""),this.bannerErrorElement.setAttribute("hidden","")},pr=function _SelectPanelElement_maybeAnnounce(){if(this.open&&this.list){const t=this.visibleItems;if(t.length>0){const n="tab for results";this.liveRegion.announce(`${t.length} result${1===t.length?"":"s"} ${n}`)}else{const t=this.noResults;t&&this.liveRegion.announceFromElement(t)}}},ur=function _SelectPanelElement_fetchStrategy_get(){if(!this.list)return Tr.REMOTE;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return Tr.LOCAL;case"eventually_local":return Tr.EVENTUALLY_LOCAL;default:return Tr.REMOTE}},hr=function _SelectPanelElement_filterInputTextFieldElement_get(){return this.filterInputTextField?.closest("primer-text-field")},gr=function _SelectPanelElement_performFilteringLocally(){return select_panel_element_classPrivateFieldGet(this,On,"a",ur)===Tr.LOCAL||select_panel_element_classPrivateFieldGet(this,On,"a",ur)===Tr.EVENTUALLY_LOCAL},fr=function _SelectPanelElement_handleInvokerActivated(t){t.preventDefault(),t.stopPropagation(),this.open?this.hide():this.show()},yr=function _SelectPanelElement_handleDialogItemActivated(t,n){this.querySelector(".ActionListWrap").style.display="none";const r=new AbortController,{signal:i}=r,handleDialogClose=()=>{r.abort(),this.querySelector(".ActionListWrap").style.display="",this.open&&this.hide();const t=this.ownerDocument.activeElement,n=this.ownerDocument.activeElement===this.ownerDocument.body,i=this.contains(t);(n||i)&&setTimeout((()=>this.invokerElement?.focus()),0)};n.addEventListener("close",handleDialogClose,{signal:i}),n.addEventListener("cancel",handleDialogClose,{signal:i})},br=function _SelectPanelElement_handleItemActivated(t){if("multiple"!==this.selectVariant&&setTimeout((()=>{this.open&&this.hide()})),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;const n=this.isItemChecked(t),r=!n;if(!this.dispatchEvent(new CustomEvent("beforeItemActivated",{bubbles:!0,cancelable:!0,detail:{item:t,checked:r,value:select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t)?.getAttribute("data-value")}})))return;const i=select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t);if("single"===this.selectVariant){if(i?.getAttribute("href"))return;if(!n){for(const t of this.items)select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t)?.setAttribute(this.ariaSelectionType,"false");select_panel_element_classPrivateFieldGet(this,Vn,"f").clear(),r&&(select_panel_element_classPrivateFieldGet(this,On,"m",er).call(this,t),i?.setAttribute(this.ariaSelectionType,"true")),select_panel_element_classPrivateFieldGet(this,On,"m",xr).call(this)}}else i?.setAttribute(this.ariaSelectionType,`${r}`),r?select_panel_element_classPrivateFieldGet(this,On,"m",er).call(this,t):select_panel_element_classPrivateFieldGet(this,On,"m",tr).call(this,t);select_panel_element_classPrivateFieldGet(this,On,"m",Nr).call(this),select_panel_element_classPrivateFieldGet(this,On,"m",Xn).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:t,checked:r,value:select_panel_element_classPrivateFieldGet(this,On,"m",Er).call(this,t)?.getAttribute("data-value")}}))},xr=function _SelectPanelElement_setDynamicLabel(){if(!this.dynamicLabel)return;const t=this.invokerLabel;if(!t)return;select_panel_element_classPrivateFieldSet(this,Fn,select_panel_element_classPrivateFieldGet(this,Fn,"f")||t.textContent||"","f");const n=this.querySelector(`[${this.ariaSelectionType}=true] .ActionListItem-label`)?.textContent||select_panel_element_classPrivateFieldGet(this,Fn,"f");if(n){const r=document.createElement("span");r.classList.add("color-fg-muted");const i=document.createElement("span");r.textContent=`${this.dynamicLabelPrefix} `,i.textContent=n,t.replaceChildren(r,i),this.dynamicAriaLabelPrefix&&this.invokerElement?.setAttribute("aria-label",`${this.dynamicAriaLabelPrefix} ${n.trim()}`)}else t.textContent=select_panel_element_classPrivateFieldGet(this,Fn,"f")},Nr=function _SelectPanelElement_updateInput(){if("single"===this.selectVariant){const t=this.querySelector("[data-list-inputs=true] input");if(!t)return;const n=this.selectedItems[0];n?(t.value=(n.value||n.label||"").trim(),n.inputName&&(t.name=n.inputName),t.removeAttribute("disabled")):t.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){const t=this.querySelector("[data-list-inputs=true]");if(!t)return;const n=t.querySelectorAll("input");n.length>0&&select_panel_element_classPrivateFieldSet(this,Un,select_panel_element_classPrivateFieldGet(this,Un,"f")||n[0].name,"f");for(const r of this.selectedItems){const n=document.createElement("input");n.setAttribute("data-list-input","true"),n.type="hidden",n.autocomplete="off",n.name=r.inputName||select_panel_element_classPrivateFieldGet(this,Un,"f"),n.value=(r.value||r.label||"").trim(),t.append(n)}for(const r of n)r.remove()}},vr=function _SelectPanelElement_firstItem_get(){return this.querySelector(Ar)?.parentElement||null},Sr=function _SelectPanelElement_hideItem(t){t&&t.setAttribute("hidden","hidden")},wr=function _SelectPanelElement_showItem(t){t&&t.removeAttribute("hidden")},Er=function _SelectPanelElement_getItemContent(t){return t.querySelector(".ActionListContent")},select_panel_element_decorate([w.target],Mr.prototype,"includeFragment",void 0),select_panel_element_decorate([w.target],Mr.prototype,"dialog",void 0),select_panel_element_decorate([w.target],Mr.prototype,"filterInputTextField",void 0),select_panel_element_decorate([w.target],Mr.prototype,"remoteInput",void 0),select_panel_element_decorate([w.target],Mr.prototype,"list",void 0),select_panel_element_decorate([w.target],Mr.prototype,"noResults",void 0),select_panel_element_decorate([w.target],Mr.prototype,"fragmentErrorElement",void 0),select_panel_element_decorate([w.target],Mr.prototype,"bannerErrorElement",void 0),select_panel_element_decorate([w.target],Mr.prototype,"bodySpinner",void 0),select_panel_element_decorate([w.target],Mr.prototype,"liveRegion",void 0),Mr=select_panel_element_decorate([w.controller],Mr),window.customElements.get("select-panel")||(window.SelectPanelElement=Mr,window.customElements.define("select-panel",Mr))},69348:()=>{!function(){"use strict";var t=document.createElement("details"),n="undefined"!=typeof HTMLDetailsElement&&t instanceof HTMLDetailsElement,r="open"in t||n,i="ontoggle"in t,o='\ndetails, summary {\n display: block;\n}\ndetails:not([open]) > *:not(summary) {\n display: none;\n}\nsummary::before {\n content: "►";\n padding-right: 0.3rem;\n font-size: 0.6rem;\n cursor: default;\n}\n[open] > summary::before {\n content: "▼";\n}\n',a=[],s=a.forEach,l=a.slice;function setAccessibilityAttributes(t){(function findElementsWithTagName(t,n){return(t.tagName==n?[t]:[]).concat("function"==typeof t.getElementsByTagName?l.call(t.getElementsByTagName(n)):[])})(t,"SUMMARY").forEach((function(t){var n=findClosestElementWithTagName(t,"DETAILS");t.setAttribute("aria-expanded",n.hasAttribute("open")),t.hasAttribute("tabindex")||t.setAttribute("tabindex","0"),t.hasAttribute("role")||t.setAttribute("role","button")}))}function eventIsSignificant(t){return!(t.defaultPrevented||t.ctrlKey||t.metaKey||t.shiftKey||t.target.isContentEditable)}function onTogglingTrigger(t){addEventListener("click",(function(n){if(eventIsSignificant(n)&&n.which<=1){var r=findClosestElementWithTagName(n.target,"SUMMARY");r&&r.parentNode&&"DETAILS"==r.parentNode.tagName&&t(r.parentNode)}}),!1),addEventListener("keydown",(function(n){if(eventIsSignificant(n)&&(13==n.keyCode||32==n.keyCode)){var r=findClosestElementWithTagName(n.target,"SUMMARY");r&&r.parentNode&&"DETAILS"==r.parentNode.tagName&&(t(r.parentNode),n.preventDefault())}}),!1)}function triggerToggle(t){var n=document.createEvent("Event");n.initEvent("toggle",!1,!1),t.dispatchEvent(n)}function findClosestElementWithTagName(t,n){if("function"==typeof t.closest)return t.closest(n);for(;t;){if(t.tagName==n)return t;t=t.parentNode}}r||(!function polyfillStyles(){document.head.insertAdjacentHTML("afterbegin","")}(),function polyfillProperties(){var t=document.createElement("details").constructor.prototype,n=t.setAttribute,r=t.removeAttribute,i=Object.getOwnPropertyDescriptor(t,"open");Object.defineProperties(t,{open:{get:function get(){return"DETAILS"==this.tagName?this.hasAttribute("open"):i&&i.get?i.get.call(this):void 0},set:function set(t){return"DETAILS"==this.tagName?t?this.setAttribute("open",""):this.removeAttribute("open"):i&&i.set?i.set.call(this,t):void 0}},setAttribute:{value:function value(t,r){var i=this,o=function call(){return n.call(i,t,r)};if("open"==t&&"DETAILS"==this.tagName){var a=this.hasAttribute("open"),s=o();if(!a){var l=this.querySelector("summary");l&&l.setAttribute("aria-expanded",!0),triggerToggle(this)}return s}return o()}},removeAttribute:{value:function value(t){var n=this,i=function call(){return r.call(n,t)};if("open"==t&&"DETAILS"==this.tagName){var o=this.hasAttribute("open"),a=i();if(o){var s=this.querySelector("summary");s&&s.setAttribute("aria-expanded",!1),triggerToggle(this)}return a}return i()}}})}(),function polyfillToggle(){onTogglingTrigger((function(t){t.hasAttribute("open")?t.removeAttribute("open"):t.setAttribute("open","")}))}(),function polyfillAccessibility(){setAccessibilityAttributes(document),window.MutationObserver?new MutationObserver((function(t){s.call(t,(function(t){s.call(t.addedNodes,setAccessibilityAttributes)}))})).observe(document.documentElement,{subtree:!0,childList:!0}):document.addEventListener("DOMNodeInserted",(function(t){setAccessibilityAttributes(t.target)}))}()),r&&!i&&function polyfillToggleEvent(){window.MutationObserver?new MutationObserver((function(t){s.call(t,(function(t){var n=t.target,r=t.attributeName;"DETAILS"==n.tagName&&"open"==r&&triggerToggle(n)}))})).observe(document.documentElement,{attributes:!0,subtree:!0}):onTogglingTrigger((function(t){var n=t.getAttribute("open");setTimeout((function(){var r=t.getAttribute("open");n!=r&&triggerToggle(t)}),1)}))}()}()},69754:()=>{(function(){"use strict";var t=window.Document.prototype.createElement,n=window.Document.prototype.createElementNS,r=window.Document.prototype.importNode,i=window.Document.prototype.prepend,o=window.Document.prototype.append,a=window.DocumentFragment.prototype.prepend,s=window.DocumentFragment.prototype.append,l=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,m=window.Node.prototype.insertBefore,p=window.Node.prototype.removeChild,u=window.Node.prototype.replaceChild,h=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),y=window.Element.prototype.attachShadow,x=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),v=window.Element.prototype.getAttribute,w=window.Element.prototype.setAttribute,E=window.Element.prototype.removeAttribute,C=window.Element.prototype.toggleAttribute,A=window.Element.prototype.getAttributeNS,z=window.Element.prototype.setAttributeNS,k=window.Element.prototype.removeAttributeNS,I=window.Element.prototype.insertAdjacentElement,_=window.Element.prototype.insertAdjacentHTML,B=window.Element.prototype.prepend,q=window.Element.prototype.append,O=window.Element.prototype.before,D=window.Element.prototype.after,H=window.Element.prototype.replaceWith,F=window.Element.prototype.remove,j=window.HTMLElement,$=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),G=window.HTMLElement.prototype.insertAdjacentElement,ee=window.HTMLElement.prototype.insertAdjacentHTML,te=new Set;function ra(t){var n=te.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!n&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(t){return te.add(t)}));var ne=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function J(t){var n=t.isConnected;if(void 0!==n)return n;if(ne(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function K(t){var n=t.children;if(n)return Array.prototype.slice.call(n);for(n=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&n.push(t);return n}function L(t,n){for(;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function M(t,n,r){for(var i=t;i;){if(i.nodeType===Node.ELEMENT_NODE){var o=i;n(o);var a=o.localName;if("link"===a&&"import"===o.getAttribute("rel")){if(i=o.import,void 0===r&&(r=new Set),i instanceof Node&&!r.has(i))for(r.add(i),i=i.firstChild;i;i=i.nextSibling)M(i,n,r);i=L(t,o);continue}if("template"===a){i=L(t,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)M(o,n,r)}i=i.firstChild?i.firstChild:L(t,i)}}function N(){var t=!(null==ie||!ie.noDocumentConstructionObserver),n=!(null==ie||!ie.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=n,this.I=!t}function P(t,n,r,i){var o=window.ShadyDOM;if(t.shadyDomFastWalk&&o&&o.inUse){if(n.nodeType===Node.ELEMENT_NODE&&r(n),n.querySelectorAll)for(t=o.nativeMethods.querySelectorAll.call(n,"*"),n=0;n{"use strict";r.r(n),r.d(n,{default:()=>s});const i="data-close-dialog",o=`[${i}]`;function autofocus(t){let n=Array.from(t.querySelectorAll("[autofocus]")).filter(focusable)[0];n||(n=t,t.setAttribute("tabindex","-1")),n.focus()}function keydown(t){const n=t.currentTarget;n instanceof Element&&("Escape"===t.key||"Esc"===t.key?(toggleDetails(n,!1),t.stopPropagation()):"Tab"===t.key&&function restrictTabBehavior(t){if(!(t.currentTarget instanceof Element))return;const n=t.currentTarget.querySelector("details-dialog");if(!n)return;t.preventDefault();const r=Array.from(n.querySelectorAll("*")).filter(focusable);if(0===r.length)return;const i=t.shiftKey?-1:1,o=n.getRootNode(),a=n.contains(o.activeElement)?o.activeElement:null;let s=-1===i?-1:0;if(a instanceof HTMLElement){const t=r.indexOf(a);-1!==t&&(s=t+i)}s<0?s=r.length-1:s%=r.length;r[s].focus()}(t))}function focusable(t){return t.tabIndex>=0&&!t.disabled&&function visible(t){return!t.hidden&&(!t.type||"hidden"!==t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}(t)}function allowClosingDialog(t){const n=t.querySelector("details-dialog");return!(n instanceof DetailsDialogElement)||n.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0}))}function onSummaryClick(t){if(!(t.currentTarget instanceof Element))return;const n=t.currentTarget.closest("details");n&&n.hasAttribute("open")&&(allowClosingDialog(n)||(t.preventDefault(),t.stopPropagation()))}function toggle(t){const n=t.currentTarget;if(!(n instanceof Element))return;const r=n.querySelector("details-dialog");if(r instanceof DetailsDialogElement)if(n.hasAttribute("open")){const t="getRootNode"in r?r.getRootNode():document;t.activeElement instanceof HTMLElement&&a.set(r,{details:n,activeElement:t.activeElement}),autofocus(r),n.addEventListener("keydown",keydown)}else{for(const n of r.querySelectorAll("form"))n.reset();const t=function findFocusElement(t,n){const r=a.get(n);return r&&r.activeElement instanceof HTMLElement?r.activeElement:t.querySelector("summary")}(n,r);t&&t.focus(),n.removeEventListener("keydown",keydown)}}function toggleDetails(t,n){n!==t.hasAttribute("open")&&(n?t.setAttribute("open",""):allowClosingDialog(t)&&t.removeAttribute("open"))}function loadIncludeFragment(t){const n=t.currentTarget;if(!(n instanceof Element))return;const r=n.querySelector("details-dialog");if(!(r instanceof DetailsDialogElement))return;const i=r.querySelector("include-fragment:not([src])");if(!i)return;const o=r.src;null!==o&&(i.addEventListener("loadend",(()=>{n.hasAttribute("open")&&autofocus(r)})),i.setAttribute("src",o),removeIncludeFragmentEventListeners(n))}function updateIncludeFragmentEventListeners(t,n,r){removeIncludeFragmentEventListeners(t),n&&t.addEventListener("toggle",loadIncludeFragment,{once:!0}),n&&r&&t.addEventListener("mouseover",loadIncludeFragment,{once:!0})}function removeIncludeFragmentEventListeners(t){t.removeEventListener("toggle",loadIncludeFragment),t.removeEventListener("mouseover",loadIncludeFragment)}const a=new WeakMap;class DetailsDialogElement extends HTMLElement{static get CLOSE_ATTR(){return i}static get CLOSE_SELECTOR(){return o}constructor(){super(),a.set(this,{details:null,activeElement:null}),this.addEventListener("click",(function({target:t}){if(!(t instanceof Element))return;const n=t.closest("details");n&&t.closest(o)&&toggleDetails(n,!1)})),this.addEventListener("submit",(function(t){if(!(t.target instanceof HTMLFormElement))return;const{target:n}=t,r="submitter"in t?t:null,i=null==r?void 0:r.submitter;if("dialog"==((null==i?void 0:i.getAttribute("formmethod"))||n.getAttribute("method"))){t.preventDefault();const r=n.closest("details");r&&toggleDetails(r,!1)}}))}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t||"")}get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");const t=a.get(this);if(!t)return;const n=this.parentElement;if(!n)return;const r=n.querySelector("summary");r&&(r.hasAttribute("role")||r.setAttribute("role","button"),r.addEventListener("click",onSummaryClick,{capture:!0})),n.addEventListener("toggle",toggle),t.details=n,updateIncludeFragmentEventListeners(n,this.src,this.preload)}disconnectedCallback(){const t=a.get(this);if(!t)return;const{details:n}=t;if(!n)return;n.removeEventListener("toggle",toggle),removeIncludeFragmentEventListeners(n);const r=n.querySelector("summary");r&&r.removeEventListener("click",onSummaryClick,{capture:!0}),t.details=null}toggle(t){const n=a.get(this);if(!n)return;const{details:r}=n;r&&toggleDetails(r,t)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){const t=a.get(this);if(!t)return;const{details:n}=t;n&&updateIncludeFragmentEventListeners(n,this.src,this.preload)}}const s=DetailsDialogElement;window.customElements.get("details-dialog")||(window.DetailsDialogElement=DetailsDialogElement,window.customElements.define("details-dialog",DetailsDialogElement))},78143:()=>{"use strict";const t=["[data-md-button]","md-header","md-bold","md-italic","md-quote","md-code","md-link","md-image","md-unordered-list","md-ordered-list","md-task-list","md-mention","md-ref","md-strikethrough"];function getButtons(n){const r=[];for(const i of n.querySelectorAll(t.join(", ")))i.hidden||i.offsetWidth<=0&&i.offsetHeight<=0||i.closest("markdown-toolbar")===n&&r.push(i);return r}const n=new WeakMap;class MarkdownButtonElement extends HTMLElement{constructor(){super();const apply=()=>{const t=n.get(this);t&&applyStyle(this,t)};this.addEventListener("keydown",function keydown(t){return function(n){" "!==n.key&&"Enter"!==n.key||(n.preventDefault(),t(n))}}(apply)),this.addEventListener("click",apply)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","button")}click(){const t=n.get(this);t&&applyStyle(this,t)}}class MarkdownHeaderButtonElement extends MarkdownButtonElement{constructor(){super();const t=parseInt(this.getAttribute("level")||"3",10);if(t<1||t>6)return;const r=`${"#".repeat(t)} `;n.set(this,{prefix:r})}}window.customElements.get("md-header")||(window.MarkdownHeaderButtonElement=MarkdownHeaderButtonElement,window.customElements.define("md-header",MarkdownHeaderButtonElement));class MarkdownBoldButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"**",suffix:"**",trimFirst:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","b")}}window.customElements.get("md-bold")||(window.MarkdownBoldButtonElement=MarkdownBoldButtonElement,window.customElements.define("md-bold",MarkdownBoldButtonElement));class MarkdownItalicButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"_",suffix:"_",trimFirst:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","i")}}window.customElements.get("md-italic")||(window.MarkdownItalicButtonElement=MarkdownItalicButtonElement,window.customElements.define("md-italic",MarkdownItalicButtonElement));class MarkdownQuoteButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"> ",multiline:!0,surroundWithNewlines:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","."),this.setAttribute("hotkey-requires-shift","true")}}window.customElements.get("md-quote")||(window.MarkdownQuoteButtonElement=MarkdownQuoteButtonElement,window.customElements.define("md-quote",MarkdownQuoteButtonElement));class MarkdownCodeButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","e")}}window.customElements.get("md-code")||(window.MarkdownCodeButtonElement=MarkdownCodeButtonElement,window.customElements.define("md-code",MarkdownCodeButtonElement));class MarkdownLinkButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","k")}}window.customElements.get("md-link")||(window.MarkdownLinkButtonElement=MarkdownLinkButtonElement,window.customElements.define("md-link",MarkdownLinkButtonElement));class MarkdownImageButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"![",suffix:"](url)",replaceNext:"url",scanFor:"https?://"})}}window.customElements.get("md-image")||(window.MarkdownImageButtonElement=MarkdownImageButtonElement,window.customElements.define("md-image",MarkdownImageButtonElement));class MarkdownUnorderedListButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"- ",multiline:!0,surroundWithNewlines:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","8"),this.setAttribute("hotkey-requires-shift","true")}}window.customElements.get("md-unordered-list")||(window.MarkdownUnorderedListButtonElement=MarkdownUnorderedListButtonElement,window.customElements.define("md-unordered-list",MarkdownUnorderedListButtonElement));class MarkdownOrderedListButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"1. ",multiline:!0,orderedList:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","7"),this.setAttribute("hotkey-requires-shift","true")}}window.customElements.get("md-ordered-list")||(window.MarkdownOrderedListButtonElement=MarkdownOrderedListButtonElement,window.customElements.define("md-ordered-list",MarkdownOrderedListButtonElement));class MarkdownTaskListButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("hotkey","L")}}window.customElements.get("md-task-list")||(window.MarkdownTaskListButtonElement=MarkdownTaskListButtonElement,window.customElements.define("md-task-list",MarkdownTaskListButtonElement));class MarkdownMentionButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"@",prefixSpace:!0})}}window.customElements.get("md-mention")||(window.MarkdownMentionButtonElement=MarkdownMentionButtonElement,window.customElements.define("md-mention",MarkdownMentionButtonElement));class MarkdownRefButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"#",prefixSpace:!0})}}window.customElements.get("md-ref")||(window.MarkdownRefButtonElement=MarkdownRefButtonElement,window.customElements.define("md-ref",MarkdownRefButtonElement));class MarkdownStrikethroughButtonElement extends MarkdownButtonElement{constructor(){super(),n.set(this,{prefix:"~~",suffix:"~~",trimFirst:!0})}}window.customElements.get("md-strikethrough")||(window.MarkdownStrikethroughButtonElement=MarkdownStrikethroughButtonElement,window.customElements.define("md-strikethrough",MarkdownStrikethroughButtonElement));const r=navigator.userAgent.match(/Macintosh/)?"Meta":"Control";class MarkdownToolbarElement extends HTMLElement{constructor(){super()}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.addEventListener("keydown",focusKeydown);const t=shortcut.bind(null,this);this.field&&(this.field.addEventListener("keydown",t),i.set(this,t)),this.setAttribute("tabindex","0"),this.addEventListener("focus",onToolbarFocus,{once:!0})}disconnectedCallback(){const t=i.get(this);t&&this.field&&(this.field.removeEventListener("keydown",t),i.delete(this)),this.removeEventListener("keydown",focusKeydown)}get field(){const t=this.getAttribute("for");if(!t)return null;const n="getRootNode"in this?this.getRootNode():document;let r;return(n instanceof Document||n instanceof ShadowRoot)&&(r=n.getElementById(t)),r instanceof HTMLTextAreaElement?r:null}}function onToolbarFocus({target:t}){if(!(t instanceof Element))return;t.removeAttribute("tabindex");let n="0";for(const r of getButtons(t))r.setAttribute("tabindex",n),"0"===n&&(r.focus(),n="-1")}function focusKeydown(t){const n=t.key;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Home"!==n&&"End"!==n)return;const r=t.currentTarget;if(!(r instanceof HTMLElement))return;const i=getButtons(r),o=i.indexOf(t.target),a=i.length;if(-1===o)return;let s=0;"ArrowLeft"===n&&(s=o-1),"ArrowRight"===n&&(s=o+1),"End"===n&&(s=a-1),s<0&&(s=a-1),s>a-1&&(s=0);for(let l=0;l1}function repeat(t,n){return Array(n+1).join(t)}function wordSelectionEnd(t,n,r){let i=n;const o=r?/\n/:/\s/;for(;t[i]&&!t[i].match(o);)i++;return i}window.customElements.get("markdown-toolbar")||(window.MarkdownToolbarElement=MarkdownToolbarElement,window.customElements.define("markdown-toolbar",MarkdownToolbarElement));let o=null;function styleSelectedText(t,n){const r=t.value.slice(t.selectionStart,t.selectionEnd);let i;i=n.orderedList?function orderedList(t){const n=/^\d+\.\s+/,r=t.selectionStart===t.selectionEnd;let i,o,a,s,l=t.value.slice(t.selectionStart,t.selectionEnd),c=l,m=l.split("\n");if(r){const n=t.value.slice(0,t.selectionStart).split(/\n/);a=t.selectionStart-n[n.length-1].length,s=wordSelectionEnd(t.value,t.selectionStart,!0),c=t.value.slice(a,s)}const p=c.split("\n");if(p.every((t=>n.test(t)))){if(m=p.map((t=>t.replace(n,""))),l=m.join("\n"),r&&a&&s){const n=p[0].length-m[0].length;o=i=t.selectionStart-n,t.selectionStart=a,t.selectionEnd=s}}else{m=function numberedLines(t){let n,r,i;const o=[];for(i=n=0,r=t.length;nt.startsWith(r)&&t.endsWith(i))))a=c.map((t=>t.slice(r.length,t.length-i.length))).join("\n"),l=s+a.length;else if(a=c.map((t=>r+t+i)).join("\n"),o){const{newlinesToAppend:n,newlinesToPrepend:r}=newlinesToSurroundSelectedText(t);s+=n.length,l=s+a.length,a=n+a+r}return{text:a,selectionStart:s,selectionEnd:l}}(t,n):function blockStyle(t,n){let r,i;const{prefix:o,suffix:a,blockPrefix:s,blockSuffix:l,replaceNext:c,prefixSpace:m,scanFor:p,surroundWithNewlines:u}=n,h=t.selectionStart,y=t.selectionEnd;let x=t.value.slice(t.selectionStart,t.selectionEnd),v=isMultipleLines(x)&&s.length>0?`${s}\n`:o,w=isMultipleLines(x)&&l.length>0?`\n${l}`:a;if(m){const n=t.value[t.selectionStart-1];0===t.selectionStart||null==n||n.match(/\s/)||(v=` ${v}`)}x=function expandSelectedText(t,n,r,i=!1){if(t.selectionStart===t.selectionEnd)t.selectionStart=function wordSelectionStart(t,n){let r=n;for(;t[r]&&null!=t[r-1]&&!t[r-1].match(/\s/);)r--;return r}(t.value,t.selectionStart),t.selectionEnd=wordSelectionEnd(t.value,t.selectionEnd,i);else{const i=t.selectionStart-n.length,o=t.selectionEnd+r.length,a=t.value.slice(i,t.selectionStart)===n,s=t.value.slice(t.selectionEnd,o)===r;a&&s&&(t.selectionStart=i,t.selectionEnd=o)}return t.value.slice(t.selectionStart,t.selectionEnd)}(t,v,w,n.multiline);let E=t.selectionStart,C=t.selectionEnd;const A=c.length>0&&w.indexOf(c)>-1&&x.length>0;if(u){const n=newlinesToSurroundSelectedText(t);r=n.newlinesToAppend,i=n.newlinesToPrepend,v=r+o,w+=i}if(x.startsWith(v)&&x.endsWith(w)){const t=x.slice(v.length,x.length-w.length);if(h===y){let n=h-v.length;n=Math.max(n,E),n=Math.min(n,E+t.length),E=C=n}else C=E+t.length;return{text:t,selectionStart:E,selectionEnd:C}}if(A){if(p.length>0&&x.match(p)){w=w.replace(c,x);const t=v+w;return E=C=E+v.length,{text:t,selectionStart:E,selectionEnd:C}}{const t=v+x+w;return E=E+v.length+x.length+w.indexOf(c),C=E+c.length,{text:t,selectionStart:E,selectionEnd:C}}}{let t=v+x+w;E=h+v.length,C=y+v.length;const r=x.match(/^\s*|\s*$/g);if(n.trimFirst&&r){const n=r[0]||"",i=r[1]||"";t=n+v+x.trim()+w+i,E+=n.length,C-=i.length}return{text:t,selectionStart:E,selectionEnd:C}}}(t,n),function insertText(t,{text:n,selectionStart:r,selectionEnd:i}){const a=t.selectionStart,s=t.value.slice(0,a),l=t.value.slice(t.selectionEnd);if(null===o||!0===o){t.contentEditable="true";try{o=document.execCommand("insertText",!1,n)}catch(c){o=!1}t.contentEditable="false"}if(o&&!t.value.slice(0,t.selectionStart).endsWith(n)&&(o=!1),!o){try{document.execCommand("ms-beginUndoUnit")}catch(m){}t.value=s+n+l;try{document.execCommand("ms-endUndoUnit")}catch(m){}t.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=r&&null!=i?t.setSelectionRange(r,i):t.setSelectionRange(a,t.selectionEnd)}(t,i)}function newlinesToSurroundSelectedText(t){const n=t.value.slice(0,t.selectionStart),r=t.value.slice(t.selectionEnd),i=n.match(/\n*$/),o=r.match(/^\n*/),a=i?i[0].length:0,s=o?o[0].length:0;let l,c;return n.match(/\S/)&&a<2&&(l=repeat("\n",2-a)),r.match(/\S/)&&s<2&&(c=repeat("\n",2-s)),null==l&&(l=""),null==c&&(c=""),{newlinesToAppend:l,newlinesToPrepend:c}}function applyStyle(t,n){const r=t.closest("markdown-toolbar");if(!(r instanceof MarkdownToolbarElement))return;const i=Object.assign(Object.assign({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,trimFirst:!1}),n),o=r.field;o&&(o.focus(),styleSelectedText(o,i))}},92422:function(){if("undefined"==typeof window);window.requestIdleCallback=window.requestIdleCallback||function(t){var n=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)}}}]);