From 4cb081febc17238478f4ea5d727c12556b00b071 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 16 Mar 2024 19:23:08 +0100 Subject: [PATCH 1/2] Use only double-slash instead of triple-slash for file:// uris --- lib/sarif.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sarif.js b/lib/sarif.js index 447a353..af072dc 100644 --- a/lib/sarif.js +++ b/lib/sarif.js @@ -29,20 +29,20 @@ const relativizeReport = function (reportFile) { } const prefix = path.normalize(`${process.env['GITHUB_WORKSPACE']}/`); - const prefixUri = new URL(`file:///${prefix}`).href; + const prefixUri = new URL(`file://${prefix}`).href; core.debug(`Relativizing sarif report '${reportFile}' against '${prefix}'`); report.runs[0].results.forEach(rule => { rule.locations.forEach(location => { const artifactLocation = location.physicalLocation.artifactLocation; // note: this also converts any backslashes from Windows paths into forward slashes // forward slashes are needed in the sarif report for GitHub annotations and codeql upload - const uri = new URL(`file:///${artifactLocation.uri}`).href; + const uri = new URL(`file://${artifactLocation.uri}`).href; if (uri.startsWith(prefixUri)) { artifactLocation.uri = uri.substring(prefixUri.length); } else { // report contains already relative paths // still use the uri, in order to have forward slashes - artifactLocation.uri = uri.substring('file:///'.length); + artifactLocation.uri = uri.substring('file://'.length); } }) }); From fe3a3c4b1ebce7c3fdb151fa8c9d7c0ded115ce4 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 16 Mar 2024 19:32:43 +0100 Subject: [PATCH 2/2] Check whether sarif report already contains valid file URIs Fixes #249 --- dist/index.js | 2 +- lib/sarif.js | 9 +++- tests/data/pmd-report-uris.sarif | 68 ++++++++++++++++++++++++++++ tests/data/pmd-report-win-uris.sarif | 68 ++++++++++++++++++++++++++++ tests/sarif.test.js | 18 ++++++++ 5 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 tests/data/pmd-report-uris.sarif create mode 100644 tests/data/pmd-report-win-uris.sarif diff --git a/dist/index.js b/dist/index.js index 30a9a75..fc17e84 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={35598:(r,i,s)=>{const a=s(42186);const processSarifReport=function(r){if(!r){return}const i=r.runs[0].tool.driver.rules;const s=r.runs[0].results;a.startGroup("PMD Results");a.debug(`processing sarif report`);a.debug(`rules: ${i.length}`);a.debug(`results: ${s.length}`);s.forEach((r=>{const s=i[r.ruleIndex];const l=mapPriority(s.properties.priority);r.locations.forEach((i=>{const c=createAnnotation(i.physicalLocation,r.message.text);a.info(`\n${c.file}:${c.startLine}:${s.id} (Priority: ${s.properties.priority}):${r.message.text}`);l(createDescription(s),c)}))}));a.endGroup()};function mapPriority(r){switch(r){case 1:case 2:return a.error;case 3:case 4:return a.warning;default:return a.notice}}function createAnnotation(r,i){return{title:i,file:r.artifactLocation.uri,startLine:r.region.startLine,endLine:r.region.endLine}}function createDescription(r){const i=r.fullDescription.text!==undefined?r.fullDescription.text.split(/\n|\r\n/):[""];if(i.length>1&&i[0]===""){i.splice(0,1)}let s="";const a=i[0].match(/^([ \t]+).*$/);if(a!==null){s=a[1]}for(let r=0;r0&&i[i.length-1].trim()===""){i.splice(i.length-1,1)}const l=i.join("\n");const c=`${l}\n\n${r.id} (Priority: ${r.properties.priority}, Ruleset: ${r.properties.ruleset})\n${r.helpUri.trim()}`;return c}r.exports.processSarifReport=processSarifReport},70929:(r,i,s)=>{const a=s(57147);const l=s(71017);const c=s(42186);const p=s(11383);const countViolations=function(r){let i=0;const s=loadReport(r);if(s!==null){i=s.runs[0].results.length}return i};const loadReport=function(r){if(!a.existsSync(r)){return null}return JSON.parse(a.readFileSync(r))};const relativizeReport=function(r){const i=loadReport(r);if(i===null){return}const s=l.normalize(`${process.env["GITHUB_WORKSPACE"]}/`);const p=new URL(`file:///${s}`).href;c.debug(`Relativizing sarif report '${r}' against '${s}'`);i.runs[0].results.forEach((r=>{r.locations.forEach((r=>{const i=r.physicalLocation.artifactLocation;const s=new URL(`file:///${i.uri}`).href;if(s.startsWith(p)){i.uri=s.substring(p.length)}else{i.uri=s.substring("file:///".length)}}))}));a.writeFileSync(r,JSON.stringify(i))};const fixResults=function(r){const i=loadReport(r);if(i===null){return}const s=i.runs[0].tool.driver.version;c.debug(`Sarif Report was created by PMD version ${s}`);if(p.gte(s,"6.43.0")){c.debug(`Sarif Report fix is not needed for PMD version ${s}`);return}const l=i.runs[0].results;const d=[];c.debug(`Fixing Sarif Report results: count before: ${l.length}`);l.forEach((r=>{const i=r.locations;delete r.locations;i.forEach((i=>{const s=Object.assign({},r);s.locations=[i];d.push(s)}))}));c.debug(`Fixing Sarif Report results: count after: ${d.length}`);i.runs[0].results=d;a.writeFileSync(r,JSON.stringify(i))};r.exports.countViolations=countViolations;r.exports.loadReport=loadReport;r.exports.relativizeReport=relativizeReport;r.exports.fixResults=fixResults},64024:(r,i,s)=>{const a=s(42186);const l=s(95438);const c=s(73030).defaults;const p=s(27784);const d=s(71514);const u=s(11383);const A=s(22037);const h=s(57147).promises;const g=s(71017);const{Octokit:E}=s(55375);const y=10;async function downloadPmdRelease(r,i){let s=r;let l=p.find("pmd",r);a.debug(`cached path result: ${l}`);if(l===""){const a=await determinePmdRelease(r,i);s=getPmdVersionFromRelease(a);const c=await p.downloadTool(getDownloadURL(a));const d=await p.extractZip(c);l=await p.cacheDir(d,"pmd",s)}a.info(`Using PMD ${s} from cached path ${l}`);return{version:s,path:g.join(l,`pmd-bin-${s}`)}}async function downloadPmdUrl(r,i){let s=r;const l=await p.downloadTool(i);const c=await p.extractZip(l);a.info(`Downloaded PMD ${s} from ${i} to ${c}`);const d=await h.readdir(c);a.debug(`ZIP archive content: ${d}`);let u=d[0];a.debug(`Using the first entry as basepath for PMD: ${u}`);return{version:s,path:g.join(c,u)}}const downloadPmd=async function(r,i,s){if(r==="latest"&&s!==undefined&&s!=="")throw`Can't combine version=${r} with custom downloadUrl=${s}`;if(s===undefined||s===""){return downloadPmdRelease(r,i)}else{return downloadPmdUrl(r,s)}};const executePmd=async function(r,i,s,l,c){let p="/bin/run.sh pmd";if(isPmd7Cli(r.version)){p="/bin/pmd"}if(A.platform()==="win32"){p="\\bin\\pmd.bat"}if(isPmd7Cli(r.version)){p+=" check --no-progress"}let u=["-d",i];if(Array.isArray(i)){await writeFileList(i);u=[useNewArgsFormat(r.version)?"--file-list":"-filelist","pmd.filelist"];a.info(`Running PMD ${r.version} on ${i.length} modified files...`)}else{a.info(`Running PMD ${r.version} on all files in path ${i}...`)}const h=await d.getExecOutput(`${r.path}${p}`,[useNewArgsFormat(r.version)?"--no-cache":"-no-cache",...u,"-f",l,"-R",s,"-r",c],{ignoreReturnCode:true});a.debug(`stdout: ${h.stdout}`);a.debug(`stderr: ${h.stderr}`);a.debug(`exitCode: ${h.exitCode}`);return h};function useNewArgsFormat(r){return u.gte(r,"6.41.0")}function isPmd7Cli(r){return u.major(r)>=7}async function determinePmdRelease(r,i){a.debug(`determine release info for ${r}`);const s="https://api.github.com";let p;if(c.baseUrl===s){p=l.getOctokit(i);a.debug(`Using token to access repos/pmd/pmd/releases/latest on ${c.baseUrl}`)}else{p=new E({baseUrl:s});a.debug(`Not using token to access repos/pmd/pmd/releases/latest on ${s}, as token is for ${c.baseUrl}`)}let d;if(r==="latest"){d=await p.rest.repos.getLatestRelease({owner:"pmd",repo:"pmd"})}else{d=await p.rest.repos.getReleaseByTag({owner:"pmd",repo:"pmd",tag:`pmd_releases/${r}`})}a.debug(`found release: ${d.data.name}`);return d}function getPmdVersionFromRelease(r){return r.data.tag_name.replace("pmd_releases/","")}function getDownloadURL(r){const i=r.data.assets.filter((i=>{const s=getPmdVersionFromRelease(r);return i.name===`pmd-bin-${s}.zip`||i.name===`pmd-dist-${s}-bin.zip`}))[0];a.debug(`url: ${i.browser_download_url}`);return i.browser_download_url}async function writeFileList(r){await h.writeFile(g.join(".","pmd.filelist"),r.join(","),"utf8")}const determineModifiedFiles=async function(r,i){const s=new l.context.constructor;const c=s.payload;const p=l.getOctokit(r);if(s.eventName==="pull_request"){a.debug(`Pull request ${c.number}: ${c.pull_request.html_url}`);let r=new Set;let l;for(l=1;l<=y;l++){const a=await p.rest.pulls.listFiles({...s.repo,pull_number:c.number,per_page:30,page:l});const d=a.data;if(d.length==0){break}const u=extractFilenames(d,l,i);u.forEach((i=>r.add(i)))}if(l>=y){a.warning(`The pull request ${c.number} is too big - not all changed files will be analyzed!`)}return[...r]}else if(s.eventName==="push"){a.debug(`Push on ${c.ref}: ${c.before}...${c.after}`);let r=new Set;let l;for(l=1;l<=y;l++){const a=await p.rest.repos.compareCommitsWithBasehead({...s.repo,basehead:`${c.before}...${c.after}`,per_page:30,page:l});const d=a.data.files;if(d===undefined||d.length==0){break}const u=extractFilenames(d,l,i);u.forEach((i=>r.add(i)))}if(l>=y){a.warning(`The push on ${c.ref} is too big - not all changed files will be analyzed!`)}return[...r]}else{a.warning(`Unsupported github action event '${s.eventName}' - cannot determine modified files. All files will be analyzed.`);return undefined}};function extractFilenames(r,i,s){a.debug(` got ${r.length} entries from page ${i} to check...`);if(a.isDebug()){for(let i=0;ir.status==="added"||r.status==="changed"||r.status==="modified")).map((r=>g.normalize(r.filename))).filter((r=>s==="."||r.startsWith(s)));if(a.isDebug()){a.debug(` after filtering by status and with '${s}' ${l.length} files remain:`);a.debug(` ${l.join(", ")}`)}return l}r.exports.downloadPmd=downloadPmd;r.exports.executePmd=executePmd;r.exports.determineModifiedFiles=determineModifiedFiles},94618:(r,i,s)=>{const a=s(71017);const l=s(11383);const validateVersion=function(r){if(typeof r==="string"&&(r==="latest"||l.valid(r)===r)){return r}throw"Invalid version"};const validateSourcePath=function(r){const i=a.normalize(r);if(a.isAbsolute(i)||typeof i!=="string"||i.match(/[ ;:"'$]/)){throw"Invalid sourcePath"}return i};const validateRulesets=function(r){if(typeof r!=="string"||r.match(/[;:"'$"]/))throw"Invalid rulesets";const i=r.replace(/ /g,"");return i};const validateDownloadUrl=function(r){if(typeof r==="string"&&(r===""||r.match(/^https?:\/\//)))return r;throw"Invalid downloadUrl"};r.exports.validateVersion=validateVersion;r.exports.validateSourcePath=validateSourcePath;r.exports.validateRulesets=validateRulesets;r.exports.validateDownloadUrl=validateDownloadUrl},79450:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});const c=s(46190);l(s(15769),i);l(s(38182),i);l(s(46190),i);const p=new c.DefaultArtifactClient;i["default"]=p},54622:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const a=s(4061);const l=s(4061);const c=s(4061);const p=s(4061);const d=s(4061);const u=s(4061);const A=s(4061);class Timestamp$Type extends A.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const i=Date.now();r.seconds=u.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;return r}toDate(r){return new Date(u.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const i=this.create();const s=r.getTime();i.seconds=u.PbLong.from(Math.floor(s/1e3)).toString();i.nanos=s%1e3*1e6;return i}internalJsonWrite(r,i){let s=u.PbLong.from(r.seconds).toNumber()*1e3;if(sDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")a="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")a="."+i.substring(0,6)+"Z";else a="."+i+"Z"}return new Date(s).toISOString().replace(".000Z",a)}internalJsonRead(r,i,s){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,d.typeofJsonValue)(r)+".");let a=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(l))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(lDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=u.PbLong.from(l/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;return s}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,p.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let c=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void 0;const a=s(4061);const l=s(4061);const c=s(4061);const p=s(4061);const d=s(4061);const u=s(4061);const A=s(4061);class DoubleValue$Type extends A.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,s){if(!s)s=this.create();s.value=this.refJsonReader.scalar(r,1,undefined,"value");return s}create(r){const i={value:0};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),c=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ArtifactService=i.GetSignedArtifactURLResponse=i.GetSignedArtifactURLRequest=i.ListArtifactsResponse_MonolithArtifact=i.ListArtifactsResponse=i.ListArtifactsRequest=i.FinalizeArtifactResponse=i.FinalizeArtifactRequest=i.CreateArtifactResponse=i.CreateArtifactRequest=void 0;const a=s(60012);const l=s(4061);const c=s(4061);const p=s(4061);const d=s(4061);const u=s(4061);const A=s(8626);const h=s(8626);const g=s(54622);class CreateArtifactRequest$Type extends u.MessageType{constructor(){super("github.actions.results.api.v1.CreateArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"expires_at",kind:"message",T:()=>g.Timestamp},{no:5,name:"version",kind:"scalar",T:5}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posh.StringValue}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posh.StringValue},{no:4,name:"id_filter",kind:"message",T:()=>A.Int64Value}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posi.ListArtifactsResponse_MonolithArtifact}])}create(r){const i={artifacts:[]};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,s,a,l){let p=l!==null&&l!==void 0?l:this.create(),d=r.pos+s;while(r.posg.Timestamp}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posc.CreateArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const i=c.FinalizeArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",i);return s.then((r=>c.FinalizeArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const i=c.ListArtifactsRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",i);return s.then((r=>c.ListArtifactsResponse.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const i=c.GetSignedArtifactURLRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",i);return s.then((r=>c.GetSignedArtifactURLResponse.fromJson(r,{ignoreUnknownFields:true})))}}i.ArtifactServiceClientJSON=ArtifactServiceClientJSON;class ArtifactServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this)}CreateArtifact(r){const i=c.CreateArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",i);return s.then((r=>c.CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const i=c.FinalizeArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",i);return s.then((r=>c.FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const i=c.ListArtifactsRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",i);return s.then((r=>c.ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const i=c.GetSignedArtifactURLRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",i);return s.then((r=>c.GetSignedArtifactURLResponse.fromBinary(r)))}}i.ArtifactServiceClientProtobuf=ArtifactServiceClientProtobuf;var p;(function(r){r["CreateArtifact"]="CreateArtifact";r["FinalizeArtifact"]="FinalizeArtifact";r["ListArtifacts"]="ListArtifacts";r["GetSignedArtifactURL"]="GetSignedArtifactURL"})(p||(i.ArtifactServiceMethod=p={}));i.ArtifactServiceMethodList=[p.CreateArtifact,p.FinalizeArtifact,p.ListArtifacts,p.GetSignedArtifactURL];function createArtifactServiceServer(r){return new l.TwirpServer({service:r,packageName:"github.actions.results.api.v1",serviceName:"ArtifactService",methodList:i.ArtifactServiceMethodList,matchRoute:matchArtifactServiceRoute})}i.createArtifactServiceServer=createArtifactServiceServer;function matchArtifactServiceRoute(r,i){switch(r){case"CreateArtifact":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"CreateArtifact"});yield i.onMatch(r);return handleArtifactServiceCreateArtifactRequest(r,s,l,c)}));case"FinalizeArtifact":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"FinalizeArtifact"});yield i.onMatch(r);return handleArtifactServiceFinalizeArtifactRequest(r,s,l,c)}));case"ListArtifacts":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"ListArtifacts"});yield i.onMatch(r);return handleArtifactServiceListArtifactsRequest(r,s,l,c)}));case"GetSignedArtifactURL":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"GetSignedArtifactURL"});yield i.onMatch(r);return handleArtifactServiceGetSignedArtifactURLRequest(r,s,l,c)}));default:i.onNotFound();const r=`no handler found`;throw new l.TwirpError(l.TwirpErrorCode.BadRoute,r)}}function handleArtifactServiceCreateArtifactRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceCreateArtifactJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceCreateArtifactProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceFinalizeArtifactRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceFinalizeArtifactJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceFinalizeArtifactProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceListArtifactsRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceListArtifactsJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceListArtifactsProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceGetSignedArtifactURLRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceGetSignedArtifactURLJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceCreateArtifactJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.CreateArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.CreateArtifact(r,s)))}else{d=yield i.CreateArtifact(r,a)}return JSON.stringify(c.CreateArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceFinalizeArtifactJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.FinalizeArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.FinalizeArtifact(r,s)))}else{d=yield i.FinalizeArtifact(r,a)}return JSON.stringify(c.FinalizeArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceListArtifactsJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.ListArtifactsRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.ListArtifacts(r,s)))}else{d=yield i.ListArtifacts(r,a)}return JSON.stringify(c.ListArtifactsResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceGetSignedArtifactURLJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.GetSignedArtifactURLRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.GetSignedArtifactURL(r,s)))}else{d=yield i.GetSignedArtifactURL(r,a)}return JSON.stringify(c.GetSignedArtifactURLResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceCreateArtifactProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.CreateArtifactRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.CreateArtifact(r,s)))}else{d=yield i.CreateArtifact(r,a)}return Buffer.from(c.CreateArtifactResponse.toBinary(d))}))}function handleArtifactServiceFinalizeArtifactProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.FinalizeArtifactRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.FinalizeArtifact(r,s)))}else{d=yield i.FinalizeArtifact(r,a)}return Buffer.from(c.FinalizeArtifactResponse.toBinary(d))}))}function handleArtifactServiceListArtifactsProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.ListArtifactsRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.ListArtifacts(r,s)))}else{d=yield i.ListArtifacts(r,a)}return Buffer.from(c.ListArtifactsResponse.toBinary(d))}))}function handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.GetSignedArtifactURLRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.GetSignedArtifactURL(r,s)))}else{d=yield i.GetSignedArtifactURL(r,a)}return Buffer.from(c.GetSignedArtifactURLResponse.toBinary(d))}))}},46190:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var l=this&&this.__rest||function(r,i){var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0)s[a]=r[a];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l{const i=new URL(r);i.search="";return i.toString()};function exists(r){return p(this,void 0,void 0,(function*(){try{yield u.default.access(r);return true}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}}))}function streamExtract(r,i){return p(this,void 0,void 0,(function*(){let s=0;while(s<5){try{yield streamExtractExternal(r,i);return}catch(r){s++;h.debug(`Failed to download artifact after ${s} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${s} retries.`)}))}function streamExtractExternal(r,i){return p(this,void 0,void 0,(function*(){const s=new g.HttpClient((0,y.getUserAgentString)());const a=yield s.get(r);if(a.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${a.message.statusCode} ${a.message.statusMessage}`)}const l=30*1e3;return new Promise(((r,s)=>{const timerFn=()=>{a.message.destroy(new Error(`Blob storage chunk did not respond in ${l}ms`))};const c=setTimeout(timerFn,l);a.message.on("data",(()=>{c.refresh()})).on("error",(r=>{h.debug(`response.message: Artifact download failed: ${r.message}`);clearTimeout(c);s(r)})).pipe(E.default.Extract({path:i})).on("close",(()=>{clearTimeout(c);r()})).on("error",(r=>{s(r)}))}))}))}i.streamExtractExternal=streamExtractExternal;function downloadArtifactPublic(r,i,s,a,l){return p(this,void 0,void 0,(function*(){const c=yield resolveOrCreateDirectory(l===null||l===void 0?void 0:l.path);const p=A.getOctokit(a);h.info(`Downloading artifact '${r}' from '${i}/${s}'`);const{headers:d,status:u}=yield p.rest.actions.downloadArtifact({owner:i,repo:s,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(u!==302){throw new Error(`Unable to download artifact. Unexpected status: ${u}`)}const{location:g}=d;if(!g){throw new Error(`Unable to redirect to artifact download url`)}h.info(`Redirecting to blob download url: ${scrubQueryParameters(g)}`);try{h.info(`Starting download of artifact to: ${c}`);yield streamExtract(g,c);h.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:c}}))}i.downloadArtifactPublic=downloadArtifactPublic;function downloadArtifactInternal(r,i){return p(this,void 0,void 0,(function*(){const s=yield resolveOrCreateDirectory(i===null||i===void 0?void 0:i.path);const a=(0,C.internalArtifactTwirpClient)();const{workflowRunBackendId:l,workflowJobRunBackendId:c}=(0,w.getBackendIdsFromToken)();const p={workflowRunBackendId:l,workflowJobRunBackendId:c,idFilter:v.Int64Value.create({value:r.toString()})};const{artifacts:d}=yield a.ListArtifacts(p);if(d.length===0){throw new I.ArtifactNotFoundError(`No artifacts found for ID: ${r}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`)}if(d.length>1){h.warning("Multiple artifacts found, defaulting to first.")}const u={workflowRunBackendId:d[0].workflowRunBackendId,workflowJobRunBackendId:d[0].workflowJobRunBackendId,name:d[0].name};const{signedUrl:A}=yield a.GetSignedArtifactURL(u);h.info(`Redirecting to blob download url: ${scrubQueryParameters(A)}`);try{h.info(`Starting download of artifact to: ${s}`);yield streamExtract(A,s);h.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:s}}))}i.downloadArtifactInternal=downloadArtifactInternal;function resolveOrCreateDirectory(r=(0,b.getGitHubWorkspaceDir)()){return p(this,void 0,void 0,(function*(){if(!(yield exists(r))){h.debug(`Artifact destination folder does not exist, creating: ${r}`);yield u.default.mkdir(r,{recursive:true})}else{h.debug(`Artifact destination folder already exists: ${r}`)}return r}))}},29491:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getArtifactInternal=i.getArtifactPublic=void 0;const d=s(95438);const u=s(86298);const A=c(s(42186));const h=s(73030);const g=s(64597);const E=s(68883);const y=s(63062);const b=s(85164);const C=s(12312);const v=s(49960);const w=s(38182);function getArtifactPublic(r,i,s,a,l){var c;return p(this,void 0,void 0,(function*(){const[p,y]=(0,g.getRetryOptions)(h.defaults);const C={log:undefined,userAgent:(0,b.getUserAgentString)(),previews:undefined,retry:p,request:y};const v=(0,d.getOctokit)(l,C,u.retry,E.requestLog);const I=yield v.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:s,repo:a,run_id:i,name:r});if(I.status!==200){throw new w.InvalidResponseError(`Invalid response from GitHub API: ${I.status} (${(c=I===null||I===void 0?void 0:I.headers)===null||c===void 0?void 0:c["x-github-request-id"]})`)}if(I.data.artifacts.length===0){throw new w.ArtifactNotFoundError(`Artifact not found for name: ${r}`)}let B=I.data.artifacts[0];if(I.data.artifacts.length>1){B=I.data.artifacts.sort(((r,i)=>i.id-r.id))[0];A.debug(`More than one artifact found for a single name, returning newest (id: ${B.id})`)}return{artifact:{name:B.name,id:B.id,size:B.size_in_bytes,createdAt:B.created_at?new Date(B.created_at):undefined}}}))}i.getArtifactPublic=getArtifactPublic;function getArtifactInternal(r){return p(this,void 0,void 0,(function*(){const i=(0,C.internalArtifactTwirpClient)();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=(0,y.getBackendIdsFromToken)();const l={workflowRunBackendId:s,workflowJobRunBackendId:a,nameFilter:v.StringValue.create({value:r})};const c=yield i.ListArtifacts(l);if(c.artifacts.length===0){throw new w.ArtifactNotFoundError(`Artifact not found for name: ${r}`)}let p=c.artifacts[0];if(c.artifacts.length>1){p=c.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];A.debug(`More than one artifact found for a single name, returning newest (id: ${p.databaseId})`)}return{artifact:{name:p.name,id:Number(p.databaseId),size:Number(p.size),createdAt:p.createdAt?v.Timestamp.toDate(p.createdAt):undefined}}}))}i.getArtifactInternal=getArtifactInternal},44141:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.listArtifactsInternal=i.listArtifactsPublic=void 0;const l=s(42186);const c=s(95438);const p=s(85164);const d=s(64597);const u=s(73030);const A=s(68883);const h=s(86298);const g=s(12312);const E=s(63062);const y=s(49960);const b=1e3;const C=100;const v=b/C;function listArtifactsPublic(r,i,s,g,E=false){return a(this,void 0,void 0,(function*(){(0,l.info)(`Fetching artifact list for workflow run ${r} in repository ${i}/${s}`);let a=[];const[y,w]=(0,d.getRetryOptions)(u.defaults);const I={log:undefined,userAgent:(0,p.getUserAgentString)(),previews:undefined,retry:y,request:w};const B=(0,c.getOctokit)(g,I,h.retry,A.requestLog);let S=1;const{data:Q}=yield B.rest.actions.listWorkflowRunArtifacts({owner:i,repo:s,run_id:r,per_page:C,page:S});let x=Math.ceil(Q.total_count/C);const R=Q.total_count;if(R>b){(0,l.warning)(`Workflow run ${r} has more than 1000 artifacts. Results will be incomplete as only the first ${b} artifacts will be returned`);x=v}for(const r of Q.artifacts){a.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined})}for(S;S({name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?y.Timestamp.toDate(r.createdAt):undefined})));if(r){d=filterLatest(d)}(0,l.info)(`Found ${d.length} artifact(s)`);return{artifacts:d}}))}i.listArtifactsInternal=listArtifactsInternal;function filterLatest(r){r.sort(((r,i)=>i.id-r.id));const i=[];const s=new Set;for(const a of r){if(!s.has(a.name)){i.push(a);s.add(a.name)}}return i}},64597:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getRetryOptions=void 0;const p=c(s(42186));const d=5;const u=[400,401,403,404,422];function getRetryOptions(r,i=d,s=u){var a;if(i<=0){return[{enabled:false},r.request]}const l={enabled:true};if(s.length>0){l.doNotRetry=s}const c=Object.assign(Object.assign({},r.request),{retries:i});p.debug(`GitHub client configured with: (retries: ${c.retries}, retry-exempt-status-code: ${(a=l.doNotRetry)!==null&&a!==void 0?a:"octokit default: [400, 401, 403, 404, 422]"})`);return[l,c]}i.getRetryOptions=getRetryOptions},12312:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.internalArtifactTwirpClient=void 0;const l=s(96255);const c=s(35526);const p=s(42186);const d=s(49960);const u=s(74610);const A=s(85164);const h=s(38182);class ArtifactHttpClient{constructor(r,i,s,a){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const p=(0,u.getRuntimeToken)();this.baseUrl=(0,u.getResultsServiceUrl)();if(i){this.maxAttempts=i}if(s){this.baseRetryIntervalMilliseconds=s}if(a){this.retryMultiplier=a}this.httpClient=new l.HttpClient(r,[new c.BearerCredentialHandler(p)])}request(r,i,s,l){return a(this,void 0,void 0,(function*(){const c=new URL(`/twirp/${r}/${i}`,this.baseUrl).href;(0,p.debug)(`[Request] ${i} ${c}`);const d={"Content-Type":s};try{const{body:r}=yield this.retryableRequest((()=>a(this,void 0,void 0,(function*(){return this.httpClient.post(c,JSON.stringify(l),d)}))));return r}catch(r){throw new Error(`Failed to ${i}: ${r.message}`)}}))}retryableRequest(r){return a(this,void 0,void 0,(function*(){let i=0;let s="";let a="";while(i=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const i=[l.HttpCodes.BadGateway,l.HttpCodes.GatewayTimeout,l.HttpCodes.InternalServerError,l.HttpCodes.ServiceUnavailable,l.HttpCodes.TooManyRequests];return i.includes(r)}sleep(r){return a(this,void 0,void 0,(function*(){return new Promise((i=>setTimeout(i,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const i=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const s=i*this.retryMultiplier;return Math.trunc(Math.random()*(s-i)+i)}}function internalArtifactTwirpClient(r){const i=new ArtifactHttpClient((0,A.getUserAgentString)(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new d.ArtifactServiceClientJSON(i)}i.internalArtifactTwirpClient=internalArtifactTwirpClient},74610:function(r,i,s){"use strict";var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getConcurrency=i.getGitHubWorkspaceDir=i.isGhes=i.getResultsServiceUrl=i.getRuntimeToken=i.getUploadChunkSize=void 0;const l=a(s(22037));function getUploadChunkSize(){return 8*1024*1024}i.getUploadChunkSize=getUploadChunkSize;function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}i.getRuntimeToken=getRuntimeToken;function getResultsServiceUrl(){const r=process.env["ACTIONS_RESULTS_URL"];if(!r){throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable")}return new URL(r).origin}i.getResultsServiceUrl=getResultsServiceUrl;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");return r.hostname.toUpperCase()!=="GITHUB.COM"}i.isGhes=isGhes;function getGitHubWorkspaceDir(){const r=process.env["GITHUB_WORKSPACE"];if(!r){throw new Error("Unable to get the GITHUB_WORKSPACE env variable")}return r}i.getGitHubWorkspaceDir=getGitHubWorkspaceDir;function getConcurrency(){const r=l.default.cpus().length;if(r<=4){return 32}const i=16*r;return i>300?300:i}i.getConcurrency=getConcurrency},38182:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.UsageError=i.NetworkError=i.GHESNotSupportedError=i.ArtifactNotFoundError=i.InvalidResponseError=i.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(r=[]){let i="No files were found to upload";if(r.length>0){i+=`: ${r.join(", ")}`}super(i);this.files=r;this.name="FilesNotFoundError"}}i.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}i.InvalidResponseError=InvalidResponseError;class ArtifactNotFoundError extends Error{constructor(r="Artifact not found"){super(r);this.name="ArtifactNotFoundError"}}i.ArtifactNotFoundError=ArtifactNotFoundError;class GHESNotSupportedError extends Error{constructor(r="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}i.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(r){const i=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(i);this.code=r;this.name="NetworkError"}}i.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}i.UsageError=UsageError;UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")}},15769:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},85164:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getUserAgentString=void 0;const a=s(39839);function getUserAgentString(){return`@actions/artifact-${a.version}`}i.getUserAgentString=getUserAgentString},63062:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getBackendIdsFromToken=void 0;const d=c(s(42186));const u=s(74610);const A=p(s(84329));const h=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function getBackendIdsFromToken(){const r=(0,u.getRuntimeToken)();const i=(0,A.default)(r);if(!i.scp){throw h}const s=i.scp.split(" ");if(s.length===0){throw h}for(const r of s){const i=r.split(":");if((i===null||i===void 0?void 0:i[0])!=="Actions.Results"){continue}if(i.length!==3){throw h}const s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};d.debug(`Workflow Run Backend ID: ${s.workflowRunBackendId}`);d.debug(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`);return s}throw h}i.getBackendIdsFromToken=getBackendIdsFromToken},7246:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.uploadZipToBlobStorage=void 0;const d=s(84100);const u=s(74610);const A=c(s(42186));const h=c(s(6113));const g=c(s(12781));const E=s(38182);function uploadZipToBlobStorage(r,i){return p(this,void 0,void 0,(function*(){let s=0;const a=(0,u.getConcurrency)();const l=(0,u.getUploadChunkSize)();const c=new d.BlobClient(r);const p=c.getBlockBlobClient();A.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${a}, bufferSize: ${l}`);const uploadCallback=r=>{A.info(`Uploaded bytes ${r.loadedBytes}`);s=r.loadedBytes};const y={blobHTTPHeaders:{blobContentType:"zip"},onProgress:uploadCallback};let b=undefined;const C=new g.PassThrough;const v=h.createHash("sha256");i.pipe(C);i.pipe(v).setEncoding("hex");A.info("Beginning upload of artifact content to blob storage");try{yield p.uploadStream(C,l,a,y)}catch(r){if(E.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new E.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}A.info("Finished uploading artifact content to blob storage!");v.end();b=v.read();A.info(`SHA256 hash of uploaded artifact zip is ${b}`);if(s===0){A.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:s,sha256Hash:b}}))}i.uploadZipToBlobStorage=uploadZipToBlobStorage},63219:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateFilePath=i.validateArtifactName=void 0;const a=s(42186);const l=new Map([['"',' Double quote "'],[":"," Colon :"],["<"," Less than <"],[">"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],["\n"," Line feed \\n"]]);const c=new Map([...l,["\\"," Backslash \\"],["/"," Forward slash /"]]);function validateArtifactName(r){if(!r){throw new Error(`Provided artifact name input during validation is empty`)}for(const[i,s]of c){if(r.includes(i)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(c.values()).toString()}\n \nThese characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`)}}(0,a.info)(`Artifact name is valid!`)}i.validateArtifactName=validateArtifactName;function validateFilePath(r){if(!r){throw new Error(`Provided file path input during validation is empty`)}for(const[i,s]of l){if(r.includes(i)){throw new Error(`The path for one of the files in artifact is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(l.values()).toString()}\n \nThe following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.\n `)}}}i.validateFilePath=validateFilePath},3231:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getExpiration=void 0;const p=s(49960);const d=c(s(42186));function getExpiration(r){if(!r){return undefined}const i=getRetentionDays();if(i&&ir.sourcePath?[r.sourcePath]:[])))}const c=(0,E.getBackendIdsFromToken)();const p=(0,h.internalArtifactTwirpClient)();const w={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,version:4};const I=(0,u.getExpiration)(a===null||a===void 0?void 0:a.retentionDays);if(I){w.expiresAt=I}const B=yield p.CreateArtifact(w);if(!B.ok){throw new v.InvalidResponseError("CreateArtifact: response from backend was not ok")}const S=yield(0,b.createZipUploadStream)(l,a===null||a===void 0?void 0:a.compressionLevel);const Q=yield(0,y.uploadZipToBlobStorage)(B.signedUploadUrl,S);const x={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,size:Q.uploadSize?Q.uploadSize.toString():"0"};if(Q.sha256Hash){x.hash=C.StringValue.create({value:`sha256:${Q.sha256Hash}`})}d.info(`Finalizing artifact upload`);const R=yield p.FinalizeArtifact(x);if(!R.ok){throw new v.InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const T=BigInt(R.artifactId);d.info(`Artifact ${r}.zip successfully finalized. Artifact ID ${T}`);return{size:Q.uploadSize,id:Number(T)}}))}i.uploadArtifact=uploadArtifact},17837:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getUploadZipSpecification=i.validateRootDirectory=void 0;const p=c(s(57147));const d=s(42186);const u=s(71017);const A=s(63219);function validateRootDirectory(r){if(!p.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!p.statSync(r).isDirectory()){throw new Error(`The provided rootDirectory ${r} is not a valid directory`)}(0,d.info)(`Root directory input is valid!`)}i.validateRootDirectory=validateRootDirectory;function getUploadZipSpecification(r,i){const s=[];i=(0,u.normalize)(i);i=(0,u.resolve)(i);for(let a of r){if(!p.existsSync(a)){throw new Error(`File ${a} does not exist`)}if(!p.statSync(a).isDirectory()){a=(0,u.normalize)(a);a=(0,u.resolve)(a);if(!a.startsWith(i)){throw new Error(`The rootDirectory: ${i} is not a parent directory of the file: ${a}`)}const r=a.replace(i,"");(0,A.validateFilePath)(r);s.push({sourcePath:a,destinationPath:r})}else{const r=a.replace(i,"");(0,A.validateFilePath)(r);s.push({sourcePath:null,destinationPath:r})}}return s}i.getUploadZipSpecification=getUploadZipSpecification},69186:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.createZipUploadStream=i.ZipUploadStream=i.DEFAULT_COMPRESSION_LEVEL=void 0;const d=c(s(12781));const u=c(s(43084));const A=c(s(42186));const h=s(57147);const g=s(74610);i.DEFAULT_COMPRESSION_LEVEL=6;class ZipUploadStream extends d.Transform{constructor(r){super({highWaterMark:r})}_transform(r,i,s){s(null,r)}}i.ZipUploadStream=ZipUploadStream;function createZipUploadStream(r,s=i.DEFAULT_COMPRESSION_LEVEL){return p(this,void 0,void 0,(function*(){A.debug(`Creating Artifact archive with compressionLevel: ${s}`);const i=u.create("zip",{highWaterMark:(0,g.getUploadChunkSize)(),zlib:{level:s}});i.on("error",zipErrorCallback);i.on("warning",zipWarningCallback);i.on("finish",zipFinishCallback);i.on("end",zipEndCallback);for(const s of r){if(s.sourcePath!==null){i.append((0,h.createReadStream)(s.sourcePath),{name:s.destinationPath})}else{i.append("",{name:s.destinationPath})}}const a=(0,g.getUploadChunkSize)();const l=new ZipUploadStream(a);A.debug(`Zip write high watermark value ${l.writableHighWaterMark}`);A.debug(`Zip read high watermark value ${l.readableHighWaterMark}`);i.pipe(l);i.finalize();return l}))}i.createZipUploadStream=createZipUploadStream;const zipErrorCallback=r=>{A.error("An error has occurred while creating the zip file for upload");A.info(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){A.warning("ENOENT warning during artifact zip creation. No such file or directory");A.info(r)}else{A.warning(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);A.info(r)}};const zipFinishCallback=()=>{A.debug("Zip stream for upload has finished.")};const zipEndCallback=()=>{A.debug("Zip stream for upload has ended.")}},87351:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const p=c(s(22037));const d=s(5278);function issueCommand(r,i,s){const a=new Command(r,i,s);process.stdout.write(a.toString()+p.EOL)}i.issueCommand=issueCommand;function issue(r,i=""){issueCommand(r,{},i)}i.issue=issue;const u="::";class Command{constructor(r,i,s){if(!r){r="missing.command"}this.command=r;this.properties=i;this.message=s}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let i=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const a=this.properties[s];if(a){if(i){i=false}else{r+=","}r+=`${s}=${escapeProperty(a)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const d=s(87351);const u=s(717);const A=s(5278);const h=c(s(22037));const g=c(s(71017));const E=s(98041);var y;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(y=i.ExitCode||(i.ExitCode={}));function exportVariable(r,i){const s=A.toCommandValue(i);process.env[r]=s;const a=process.env["GITHUB_ENV"]||"";if(a){return u.issueFileCommand("ENV",u.prepareKeyValueMessage(r,i))}d.issueCommand("set-env",{name:r},s)}i.exportVariable=exportVariable;function setSecret(r){d.issueCommand("add-mask",{},r)}i.setSecret=setSecret;function addPath(r){const i=process.env["GITHUB_PATH"]||"";if(i){u.issueFileCommand("PATH",r)}else{d.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${g.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(r,i){const s=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!s){throw new Error(`Input required and not supplied: ${r}`)}if(i&&i.trimWhitespace===false){return s}return s.trim()}i.getInput=getInput;function getMultilineInput(r,i){const s=getInput(r,i).split("\n").filter((r=>r!==""));if(i&&i.trimWhitespace===false){return s}return s.map((r=>r.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(r,i){const s=["true","True","TRUE"];const a=["false","False","FALSE"];const l=getInput(r,i);if(s.includes(l))return true;if(a.includes(l))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i.getBooleanInput=getBooleanInput;function setOutput(r,i){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return u.issueFileCommand("OUTPUT",u.prepareKeyValueMessage(r,i))}process.stdout.write(h.EOL);d.issueCommand("set-output",{name:r},A.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(r){d.issue("echo",r?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=y.Failure;error(r)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(r){d.issueCommand("debug",{},r)}i.debug=debug;function error(r,i={}){d.issueCommand("error",A.toCommandProperties(i),r instanceof Error?r.toString():r)}i.error=error;function warning(r,i={}){d.issueCommand("warning",A.toCommandProperties(i),r instanceof Error?r.toString():r)}i.warning=warning;function notice(r,i={}){d.issueCommand("notice",A.toCommandProperties(i),r instanceof Error?r.toString():r)}i.notice=notice;function info(r){process.stdout.write(r+h.EOL)}i.info=info;function startGroup(r){d.issue("group",r)}i.startGroup=startGroup;function endGroup(){d.issue("endgroup")}i.endGroup=endGroup;function group(r,i){return p(this,void 0,void 0,(function*(){startGroup(r);let s;try{s=yield i()}finally{endGroup()}return s}))}i.group=group;function saveState(r,i){const s=process.env["GITHUB_STATE"]||"";if(s){return u.issueFileCommand("STATE",u.prepareKeyValueMessage(r,i))}d.issueCommand("save-state",{name:r},A.toCommandValue(i))}i.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}i.getState=getState;function getIDToken(r){return p(this,void 0,void 0,(function*(){return yield E.OidcClient.getIDToken(r)}))}i.getIDToken=getIDToken;var b=s(81327);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return b.summary}});var C=s(81327);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return C.markdownSummary}});var v=s(2981);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},717:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const p=c(s(57147));const d=c(s(22037));const u=s(78974);const A=s(5278);function issueFileCommand(r,i){const s=process.env[`GITHUB_${r}`];if(!s){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!p.existsSync(s)){throw new Error(`Missing file at path: ${s}`)}p.appendFileSync(s,`${A.toCommandValue(i)}${d.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,i){const s=`ghadelimiter_${u.v4()}`;const a=A.toCommandValue(i);if(r.includes(s)){throw new Error(`Unexpected input: name should not contain the delimiter "${s}"`)}if(a.includes(s)){throw new Error(`Unexpected input: value should not contain the delimiter "${s}"`)}return`${r}<<${s}${d.EOL}${a}${d.EOL}${s}`}i.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const l=s(96255);const c=s(35526);const p=s(42186);class OidcClient{static createHttpClient(r=true,i=10){const s={allowRetries:r,maxRetries:i};return new l.HttpClient("actions/oidc-client",[new c.BearerCredentialHandler(OidcClient.getRequestToken())],s)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var i;return a(this,void 0,void 0,(function*(){const s=OidcClient.createHttpClient();const a=yield s.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const l=(i=a.result)===null||i===void 0?void 0:i.value;if(!l){throw new Error("Response json body do not have ID Token field")}return l}))}static getIDToken(r){return a(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(r){const s=encodeURIComponent(r);i=`${i}&audience=${s}`}p.debug(`ID token url is ${i}`);const s=yield OidcClient.getCall(i);p.setSecret(s);return s}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}i.OidcClient=OidcClient},2981:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const p=c(s(71017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,p.sep)}i.toPlatformPath=toPlatformPath},81327:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const l=s(22037);const c=s(57147);const{access:p,appendFile:d,writeFile:u}=c.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[i.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield p(r,c.constants.R_OK|c.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,i,s={}){const a=Object.entries(s).map((([r,i])=>` ${r}="${i}"`)).join("");if(!i){return`<${r}${a}>`}return`<${r}${a}>${i}`}write(r){return a(this,void 0,void 0,(function*(){const i=!!(r===null||r===void 0?void 0:r.overwrite);const s=yield this.filePath();const a=i?u:d;yield a(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,i=false){this._buffer+=r;return i?this.addEOL():this}addEOL(){return this.addRaw(l.EOL)}addCodeBlock(r,i){const s=Object.assign({},i&&{lang:i});const a=this.wrap("pre",this.wrap("code",r),s);return this.addRaw(a).addEOL()}addList(r,i=false){const s=i?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const l=this.wrap(s,a);return this.addRaw(l).addEOL()}addTable(r){const i=r.map((r=>{const i=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:i,data:s,colspan:a,rowspan:l}=r;const c=i?"th":"td";const p=Object.assign(Object.assign({},a&&{colspan:a}),l&&{rowspan:l});return this.wrap(c,s,p)})).join("");return this.wrap("tr",i)})).join("");const s=this.wrap("table",i);return this.addRaw(s).addEOL()}addDetails(r,i){const s=this.wrap("details",this.wrap("summary",r)+i);return this.addRaw(s).addEOL()}addImage(r,i,s){const{width:a,height:l}=s||{};const c=Object.assign(Object.assign({},a&&{width:a}),l&&{height:l});const p=this.wrap("img",null,Object.assign({src:r,alt:i},c));return this.addRaw(p).addEOL()}addHeading(r,i){const s=`h${i}`;const a=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const l=this.wrap(a,r);return this.addRaw(l).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,i){const s=Object.assign({},i&&{cite:i});const a=this.wrap("blockquote",r,s);return this.addRaw(a).addEOL()}addLink(r,i){const s=this.wrap("a",r,{href:i});return this.addRaw(s).addEOL()}}const A=new Summary;i.markdownSummary=A;i.summary=A},5278:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.toCommandProperties=i.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}i.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}i.toCommandProperties=toCommandProperties},78974:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return A.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return g.default}});var a=_interopRequireDefault(s(81595));var l=_interopRequireDefault(s(26993));var c=_interopRequireDefault(s(51472));var p=_interopRequireDefault(s(16217));var d=_interopRequireDefault(s(32381));var u=_interopRequireDefault(s(40427));var A=_interopRequireDefault(s(92609));var h=_interopRequireDefault(s(61458));var g=_interopRequireDefault(s(26385));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},5842:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("md5").update(r).digest()}var l=md5;i["default"]=l},32381:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s="00000000-0000-0000-0000-000000000000";i["default"]=s},26385:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(92609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}let i;const s=new Uint8Array(16);s[0]=(i=parseInt(r.slice(0,8),16))>>>24;s[1]=i>>>16&255;s[2]=i>>>8&255;s[3]=i&255;s[4]=(i=parseInt(r.slice(9,13),16))>>>8;s[5]=i&255;s[6]=(i=parseInt(r.slice(14,18),16))>>>8;s[7]=i&255;s[8]=(i=parseInt(r.slice(19,23),16))>>>8;s[9]=i&255;s[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;s[11]=i/4294967296&255;s[12]=i>>>24&255;s[13]=i>>>16&255;s[14]=i>>>8&255;s[15]=i&255;return s}var l=parse;i["default"]=l},86230:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=s},9784:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=new Uint8Array(256);let c=l.length;function rng(){if(c>l.length-16){a.default.randomFillSync(l);c=0}return l.slice(c,c+=16)}},38844:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("sha1").update(r).digest()}var l=sha1;i["default"]=l},61458:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(92609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=[];for(let r=0;r<256;++r){l.push((r+256).toString(16).substr(1))}function stringify(r,i=0){const s=(l[r[i+0]]+l[r[i+1]]+l[r[i+2]]+l[r[i+3]]+"-"+l[r[i+4]]+l[r[i+5]]+"-"+l[r[i+6]]+l[r[i+7]]+"-"+l[r[i+8]]+l[r[i+9]]+"-"+l[r[i+10]]+l[r[i+11]]+l[r[i+12]]+l[r[i+13]]+l[r[i+14]]+l[r[i+15]]).toLowerCase();if(!(0,a.default)(s)){throw TypeError("Stringified UUID is invalid")}return s}var c=stringify;i["default"]=c},81595:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(9784));var l=_interopRequireDefault(s(61458));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let c;let p;let d=0;let u=0;function v1(r,i,s){let A=i&&s||0;const h=i||new Array(16);r=r||{};let g=r.node||c;let E=r.clockseq!==undefined?r.clockseq:p;if(g==null||E==null){const i=r.random||(r.rng||a.default)();if(g==null){g=c=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(E==null){E=p=(i[6]<<8|i[7])&16383}}let y=r.msecs!==undefined?r.msecs:Date.now();let b=r.nsecs!==undefined?r.nsecs:u+1;const C=y-d+(b-u)/1e4;if(C<0&&r.clockseq===undefined){E=E+1&16383}if((C<0||y>d)&&r.nsecs===undefined){b=0}if(b>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=y;u=b;p=E;y+=122192928e5;const v=((y&268435455)*1e4+b)%4294967296;h[A++]=v>>>24&255;h[A++]=v>>>16&255;h[A++]=v>>>8&255;h[A++]=v&255;const w=y/4294967296*1e4&268435455;h[A++]=w>>>8&255;h[A++]=w&255;h[A++]=w>>>24&15|16;h[A++]=w>>>16&255;h[A++]=E>>>8|128;h[A++]=E&255;for(let r=0;r<6;++r){h[A+r]=g[r]}return i||(0,l.default)(h)}var A=v1;i["default"]=A},26993:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(65920));var l=_interopRequireDefault(s(5842));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v3",48,l.default);var p=c;i["default"]=p},65920:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var a=_interopRequireDefault(s(61458));var l=_interopRequireDefault(s(26385));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let s=0;s{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(9784));var l=_interopRequireDefault(s(61458));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,i,s){r=r||{};const c=r.random||(r.rng||a.default)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(i){s=s||0;for(let r=0;r<16;++r){i[s+r]=c[r]}return i}return(0,l.default)(c)}var c=v4;i["default"]=c},16217:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(65920));var l=_interopRequireDefault(s(38844));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v5",80,l.default);var p=c;i["default"]=p},92609:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(86230));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&a.default.test(r)}var l=validate;i["default"]=l},40427:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(92609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.substr(14,1),16)}var l=version;i["default"]=l},71514:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getExecOutput=i.exec=void 0;const d=s(71576);const u=c(s(88159));function exec(r,i,s){return p(this,void 0,void 0,(function*(){const a=u.argStringToArray(r);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const l=a[0];i=a.slice(1).concat(i||[]);const c=new u.ToolRunner(l,i,s);return c.exec()}))}i.exec=exec;function getExecOutput(r,i,s){var a,l;return p(this,void 0,void 0,(function*(){let c="";let p="";const u=new d.StringDecoder("utf8");const A=new d.StringDecoder("utf8");const h=(a=s===null||s===void 0?void 0:s.listeners)===null||a===void 0?void 0:a.stdout;const g=(l=s===null||s===void 0?void 0:s.listeners)===null||l===void 0?void 0:l.stderr;const stdErrListener=r=>{p+=A.write(r);if(g){g(r)}};const stdOutListener=r=>{c+=u.write(r);if(h){h(r)}};const E=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const y=yield exec(r,i,Object.assign(Object.assign({},s),{listeners:E}));c+=u.end();p+=A.end();return{exitCode:y,stdout:c,stderr:p}}))}i.getExecOutput=getExecOutput},88159:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.argStringToArray=i.ToolRunner=void 0;const d=c(s(22037));const u=c(s(82361));const A=c(s(32081));const h=c(s(71017));const g=c(s(47351));const E=c(s(81962));const y=s(39512);const b=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(r,i,s){super();if(!r){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=r;this.args=i||[];this.options=s||{}}_debug(r){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(r)}}_getCommandString(r,i){const s=this._getSpawnFileName();const a=this._getSpawnArgs(r);let l=i?"":"[command]";if(b){if(this._isCmdFile()){l+=s;for(const r of a){l+=` ${r}`}}else if(r.windowsVerbatimArguments){l+=`"${s}"`;for(const r of a){l+=` ${r}`}}else{l+=this._windowsQuoteCmdArg(s);for(const r of a){l+=` ${this._windowsQuoteCmdArg(r)}`}}}else{l+=s;for(const r of a){l+=` ${r}`}}return l}_processLineBuffer(r,i,s){try{let a=i+r.toString();let l=a.indexOf(d.EOL);while(l>-1){const r=a.substring(0,l);s(r);a=a.substring(l+d.EOL.length);l=a.indexOf(d.EOL)}return a}catch(r){this._debug(`error processing line. Failed with error ${r}`);return""}}_getSpawnFileName(){if(b){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(r){if(b){if(this._isCmdFile()){let i=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){i+=" ";i+=r.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}i+='"';return[i]}}return this.args}_endsWith(r,i){return r.endsWith(i)}_isCmdFile(){const r=this.toolPath.toUpperCase();return this._endsWith(r,".CMD")||this._endsWith(r,".BAT")}_windowsQuoteCmdArg(r){if(!this._isCmdFile()){return this._uvQuoteCmdArg(r)}if(!r){return'""'}const i=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const a of r){if(i.some((r=>r===a))){s=true;break}}if(!s){return r}let a='"';let l=true;for(let i=r.length;i>0;i--){a+=r[i-1];if(l&&r[i-1]==="\\"){a+="\\"}else if(r[i-1]==='"'){l=true;a+='"'}else{l=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(r){if(!r){return'""'}if(!r.includes(" ")&&!r.includes("\t")&&!r.includes('"')){return r}if(!r.includes('"')&&!r.includes("\\")){return`"${r}"`}let i='"';let s=true;for(let a=r.length;a>0;a--){i+=r[a-1];if(s&&r[a-1]==="\\"){i+="\\"}else if(r[a-1]==='"'){s=true;i+="\\"}else{s=false}}i+='"';return i.split("").reverse().join("")}_cloneExecOptions(r){r=r||{};const i={cwd:r.cwd||process.cwd(),env:r.env||process.env,silent:r.silent||false,windowsVerbatimArguments:r.windowsVerbatimArguments||false,failOnStdErr:r.failOnStdErr||false,ignoreReturnCode:r.ignoreReturnCode||false,delay:r.delay||1e4};i.outStream=r.outStream||process.stdout;i.errStream=r.errStream||process.stderr;return i}_getSpawnOptions(r,i){r=r||{};const s={};s.cwd=r.cwd;s.env=r.env;s["windowsVerbatimArguments"]=r.windowsVerbatimArguments||this._isCmdFile();if(r.windowsVerbatimArguments){s.argv0=`"${i}"`}return s}exec(){return p(this,void 0,void 0,(function*(){if(!E.isRooted(this.toolPath)&&(this.toolPath.includes("/")||b&&this.toolPath.includes("\\"))){this.toolPath=h.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield g.which(this.toolPath,true);return new Promise(((r,i)=>p(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const r of this.args){this._debug(` ${r}`)}const s=this._cloneExecOptions(this.options);if(!s.silent&&s.outStream){s.outStream.write(this._getCommandString(s)+d.EOL)}const a=new ExecState(s,this.toolPath);a.on("debug",(r=>{this._debug(r)}));if(this.options.cwd&&!(yield E.exists(this.options.cwd))){return i(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const l=this._getSpawnFileName();const c=A.spawn(l,this._getSpawnArgs(s),this._getSpawnOptions(this.options,l));let p="";if(c.stdout){c.stdout.on("data",(r=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(r)}if(!s.silent&&s.outStream){s.outStream.write(r)}p=this._processLineBuffer(r,p,(r=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(r)}}))}))}let u="";if(c.stderr){c.stderr.on("data",(r=>{a.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(r)}if(!s.silent&&s.errStream&&s.outStream){const i=s.failOnStdErr?s.errStream:s.outStream;i.write(r)}u=this._processLineBuffer(r,u,(r=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(r)}}))}))}c.on("error",(r=>{a.processError=r.message;a.processExited=true;a.processClosed=true;a.CheckComplete()}));c.on("exit",(r=>{a.processExitCode=r;a.processExited=true;this._debug(`Exit code ${r} received from tool '${this.toolPath}'`);a.CheckComplete()}));c.on("close",(r=>{a.processExitCode=r;a.processExited=true;a.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);a.CheckComplete()}));a.on("done",((s,a)=>{if(p.length>0){this.emit("stdline",p)}if(u.length>0){this.emit("errline",u)}c.removeAllListeners();if(s){i(s)}else{r(a)}}));if(this.options.input){if(!c.stdin){throw new Error("child process missing stdin")}c.stdin.end(this.options.input)}}))))}))}}i.ToolRunner=ToolRunner;function argStringToArray(r){const i=[];let s=false;let a=false;let l="";function append(r){if(a&&r!=='"'){l+="\\"}l+=r;a=false}for(let c=0;c0){i.push(l);l=""}continue}append(p)}if(l.length>0){i.push(l.trim())}return i}i.argStringToArray=argStringToArray;class ExecState extends u.EventEmitter{constructor(r,i){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!i){throw new Error("toolPath must not be empty")}this.options=r;this.toolPath=i;if(r.delay){this.delay=r.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=y.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(r){this.emit("debug",r)}_setResult(){let r;if(this.processExited){if(this.processError){r=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){r=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){r=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",r,this.processExitCode)}static HandleTimeout(r){if(r.done){return}if(!r.processClosed&&r.processExited){const i=`The STDIO streams did not close within ${r.delay/1e3} seconds of the exit event from process '${r.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;r._debug(i)}r._setResult()}}},74087:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const a=s(57147);const l=s(22037);class Context{constructor(){var r,i,s;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(a.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(a.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${l.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(i=process.env.GITHUB_SERVER_URL)!==null&&i!==void 0?i:`https://github.com`;this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,i]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:i}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}i.Context=Context},95438:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const p=c(s(74087));const d=s(73030);i.context=new p.Context;function getOctokit(r,i,...s){const a=d.GitHub.plugin(...s);return new a(d.getOctokitOptions(r,i))}i.getOctokit=getOctokit},47914:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyAgent=i.getAuthString=void 0;const p=c(s(96255));function getAuthString(r,i){if(!r&&!i.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&i.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof i.auth==="string"?i.auth:`token ${r}`}i.getAuthString=getAuthString;function getProxyAgent(r){const i=new p.HttpClient;return i.getAgent(r)}i.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},73030:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const p=c(s(74087));const d=c(s(47914));const u=s(76762);const A=s(83044);const h=s(64193);i.context=new p.Context;const g=d.getApiBaseUrl();i.defaults={baseUrl:g,request:{agent:d.getProxyAgent(g)}};i.GitHub=u.Octokit.plugin(A.restEndpointMethods,h.paginateRest).defaults(i.defaults);function getOctokitOptions(r,i){const s=Object.assign({},i||{});const a=d.getAuthString(r,s);if(a){s.auth=a}return s}i.getOctokitOptions=getOctokitOptions},35526:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.PersonalAccessTokenCredentialHandler=i.BearerCredentialHandler=i.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(r,i){this.username=r;this.password=i}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.HttpClient=i.isHttps=i.HttpClientResponse=i.HttpClientError=i.getProxyUrl=i.MediaTypes=i.Headers=i.HttpCodes=void 0;const d=c(s(13685));const u=c(s(95687));const A=c(s(19835));const h=c(s(74294));const g=s(41773);var E;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(E||(i.HttpCodes=E={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(i.Headers=y={}));var b;(function(r){r["ApplicationJson"]="application/json"})(b||(i.MediaTypes=b={}));function getProxyUrl(r){const i=A.getProxyUrl(new URL(r));return i?i.href:""}i.getProxyUrl=getProxyUrl;const C=[E.MovedPermanently,E.ResourceMoved,E.SeeOther,E.TemporaryRedirect,E.PermanentRedirect];const v=[E.BadGateway,E.ServiceUnavailable,E.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const I=10;const B=5;class HttpClientError extends Error{constructor(r,i){super(r);this.name="HttpClientError";this.statusCode=i;Object.setPrototypeOf(this,HttpClientError.prototype)}}i.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return p(this,void 0,void 0,(function*(){return new Promise((r=>p(this,void 0,void 0,(function*(){let i=Buffer.alloc(0);this.message.on("data",(r=>{i=Buffer.concat([i,r])}));this.message.on("end",(()=>{r(i.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((r=>p(this,void 0,void 0,(function*(){const i=[];this.message.on("data",(r=>{i.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(i))}))}))))}))}}i.HttpClientResponse=HttpClientResponse;function isHttps(r){const i=new URL(r);return i.protocol==="https:"}i.isHttps=isHttps;class HttpClient{constructor(r,i,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=r;this.handlers=i||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(r,i){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,i||{})}))}get(r,i){return p(this,void 0,void 0,(function*(){return this.request("GET",r,null,i||{})}))}del(r,i){return p(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,i||{})}))}post(r,i,s){return p(this,void 0,void 0,(function*(){return this.request("POST",r,i,s||{})}))}patch(r,i,s){return p(this,void 0,void 0,(function*(){return this.request("PATCH",r,i,s||{})}))}put(r,i,s){return p(this,void 0,void 0,(function*(){return this.request("PUT",r,i,s||{})}))}head(r,i){return p(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,i||{})}))}sendStream(r,i,s,a){return p(this,void 0,void 0,(function*(){return this.request(r,i,s,a)}))}getJson(r,i={}){return p(this,void 0,void 0,(function*(){i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,b.ApplicationJson);const s=yield this.get(r,i);return this._processResponse(s,this.requestOptions)}))}postJson(r,i,s={}){return p(this,void 0,void 0,(function*(){const a=JSON.stringify(i,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultHeader(s,y.ContentType,b.ApplicationJson);const l=yield this.post(r,a,s);return this._processResponse(l,this.requestOptions)}))}putJson(r,i,s={}){return p(this,void 0,void 0,(function*(){const a=JSON.stringify(i,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultHeader(s,y.ContentType,b.ApplicationJson);const l=yield this.put(r,a,s);return this._processResponse(l,this.requestOptions)}))}patchJson(r,i,s={}){return p(this,void 0,void 0,(function*(){const a=JSON.stringify(i,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultHeader(s,y.ContentType,b.ApplicationJson);const l=yield this.patch(r,a,s);return this._processResponse(l,this.requestOptions)}))}request(r,i,s,a){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(i);let c=this._prepareRequest(r,l,a);const p=this._allowRetries&&w.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(c,s);if(u&&u.message&&u.message.statusCode===E.Unauthorized){let r;for(const i of this.handlers){if(i.canHandleAuthentication(u)){r=i;break}}if(r){return r.handleAuthentication(this,c,s)}else{return u}}let i=this._maxRedirects;while(u.message.statusCode&&C.includes(u.message.statusCode)&&this._allowRedirects&&i>0){const p=u.message.headers["location"];if(!p){break}const d=new URL(p);if(l.protocol==="https:"&&l.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(d.hostname!==l.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}c=this._prepareRequest(r,d,a);u=yield this.requestRaw(c,s);i--}if(!u.message.statusCode||!v.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,i){if(r){a(r)}else if(!i){a(new Error("Unknown error"))}else{s(i)}}this.requestRawWithCallback(r,i,callbackForResult)}))}))}requestRawWithCallback(r,i,s){if(typeof i==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let a=false;function handleResult(r,i){if(!a){a=true;s(r,i)}}const l=r.httpModule.request(r.options,(r=>{const i=new HttpClientResponse(r);handleResult(undefined,i)}));let c;l.on("socket",(r=>{c=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(i&&typeof i==="string"){l.write(i,"utf8")}if(i&&typeof i!=="string"){i.on("close",(function(){l.end()}));i.pipe(l)}else{l.end()}}getAgent(r){const i=new URL(r);return this._getAgent(i)}getAgentDispatcher(r){const i=new URL(r);const s=A.getProxyUrl(i);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(i,s)}_prepareRequest(r,i,s){const a={};a.parsedUrl=i;const l=a.parsedUrl.protocol==="https:";a.httpModule=l?u:d;const c=l?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,i,s){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[i]}return r[i]||a||s}_getAgent(r){let i;const s=A.getProxyUrl(r);const a=s&&s.hostname;if(this._keepAlive&&a){i=this._proxyAgent}if(this._keepAlive&&!a){i=this._agent}if(i){return i}const l=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const p=s.protocol==="https:";if(l){a=p?h.httpsOverHttps:h.httpsOverHttp}else{a=p?h.httpOverHttps:h.httpOverHttp}i=a(r);this._proxyAgent=i}if(this._keepAlive&&!i){const r={keepAlive:this._keepAlive,maxSockets:c};i=l?new u.Agent(r):new d.Agent(r);this._agent=i}if(!i){i=l?u.globalAgent:d.globalAgent}if(l&&this._ignoreSslError){i.options=Object.assign(i.options||{},{rejectUnauthorized:false})}return i}_getProxyAgentDispatcher(r,i){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new g.ProxyAgent(Object.assign({uri:i.href,pipelining:!this._keepAlive?0:1},(i.username||i.password)&&{token:`${i.username}:${i.password}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(r){return p(this,void 0,void 0,(function*(){r=Math.min(I,r);const i=B*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),i)))}))}_processResponse(r,i){return p(this,void 0,void 0,(function*(){return new Promise(((s,a)=>p(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const c={statusCode:l,result:null,headers:{}};if(l===E.NotFound){s(c)}function dateTimeDeserializer(r,i){if(typeof i==="string"){const r=new Date(i);if(!isNaN(r.valueOf())){return r}}return i}let p;let d;try{d=yield r.readBody();if(d&&d.length>0){if(i&&i.deserializeDates){p=JSON.parse(d,dateTimeDeserializer)}else{p=JSON.parse(d)}c.result=p}c.headers=r.message.headers}catch(r){}if(l>299){let r;if(p&&p.message){r=p.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${l})`}const i=new HttpClientError(r,l);i.result=c.result;a(i)}else{s(c)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((i,s)=>(i[s.toLowerCase()]=r[s],i)),{})},19835:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.checkBypass=i.getProxyUrl=void 0;function getProxyUrl(r){const i=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new URL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new URL(`http://${s}`)}}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const i=r.hostname;if(isLoopbackAddress(i)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((i=>i===r||i.endsWith(`.${r}`)||r.startsWith(".")&&i.endsWith(`${r}`)))){return true}}return false}i.checkBypass=checkBypass;function isLoopbackAddress(r){const i=r.toLowerCase();return i==="localhost"||i.startsWith("127.")||i.startsWith("[::1]")||i.startsWith("[0:0:0:0:0:0:0:1]")}},81962:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var d;Object.defineProperty(i,"__esModule",{value:true});i.getCmdPath=i.tryGetExecutablePath=i.isRooted=i.isDirectory=i.exists=i.READONLY=i.UV_FS_O_EXLOCK=i.IS_WINDOWS=i.unlink=i.symlink=i.stat=i.rmdir=i.rm=i.rename=i.readlink=i.readdir=i.open=i.mkdir=i.lstat=i.copyFile=i.chmod=void 0;const u=c(s(57147));const A=c(s(71017));d=u.promises,i.chmod=d.chmod,i.copyFile=d.copyFile,i.lstat=d.lstat,i.mkdir=d.mkdir,i.open=d.open,i.readdir=d.readdir,i.readlink=d.readlink,i.rename=d.rename,i.rm=d.rm,i.rmdir=d.rmdir,i.stat=d.stat,i.symlink=d.symlink,i.unlink=d.unlink;i.IS_WINDOWS=process.platform==="win32";i.UV_FS_O_EXLOCK=268435456;i.READONLY=u.constants.O_RDONLY;function exists(r){return p(this,void 0,void 0,(function*(){try{yield i.stat(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}i.exists=exists;function isDirectory(r,s=false){return p(this,void 0,void 0,(function*(){const a=s?yield i.stat(r):yield i.lstat(r);return a.isDirectory()}))}i.isDirectory=isDirectory;function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(i.IS_WINDOWS){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}i.isRooted=isRooted;function tryGetExecutablePath(r,s){return p(this,void 0,void 0,(function*(){let a=undefined;try{a=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(a&&a.isFile()){if(i.IS_WINDOWS){const i=A.extname(r).toUpperCase();if(s.some((r=>r.toUpperCase()===i))){return r}}else{if(isUnixExecutable(a)){return r}}}const l=r;for(const c of s){r=l+c;a=undefined;try{a=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(a&&a.isFile()){if(i.IS_WINDOWS){try{const s=A.dirname(r);const a=A.basename(r).toUpperCase();for(const l of yield i.readdir(s)){if(a===l.toUpperCase()){r=A.join(s,l);break}}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${i}`)}return r}else{if(isUnixExecutable(a)){return r}}}}return""}))}i.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(r){r=r||"";if(i.IS_WINDOWS){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&r.gid===process.getgid()||(r.mode&64)>0&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}i.getCmdPath=getCmdPath},47351:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.findInPath=i.which=i.mkdirP=i.rmRF=i.mv=i.cp=void 0;const d=s(39491);const u=c(s(71017));const A=c(s(81962));function cp(r,i,s={}){return p(this,void 0,void 0,(function*(){const{force:a,recursive:l,copySourceDirectory:c}=readCopyOptions(s);const p=(yield A.exists(i))?yield A.stat(i):null;if(p&&p.isFile()&&!a){return}const d=p&&p.isDirectory()&&c?u.join(i,u.basename(r)):i;if(!(yield A.exists(r))){throw new Error(`no such file or directory: ${r}`)}const h=yield A.stat(r);if(h.isDirectory()){if(!l){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,d,0,a)}}else{if(u.relative(r,d)===""){throw new Error(`'${d}' and '${r}' are the same file`)}yield copyFile(r,d,a)}}))}i.cp=cp;function mv(r,i,s={}){return p(this,void 0,void 0,(function*(){if(yield A.exists(i)){let a=true;if(yield A.isDirectory(i)){i=u.join(i,u.basename(r));a=yield A.exists(i)}if(a){if(s.force==null||s.force){yield rmRF(i)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(i));yield A.rename(r,i)}))}i.mv=mv;function rmRF(r){return p(this,void 0,void 0,(function*(){if(A.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield A.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}i.rmRF=rmRF;function mkdirP(r){return p(this,void 0,void 0,(function*(){d.ok(r,"a path argument must be provided");yield A.mkdir(r,{recursive:true})}))}i.mkdirP=mkdirP;function which(r,i){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(i){const i=yield which(r,false);if(!i){if(A.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return i}const s=yield findInPath(r);if(s&&s.length>0){return s[0]}return""}))}i.which=which;function findInPath(r){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const i=[];if(A.IS_WINDOWS&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(u.delimiter)){if(r){i.push(r)}}}if(A.isRooted(r)){const s=yield A.tryGetExecutablePath(r,i);if(s){return[s]}return[]}if(r.includes(u.sep)){return[]}const s=[];if(process.env.PATH){for(const r of process.env.PATH.split(u.delimiter)){if(r){s.push(r)}}}const a=[];for(const l of s){const s=yield A.tryGetExecutablePath(u.join(l,r),i);if(s){a.push(s)}}return a}))}i.findInPath=findInPath;function readCopyOptions(r){const i=r.force==null?true:r.force;const s=Boolean(r.recursive);const a=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:i,recursive:s,copySourceDirectory:a}}function cpDirRecursive(r,i,s,a){return p(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(i);const l=yield A.readdir(r);for(const c of l){const l=`${r}/${c}`;const p=`${i}/${c}`;const d=yield A.lstat(l);if(d.isDirectory()){yield cpDirRecursive(l,p,s,a)}else{yield copyFile(l,p,a)}}yield A.chmod(i,(yield A.stat(r)).mode)}))}function copyFile(r,i,s){return p(this,void 0,void 0,(function*(){if((yield A.lstat(r)).isSymbolicLink()){try{yield A.lstat(i);yield A.unlink(i)}catch(r){if(r.code==="EPERM"){yield A.chmod(i,"0666");yield A.unlink(i)}}const s=yield A.readlink(r);yield A.symlink(s,i,A.IS_WINDOWS?"junction":null)}else if(!(yield A.exists(i))||s){yield A.copyFile(r,i)}}))}},32473:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i._readLinuxVersionFile=i._getOsVersion=i._findMatch=void 0;const d=c(s(70562));const u=s(42186);const A=s(22037);const h=s(32081);const g=s(57147);function _findMatch(i,s,a,l){return p(this,void 0,void 0,(function*(){const c=A.platform();let p;let h;let g;for(const p of a){const a=p.version;u.debug(`check ${a} satisfies ${i}`);if(d.satisfies(a,i)&&(!s||p.stable===s)){g=p.files.find((i=>{u.debug(`${i.arch}===${l} && ${i.platform}===${c}`);let s=i.arch===l&&i.platform===c;if(s&&i.platform_version){const a=r.exports._getOsVersion();if(a===i.platform_version){s=true}else{s=d.satisfies(a,i.platform_version)}}return s}));if(g){u.debug(`matched ${p.version}`);h=p;break}}}if(h&&g){p=Object.assign({},h);p.files=[g]}return p}))}i._findMatch=_findMatch;function _getOsVersion(){const i=A.platform();let s="";if(i==="darwin"){s=h.execSync("sw_vers -productVersion").toString()}else if(i==="linux"){const i=r.exports._readLinuxVersionFile();if(i){const r=i.split("\n");for(const i of r){const r=i.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){s=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return s}i._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const r="/etc/lsb-release";const i="/etc/os-release";let s="";if(g.existsSync(r)){s=g.readFileSync(r).toString()}else if(g.existsSync(i)){s=g.readFileSync(i).toString()}return s}i._readLinuxVersionFile=_readLinuxVersionFile},38279:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.RetryHelper=void 0;const d=c(s(42186));class RetryHelper{constructor(r,i,s){if(r<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=r;this.minSeconds=Math.floor(i);this.maxSeconds=Math.floor(s);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(r,i){return p(this,void 0,void 0,(function*(){let s=1;while(ssetTimeout(i,r*1e3)))}))}}i.RetryHelper=RetryHelper},27784:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.evaluateVersions=i.isExplicitVersion=i.findFromManifest=i.getManifestFromRepo=i.findAllVersions=i.find=i.cacheFile=i.cacheDir=i.extractZip=i.extractXar=i.extractTar=i.extract7z=i.downloadTool=i.HTTPError=void 0;const u=c(s(42186));const A=c(s(47351));const h=c(s(57147));const g=c(s(32473));const E=c(s(22037));const y=c(s(71017));const b=c(s(96255));const C=c(s(70562));const v=c(s(12781));const w=c(s(73837));const I=s(39491);const B=d(s(80824));const S=s(71514);const Q=s(38279);class HTTPError extends Error{constructor(r){super(`Unexpected HTTP response: ${r}`);this.httpStatusCode=r;Object.setPrototypeOf(this,new.target.prototype)}}i.HTTPError=HTTPError;const x=process.platform==="win32";const R=process.platform==="darwin";const T="actions/tool-cache";function downloadTool(r,i,s,a){return p(this,void 0,void 0,(function*(){i=i||y.join(_getTempDirectory(),B.default());yield A.mkdirP(y.dirname(i));u.debug(`Downloading ${r}`);u.debug(`Destination ${i}`);const l=3;const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const d=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const h=new Q.RetryHelper(l,c,d);return yield h.execute((()=>p(this,void 0,void 0,(function*(){return yield downloadToolAttempt(r,i||"",s,a)}))),(r=>{if(r instanceof HTTPError&&r.httpStatusCode){if(r.httpStatusCode<500&&r.httpStatusCode!==408&&r.httpStatusCode!==429){return false}}return true}))}))}i.downloadTool=downloadTool;function downloadToolAttempt(r,i,s,a){return p(this,void 0,void 0,(function*(){if(h.existsSync(i)){throw new Error(`Destination file path ${i} already exists`)}const l=new b.HttpClient(T,[],{allowRetries:false});if(s){u.debug("set auth");if(a===undefined){a={}}a.authorization=s}const c=yield l.get(r,a);if(c.message.statusCode!==200){const i=new HTTPError(c.message.statusCode);u.debug(`Failed to download from "${r}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`);throw i}const p=w.promisify(v.pipeline);const d=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>c.message));const g=d();let E=false;try{yield p(g,h.createWriteStream(i));u.debug("download complete");E=true;return i}finally{if(!E){u.debug("download failed");try{yield A.rmRF(i)}catch(r){u.debug(`Failed to delete '${i}'. ${r.message}`)}}}}))}function extract7z(r,i,s){return p(this,void 0,void 0,(function*(){I.ok(x,"extract7z() not supported on current OS");I.ok(r,'parameter "file" is required');i=yield _createExtractFolder(i);const a=process.cwd();process.chdir(i);if(s){try{const i=u.isDebug()?"-bb1":"-bb0";const a=["x",i,"-bd","-sccUTF-8",r];const l={silent:true};yield S.exec(`"${s}"`,a,l)}finally{process.chdir(a)}}else{const s=y.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const c=i.replace(/'/g,"''").replace(/"|\n|\r/g,"");const p=`& '${s}' -Source '${l}' -Target '${c}'`;const d=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",p];const u={silent:true};try{const r=yield A.which("powershell",true);yield S.exec(`"${r}"`,d,u)}finally{process.chdir(a)}}return i}))}i.extract7z=extract7z;function extractTar(r,i,s="xz"){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}i=yield _createExtractFolder(i);u.debug("Checking tar --version");let a="";yield S.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>a+=r.toString(),stderr:r=>a+=r.toString()}});u.debug(a.trim());const l=a.toUpperCase().includes("GNU TAR");let c;if(s instanceof Array){c=s}else{c=[s]}if(u.isDebug()&&!s.includes("v")){c.push("-v")}let p=i;let d=r;if(x&&l){c.push("--force-local");p=i.replace(/\\/g,"/");d=r.replace(/\\/g,"/")}if(l){c.push("--warning=no-unknown-keyword");c.push("--overwrite")}c.push("-C",p,"-f",d);yield S.exec(`tar`,c);return i}))}i.extractTar=extractTar;function extractXar(r,i,s=[]){return p(this,void 0,void 0,(function*(){I.ok(R,"extractXar() not supported on current OS");I.ok(r,'parameter "file" is required');i=yield _createExtractFolder(i);let a;if(s instanceof Array){a=s}else{a=[s]}a.push("-x","-C",i,"-f",r);if(u.isDebug()){a.push("-v")}const l=yield A.which("xar",true);yield S.exec(`"${l}"`,_unique(a));return i}))}i.extractXar=extractXar;function extractZip(r,i){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}i=yield _createExtractFolder(i);if(x){yield extractZipWin(r,i)}else{yield extractZipNix(r,i)}return i}))}i.extractZip=extractZip;function extractZipWin(r,i){return p(this,void 0,void 0,(function*(){const s=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=i.replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=yield A.which("pwsh",false);if(l){const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${s}', '${a}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${s}' -DestinationPath '${a}' -Force } else { throw $_ } } ;`].join(" ");const i=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];u.debug(`Using pwsh at path: ${l}`);yield S.exec(`"${l}"`,i)}else{const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${s}' -DestinationPath '${a}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${s}', '${a}', $true) }`].join(" ");const i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const l=yield A.which("powershell",true);u.debug(`Using powershell at path: ${l}`);yield S.exec(`"${l}"`,i)}}))}function extractZipNix(r,i){return p(this,void 0,void 0,(function*(){const s=yield A.which("unzip",true);const a=[r];if(!u.isDebug()){a.unshift("-q")}a.unshift("-o");yield S.exec(`"${s}"`,a,{cwd:i})}))}function cacheDir(r,i,s,a){return p(this,void 0,void 0,(function*(){s=C.clean(s)||s;a=a||E.arch();u.debug(`Caching tool ${i} ${s} ${a}`);u.debug(`source dir: ${r}`);if(!h.statSync(r).isDirectory()){throw new Error("sourceDir is not a directory")}const l=yield _createToolPath(i,s,a);for(const i of h.readdirSync(r)){const s=y.join(r,i);yield A.cp(s,l,{recursive:true})}_completeToolPath(i,s,a);return l}))}i.cacheDir=cacheDir;function cacheFile(r,i,s,a,l){return p(this,void 0,void 0,(function*(){a=C.clean(a)||a;l=l||E.arch();u.debug(`Caching tool ${s} ${a} ${l}`);u.debug(`source file: ${r}`);if(!h.statSync(r).isFile()){throw new Error("sourceFile is not a file")}const c=yield _createToolPath(s,a,l);const p=y.join(c,i);u.debug(`destination file ${p}`);yield A.cp(r,p);_completeToolPath(s,a,l);return c}))}i.cacheFile=cacheFile;function find(r,i,s){if(!r){throw new Error("toolName parameter is required")}if(!i){throw new Error("versionSpec parameter is required")}s=s||E.arch();if(!isExplicitVersion(i)){const a=findAllVersions(r,s);const l=evaluateVersions(a,i);i=l}let a="";if(i){i=C.clean(i)||"";const l=y.join(_getCacheDirectory(),r,i,s);u.debug(`checking cache: ${l}`);if(h.existsSync(l)&&h.existsSync(`${l}.complete`)){u.debug(`Found tool in cache ${r} ${i} ${s}`);a=l}else{u.debug("not found")}}return a}i.find=find;function findAllVersions(r,i){const s=[];i=i||E.arch();const a=y.join(_getCacheDirectory(),r);if(h.existsSync(a)){const r=h.readdirSync(a);for(const l of r){if(isExplicitVersion(l)){const r=y.join(a,l,i||"");if(h.existsSync(r)&&h.existsSync(`${r}.complete`)){s.push(l)}}}}return s}i.findAllVersions=findAllVersions;function getManifestFromRepo(r,i,s,a="master"){return p(this,void 0,void 0,(function*(){let l=[];const c=`https://api.github.com/repos/${r}/${i}/git/trees/${a}`;const p=new b.HttpClient("tool-cache");const d={};if(s){u.debug("set auth");d.authorization=s}const A=yield p.getJson(c,d);if(!A.result){return l}let h="";for(const r of A.result.tree){if(r.path==="versions-manifest.json"){h=r.url;break}}d["accept"]="application/vnd.github.VERSION.raw";let g=yield(yield p.get(h,d)).readBody();if(g){g=g.replace(/^\uFEFF/,"");try{l=JSON.parse(g)}catch(r){u.debug("Invalid json")}}return l}))}i.getManifestFromRepo=getManifestFromRepo;function findFromManifest(r,i,s,a=E.arch()){return p(this,void 0,void 0,(function*(){const l=yield g._findMatch(r,i,s,a);return l}))}i.findFromManifest=findFromManifest;function _createExtractFolder(r){return p(this,void 0,void 0,(function*(){if(!r){r=y.join(_getTempDirectory(),B.default())}yield A.mkdirP(r);return r}))}function _createToolPath(r,i,s){return p(this,void 0,void 0,(function*(){const a=y.join(_getCacheDirectory(),r,C.clean(i)||i,s||"");u.debug(`destination ${a}`);const l=`${a}.complete`;yield A.rmRF(a);yield A.rmRF(l);yield A.mkdirP(a);return a}))}function _completeToolPath(r,i,s){const a=y.join(_getCacheDirectory(),r,C.clean(i)||i,s||"");const l=`${a}.complete`;h.writeFileSync(l,"");u.debug("finished caching tool")}function isExplicitVersion(r){const i=C.clean(r)||"";u.debug(`isExplicit: ${i}`);const s=C.valid(i)!=null;u.debug(`explicit? ${s}`);return s}i.isExplicitVersion=isExplicitVersion;function evaluateVersions(r,i){let s="";u.debug(`evaluating ${r.length} versions`);r=r.sort(((r,i)=>{if(C.gt(r,i)){return 1}return-1}));for(let a=r.length-1;a>=0;a--){const l=r[a];const c=C.satisfies(l,i);if(c){s=l;break}}if(s){u.debug(`matched: ${s}`)}else{u.debug("match not found")}return s}i.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const r=process.env["RUNNER_TOOL_CACHE"]||"";I.ok(r,"Expected RUNNER_TOOL_CACHE to be defined");return r}function _getTempDirectory(){const r=process.env["RUNNER_TEMP"]||"";I.ok(r,"Expected RUNNER_TEMP to be defined");return r}function _getGlobal(r,i){const s=global[r];return s!==undefined?s:i}function _unique(r){return Array.from(new Set(r))}},70562:(r,i)=>{i=r.exports=SemVer;var s;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){s=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{s=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";var a=256;var l=Number.MAX_SAFE_INTEGER||9007199254740991;var c=16;var p=a-6;var d=i.re=[];var u=i.safeRe=[];var A=i.src=[];var h=i.tokens={};var g=0;function tok(r){h[r]=g++}var E="[a-zA-Z0-9-]";var y=[["\\s",1],["\\d",a],[E,p]];function makeSafeRe(r){for(var i=0;i)?=?)";tok("XRANGEIDENTIFIERLOOSE");A[h.XRANGEIDENTIFIERLOOSE]=A[h.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");A[h.XRANGEIDENTIFIER]=A[h.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");A[h.XRANGEPLAIN]="[v=\\s]*("+A[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIER]+")"+"(?:"+A[h.PRERELEASE]+")?"+A[h.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");A[h.XRANGEPLAINLOOSE]="[v=\\s]*("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+A[h.PRERELEASELOOSE]+")?"+A[h.BUILD]+"?"+")?)?";tok("XRANGE");A[h.XRANGE]="^"+A[h.GTLT]+"\\s*"+A[h.XRANGEPLAIN]+"$";tok("XRANGELOOSE");A[h.XRANGELOOSE]="^"+A[h.GTLT]+"\\s*"+A[h.XRANGEPLAINLOOSE]+"$";tok("COERCE");A[h.COERCE]="(^|[^\\d])"+"(\\d{1,"+c+"})"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");d[h.COERCERTL]=new RegExp(A[h.COERCE],"g");u[h.COERCERTL]=new RegExp(makeSafeRe(A[h.COERCE]),"g");tok("LONETILDE");A[h.LONETILDE]="(?:~>?)";tok("TILDETRIM");A[h.TILDETRIM]="(\\s*)"+A[h.LONETILDE]+"\\s+";d[h.TILDETRIM]=new RegExp(A[h.TILDETRIM],"g");u[h.TILDETRIM]=new RegExp(makeSafeRe(A[h.TILDETRIM]),"g");var b="$1~";tok("TILDE");A[h.TILDE]="^"+A[h.LONETILDE]+A[h.XRANGEPLAIN]+"$";tok("TILDELOOSE");A[h.TILDELOOSE]="^"+A[h.LONETILDE]+A[h.XRANGEPLAINLOOSE]+"$";tok("LONECARET");A[h.LONECARET]="(?:\\^)";tok("CARETTRIM");A[h.CARETTRIM]="(\\s*)"+A[h.LONECARET]+"\\s+";d[h.CARETTRIM]=new RegExp(A[h.CARETTRIM],"g");u[h.CARETTRIM]=new RegExp(makeSafeRe(A[h.CARETTRIM]),"g");var C="$1^";tok("CARET");A[h.CARET]="^"+A[h.LONECARET]+A[h.XRANGEPLAIN]+"$";tok("CARETLOOSE");A[h.CARETLOOSE]="^"+A[h.LONECARET]+A[h.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");A[h.COMPARATORLOOSE]="^"+A[h.GTLT]+"\\s*("+A[h.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");A[h.COMPARATOR]="^"+A[h.GTLT]+"\\s*("+A[h.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");A[h.COMPARATORTRIM]="(\\s*)"+A[h.GTLT]+"\\s*("+A[h.LOOSEPLAIN]+"|"+A[h.XRANGEPLAIN]+")";d[h.COMPARATORTRIM]=new RegExp(A[h.COMPARATORTRIM],"g");u[h.COMPARATORTRIM]=new RegExp(makeSafeRe(A[h.COMPARATORTRIM]),"g");var v="$1$2$3";tok("HYPHENRANGE");A[h.HYPHENRANGE]="^\\s*("+A[h.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+A[h.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");A[h.HYPHENRANGELOOSE]="^\\s*("+A[h.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+A[h.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");A[h.STAR]="(<|>)?=?\\s*\\*";for(var w=0;wa){return null}var s=i.loose?u[h.LOOSE]:u[h.FULL];if(!s.test(r)){return null}try{return new SemVer(r,i)}catch(r){return null}}i.valid=valid;function valid(r,i){var s=parse(r,i);return s?s.version:null}i.clean=clean;function clean(r,i){var s=parse(r.trim().replace(/^[=v]+/,""),i);return s?s.version:null}i.SemVer=SemVer;function SemVer(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof SemVer){if(r.loose===i.loose){return r}else{r=r.version}}else if(typeof r!=="string"){throw new TypeError("Invalid Version: "+r)}if(r.length>a){throw new TypeError("version is longer than "+a+" characters")}if(!(this instanceof SemVer)){return new SemVer(r,i)}s("SemVer",r,i);this.options=i;this.loose=!!i.loose;var c=r.trim().match(i.loose?u[h.LOOSE]:u[h.FULL]);if(!c){throw new TypeError("Invalid Version: "+r)}this.raw=r;this.major=+c[1];this.minor=+c[2];this.patch=+c[3];if(this.major>l||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>l||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>l||this.patch<0){throw new TypeError("Invalid patch version")}if(!c[4]){this.prerelease=[]}else{this.prerelease=c[4].split(".").map((function(r){if(/^[0-9]+$/.test(r)){var i=+r;if(i>=0&&i=0){if(typeof this.prerelease[s]==="number"){this.prerelease[s]++;s=-2}}if(s===-1){this.prerelease.push(0)}}if(i){if(this.prerelease[0]===i){if(isNaN(this.prerelease[1])){this.prerelease=[i,0]}}else{this.prerelease=[i,0]}}break;default:throw new Error("invalid increment argument: "+r)}this.format();this.raw=this.version;return this};i.inc=inc;function inc(r,i,s,a){if(typeof s==="string"){a=s;s=undefined}try{return new SemVer(r,s).inc(i,a).version}catch(r){return null}}i.diff=diff;function diff(r,i){if(eq(r,i)){return null}else{var s=parse(r);var a=parse(i);var l="";if(s.prerelease.length||a.prerelease.length){l="pre";var c="prerelease"}for(var p in s){if(p==="major"||p==="minor"||p==="patch"){if(s[p]!==a[p]){return l+p}}}return c}}i.compareIdentifiers=compareIdentifiers;var I=/^[0-9]+$/;function compareIdentifiers(r,i){var s=I.test(r);var a=I.test(i);if(s&&a){r=+r;i=+i}return r===i?0:s&&!a?-1:a&&!s?1:r0}i.lt=lt;function lt(r,i,s){return compare(r,i,s)<0}i.eq=eq;function eq(r,i,s){return compare(r,i,s)===0}i.neq=neq;function neq(r,i,s){return compare(r,i,s)!==0}i.gte=gte;function gte(r,i,s){return compare(r,i,s)>=0}i.lte=lte;function lte(r,i,s){return compare(r,i,s)<=0}i.cmp=cmp;function cmp(r,i,s,a){switch(i){case"===":if(typeof r==="object")r=r.version;if(typeof s==="object")s=s.version;return r===s;case"!==":if(typeof r==="object")r=r.version;if(typeof s==="object")s=s.version;return r!==s;case"":case"=":case"==":return eq(r,s,a);case"!=":return neq(r,s,a);case">":return gt(r,s,a);case">=":return gte(r,s,a);case"<":return lt(r,s,a);case"<=":return lte(r,s,a);default:throw new TypeError("Invalid operator: "+i)}}i.Comparator=Comparator;function Comparator(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}if(!(this instanceof Comparator)){return new Comparator(r,i)}r=r.trim().split(/\s+/).join(" ");s("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===B){this.value=""}else{this.value=this.operator+this.semver.version}s("comp",this)}var B={};Comparator.prototype.parse=function(r){var i=this.options.loose?u[h.COMPARATORLOOSE]:u[h.COMPARATOR];var s=r.match(i);if(!s){throw new TypeError("Invalid comparator: "+r)}this.operator=s[1]!==undefined?s[1]:"";if(this.operator==="="){this.operator=""}if(!s[2]){this.semver=B}else{this.semver=new SemVer(s[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(r){s("Comparator.test",r,this.options.loose);if(this.semver===B||r===B){return true}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}return cmp(r,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}var s;if(this.operator===""){if(this.value===""){return true}s=new Range(r.value,i);return satisfies(this.value,s,i)}else if(r.operator===""){if(r.value===""){return true}s=new Range(this.value,i);return satisfies(r.semver,s,i)}var a=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">");var l=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<");var c=this.semver.version===r.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<=");var d=cmp(this.semver,"<",r.semver,i)&&((this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"));var u=cmp(this.semver,">",r.semver,i)&&((this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">"));return a||l||c&&p||d||u};i.Range=Range;function Range(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof Comparator){return new Range(r.value,i)}if(!(this instanceof Range)){return new Range(r,i)}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(r){return this.parseRange(r.trim())}),this).filter((function(r){return r.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(r){return r.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(r){var i=this.options.loose;var a=i?u[h.HYPHENRANGELOOSE]:u[h.HYPHENRANGE];r=r.replace(a,hyphenReplace);s("hyphen replace",r);r=r.replace(u[h.COMPARATORTRIM],v);s("comparator trim",r,u[h.COMPARATORTRIM]);r=r.replace(u[h.TILDETRIM],b);r=r.replace(u[h.CARETTRIM],C);r=r.split(/\s+/).join(" ");var l=i?u[h.COMPARATORLOOSE]:u[h.COMPARATOR];var c=r.split(" ").map((function(r){return parseComparator(r,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){c=c.filter((function(r){return!!r.match(l)}))}c=c.map((function(r){return new Comparator(r,this.options)}),this);return c};Range.prototype.intersects=function(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(s){return isSatisfiable(s,i)&&r.set.some((function(r){return isSatisfiable(r,i)&&s.every((function(s){return r.every((function(r){return s.intersects(r,i)}))}))}))}))};function isSatisfiable(r,i){var s=true;var a=r.slice();var l=a.pop();while(s&&a.length){s=a.every((function(r){return l.intersects(r,i)}));l=a.pop()}return s}i.toComparators=toComparators;function toComparators(r,i){return new Range(r,i).set.map((function(r){return r.map((function(r){return r.value})).join(" ").trim().split(" ")}))}function parseComparator(r,i){s("comp",r,i);r=replaceCarets(r,i);s("caret",r);r=replaceTildes(r,i);s("tildes",r);r=replaceXRanges(r,i);s("xrange",r);r=replaceStars(r,i);s("stars",r);return r}function isX(r){return!r||r.toLowerCase()==="x"||r==="*"}function replaceTildes(r,i){return r.trim().split(/\s+/).map((function(r){return replaceTilde(r,i)})).join(" ")}function replaceTilde(r,i){var a=i.loose?u[h.TILDELOOSE]:u[h.TILDE];return r.replace(a,(function(i,a,l,c,p){s("tilde",r,i,a,l,c,p);var d;if(isX(a)){d=""}else if(isX(l)){d=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(isX(c)){d=">="+a+"."+l+".0 <"+a+"."+(+l+1)+".0"}else if(p){s("replaceTilde pr",p);d=">="+a+"."+l+"."+c+"-"+p+" <"+a+"."+(+l+1)+".0"}else{d=">="+a+"."+l+"."+c+" <"+a+"."+(+l+1)+".0"}s("tilde return",d);return d}))}function replaceCarets(r,i){return r.trim().split(/\s+/).map((function(r){return replaceCaret(r,i)})).join(" ")}function replaceCaret(r,i){s("caret",r,i);var a=i.loose?u[h.CARETLOOSE]:u[h.CARET];return r.replace(a,(function(i,a,l,c,p){s("caret",r,i,a,l,c,p);var d;if(isX(a)){d=""}else if(isX(l)){d=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(isX(c)){if(a==="0"){d=">="+a+"."+l+".0 <"+a+"."+(+l+1)+".0"}else{d=">="+a+"."+l+".0 <"+(+a+1)+".0.0"}}else if(p){s("replaceCaret pr",p);if(a==="0"){if(l==="0"){d=">="+a+"."+l+"."+c+"-"+p+" <"+a+"."+l+"."+(+c+1)}else{d=">="+a+"."+l+"."+c+"-"+p+" <"+a+"."+(+l+1)+".0"}}else{d=">="+a+"."+l+"."+c+"-"+p+" <"+(+a+1)+".0.0"}}else{s("no pr");if(a==="0"){if(l==="0"){d=">="+a+"."+l+"."+c+" <"+a+"."+l+"."+(+c+1)}else{d=">="+a+"."+l+"."+c+" <"+a+"."+(+l+1)+".0"}}else{d=">="+a+"."+l+"."+c+" <"+(+a+1)+".0.0"}}s("caret return",d);return d}))}function replaceXRanges(r,i){s("replaceXRanges",r,i);return r.split(/\s+/).map((function(r){return replaceXRange(r,i)})).join(" ")}function replaceXRange(r,i){r=r.trim();var a=i.loose?u[h.XRANGELOOSE]:u[h.XRANGE];return r.replace(a,(function(a,l,c,p,d,u){s("xRange",r,a,l,c,p,d,u);var A=isX(c);var h=A||isX(p);var g=h||isX(d);var E=g;if(l==="="&&E){l=""}u=i.includePrerelease?"-0":"";if(A){if(l===">"||l==="<"){a="<0.0.0-0"}else{a="*"}}else if(l&&E){if(h){p=0}d=0;if(l===">"){l=">=";if(h){c=+c+1;p=0;d=0}else{p=+p+1;d=0}}else if(l==="<="){l="<";if(h){c=+c+1}else{p=+p+1}}a=l+c+"."+p+"."+d+u}else if(h){a=">="+c+".0.0"+u+" <"+(+c+1)+".0.0"+u}else if(g){a=">="+c+"."+p+".0"+u+" <"+c+"."+(+p+1)+".0"+u}s("xRange return",a);return a}))}function replaceStars(r,i){s("replaceStars",r,i);return r.trim().replace(u[h.STAR],"")}function hyphenReplace(r,i,s,a,l,c,p,d,u,A,h,g,E){if(isX(s)){i=""}else if(isX(a)){i=">="+s+".0.0"}else if(isX(l)){i=">="+s+"."+a+".0"}else{i=">="+i}if(isX(u)){d=""}else if(isX(A)){d="<"+(+u+1)+".0.0"}else if(isX(h)){d="<"+u+"."+(+A+1)+".0"}else if(g){d="<="+u+"."+A+"."+h+"-"+g}else{d="<="+d}return(i+" "+d).trim()}Range.prototype.test=function(r){if(!r){return false}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}for(var i=0;i0){var c=r[l].semver;if(c.major===i.major&&c.minor===i.minor&&c.patch===i.patch){return true}}}return false}return true}i.satisfies=satisfies;function satisfies(r,i,s){try{i=new Range(i,s)}catch(r){return false}return i.test(r)}i.maxSatisfying=maxSatisfying;function maxSatisfying(r,i,s){var a=null;var l=null;try{var c=new Range(i,s)}catch(r){return null}r.forEach((function(r){if(c.test(r)){if(!a||l.compare(r)===-1){a=r;l=new SemVer(a,s)}}}));return a}i.minSatisfying=minSatisfying;function minSatisfying(r,i,s){var a=null;var l=null;try{var c=new Range(i,s)}catch(r){return null}r.forEach((function(r){if(c.test(r)){if(!a||l.compare(r)===1){a=r;l=new SemVer(a,s)}}}));return a}i.minVersion=minVersion;function minVersion(r,i){r=new Range(r,i);var s=new SemVer("0.0.0");if(r.test(s)){return s}s=new SemVer("0.0.0-0");if(r.test(s)){return s}s=null;for(var a=0;a":if(i.prerelease.length===0){i.patch++}else{i.prerelease.push(0)}i.raw=i.format();case"":case">=":if(!s||gt(s,i)){s=i}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+r.operator)}}))}if(s&&r.test(s)){return s}return null}i.validRange=validRange;function validRange(r,i){try{return new Range(r,i).range||"*"}catch(r){return null}}i.ltr=ltr;function ltr(r,i,s){return outside(r,i,"<",s)}i.gtr=gtr;function gtr(r,i,s){return outside(r,i,">",s)}i.outside=outside;function outside(r,i,s,a){r=new SemVer(r,a);i=new Range(i,a);var l,c,p,d,u;switch(s){case">":l=gt;c=lte;p=lt;d=">";u=">=";break;case"<":l=lt;c=gte;p=gt;d="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(r,i,a)){return false}for(var A=0;A=0.0.0")}g=g||r;E=E||r;if(l(r.semver,g.semver,a)){g=r}else if(p(r.semver,E.semver,a)){E=r}}));if(g.operator===d||g.operator===u){return false}if((!E.operator||E.operator===d)&&c(r,E.semver)){return false}else if(E.operator===u&&p(r,E.semver)){return false}}return true}i.prerelease=prerelease;function prerelease(r,i){var s=parse(r,i);return s&&s.prerelease.length?s.prerelease:null}i.intersects=intersects;function intersects(r,i,s){r=new Range(r,s);i=new Range(i,s);return r.intersects(i)}i.coerce=coerce;function coerce(r,i){if(r instanceof SemVer){return r}if(typeof r==="number"){r=String(r)}if(typeof r!=="string"){return null}i=i||{};var s=null;if(!i.rtl){s=r.match(u[h.COERCE])}else{var a;while((a=u[h.COERCERTL].exec(r))&&(!s||s.index+s[0].length!==r.length)){if(!s||a.index+a[0].length!==s.index+s[0].length){s=a}u[h.COERCERTL].lastIndex=a.index+a[1].length+a[2].length}u[h.COERCERTL].lastIndex=-1}if(s===null){return null}return parse(s[2]+"."+(s[3]||"0")+"."+(s[4]||"0"),i)}},52557:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s=new WeakMap;const a=new WeakMap;class AbortSignal{constructor(){this.onabort=null;s.set(this,[]);a.set(this,false)}get aborted(){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return a.get(this)}static get none(){return new AbortSignal}addEventListener(r,i){if(!s.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const a=s.get(this);a.push(i)}removeEventListener(r,i){if(!s.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const a=s.get(this);const l=a.indexOf(i);if(l>-1){a.splice(l,1)}}dispatchEvent(r){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(r){if(r.aborted){return}if(r.onabort){r.onabort.call(r)}const i=s.get(r);if(i){i.slice().forEach((i=>{i.call(r,{type:"abort"})}))}a.set(r,true)}class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}class AbortController{constructor(r){this._signal=new AbortSignal;if(!r){return}if(!Array.isArray(r)){r=arguments}for(const i of r){if(i.aborted){this.abort()}else{i.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(r){const i=new AbortSignal;const s=setTimeout(abortSignal,r,i);if(typeof s.unref==="function"){s.unref()}return i}}i.AbortController=AbortController;i.AbortError=AbortError;i.AbortSignal=AbortSignal},39645:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(51333);class AzureKeyCredential{get key(){return this._key}constructor(r){if(!r){throw new Error("key must be a non-empty string")}this._key=r}update(r){this._key=r}}class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(r,i){if(!r||!i){throw new TypeError("name and key must be non-empty strings")}this._name=r;this._key=i}update(r,i){if(!r||!i){throw new TypeError("newName and newKey must be non-empty strings")}this._name=r;this._key=i}}function isNamedKeyCredential(r){return a.isObjectWithProperties(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}class AzureSASCredential{get signature(){return this._signature}constructor(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}update(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}}function isSASCredential(r){return a.isObjectWithProperties(r,["signature"])&&typeof r.signature==="string"}function isTokenCredential(r){const i=r;return i&&typeof i.getToken==="function"&&(i.signRequest===undefined||i.getToken.length>0)}i.AzureKeyCredential=AzureKeyCredential;i.AzureNamedKeyCredential=AzureNamedKeyCredential;i.AzureSASCredential=AzureSASCredential;i.isNamedKeyCredential=isNamedKeyCredential;i.isSASCredential=isSASCredential;i.isTokenCredential=isTokenCredential},24607:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(43415);var l=s(73837);var c=s(4351);var p=s(66189);var d=s(51333);var u=s(3233);var A=s(39645);var h=s(22037);var g=s(13685);var E=s(95687);var y=s(52557);var b=s(74294);var C=s(12781);var v=s(64334);var w=s(80467);var I=s(94175);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(s){if(s!=="default"){var a=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(i,s,a.get?a:{enumerable:true,get:function(){return r[s]}})}}))}i["default"]=r;return Object.freeze(i)}var B=_interopNamespace(p);var S=_interopNamespace(h);var Q=_interopNamespace(g);var x=_interopNamespace(E);var R=_interopNamespace(b);var T=_interopDefaultLegacy(v);var N=_interopDefaultLegacy(w);function getHeaderKey(r){return r.toLowerCase()}function isHttpHeadersLike(r){if(r&&typeof r==="object"){const i=r;if(typeof i.rawHeaders==="function"&&typeof i.clone==="function"&&typeof i.get==="function"&&typeof i.set==="function"&&typeof i.contains==="function"&&typeof i.remove==="function"&&typeof i.headersArray==="function"&&typeof i.headerValues==="function"&&typeof i.headerNames==="function"&&typeof i.toJson==="function"){return true}}return false}class HttpHeaders{constructor(r){this._headersMap={};if(r){for(const i in r){this.set(i,r[i])}}}set(r,i){this._headersMap[getHeaderKey(r)]={name:r,value:i.toString().trim()}}get(r){const i=this._headersMap[getHeaderKey(r)];return!i?undefined:i.value}contains(r){return!!this._headersMap[getHeaderKey(r)]}remove(r){const i=this.contains(r);delete this._headersMap[getHeaderKey(r)];return i}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const r=[];for(const i in this._headersMap){r.push(this._headersMap[i])}return r}headerNames(){const r=[];const i=this.headersArray();for(let s=0;s{s=s.then(r)}));return s}function promiseToCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return i=>{r.then((r=>i(undefined,r))).catch((r=>{i(r)}))}}function promiseToServiceCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return i=>{r.then((r=>process.nextTick(i,undefined,r.parsedBody,r.request,r))).catch((r=>{process.nextTick(i,r)}))}}function prepareXMLRootList(r,i,s,a){if(!Array.isArray(r)){r=[r]}if(!s||!a){return{[i]:r}}const l={[i]:r};l[k]={[s]:a};return l}function applyMixins(r,i){const s=r;i.forEach((r=>{Object.getOwnPropertyNames(r.prototype).forEach((i=>{s.prototype[i]=r.prototype[i]}))}))}const P=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(r){return P.test(r)}function replaceAll(r,i,s){return!r||!i?r:r.split(i).join(s||"")}function isPrimitiveType(r){return typeof r!=="object"&&typeof r!=="function"||r===null}function getEnvironmentValue(r){if(process.env[r]){return process.env[r]}else if(process.env[r.toLowerCase()]){return process.env[r.toLowerCase()]}return undefined}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}class Serializer{constructor(r={},i){this.modelMappers=r;this.isXML=i}validateConstraints(r,i,s){const failValidation=(r,a)=>{throw new Error(`"${s}" with value "${i}" should satisfy the constraint "${r}": ${a}.`)};if(r.constraints&&i!=undefined){const s=i;const{ExclusiveMaximum:a,ExclusiveMinimum:l,InclusiveMaximum:c,InclusiveMinimum:p,MaxItems:d,MaxLength:u,MinItems:A,MinLength:h,MultipleOf:g,Pattern:E,UniqueItems:y}=r.constraints;if(a!=undefined&&s>=a){failValidation("ExclusiveMaximum",a)}if(l!=undefined&&s<=l){failValidation("ExclusiveMinimum",l)}if(c!=undefined&&s>c){failValidation("InclusiveMaximum",c)}if(p!=undefined&&sd){failValidation("MaxItems",d)}if(u!=undefined&&b.length>u){failValidation("MaxLength",u)}if(A!=undefined&&b.lengths.indexOf(r)!==i))){failValidation("UniqueItems",y)}}}serialize(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:D};let u={};const A=r.type.name;if(!s){s=r.serializedName}if(A.match(/^Sequence$/i)!==null){u=[]}if(r.isConstant){i=r.defaultValue}const{required:h,nullable:g}=r;if(h&&g&&i===undefined){throw new Error(`${s} cannot be undefined.`)}if(h&&!g&&i==undefined){throw new Error(`${s} cannot be null or undefined.`)}if(!h&&g===false&&i===null){throw new Error(`${s} cannot be null.`)}if(i==undefined){u=i}else{if(A.match(/^any$/i)!==null){u=i}else if(A.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){u=serializeBasicTypes(A,s,i)}else if(A.match(/^Enum$/i)!==null){const a=r;u=serializeEnumType(s,a.type.allowedValues,i)}else if(A.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){u=serializeDateTypes(A,i,s)}else if(A.match(/^ByteArray$/i)!==null){u=serializeByteArrayType(s,i)}else if(A.match(/^Base64Url$/i)!==null){u=serializeBase64UrlType(s,i)}else if(A.match(/^Sequence$/i)!==null){u=serializeSequenceType(this,r,i,s,Boolean(this.isXML),d)}else if(A.match(/^Dictionary$/i)!==null){u=serializeDictionaryType(this,r,i,s,Boolean(this.isXML),d)}else if(A.match(/^Composite$/i)!==null){u=serializeCompositeType(this,r,i,s,Boolean(this.isXML),d)}}return u}deserialize(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:D};if(i==undefined){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){i=[]}if(r.defaultValue!==undefined){i=r.defaultValue}return i}let u;const A=r.type.name;if(!s){s=r.serializedName}if(A.match(/^Composite$/i)!==null){u=deserializeCompositeType(this,r,i,s,d)}else{if(this.isXML){const r=d.xmlCharKey;const s=i;if(s[k]!=undefined&&s[r]!=undefined){i=s[r]}}if(A.match(/^Number$/i)!==null){u=parseFloat(i);if(isNaN(u)){u=i}}else if(A.match(/^Boolean$/i)!==null){if(i==="true"){u=true}else if(i==="false"){u=false}else{u=i}}else if(A.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){u=i}else if(A.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){u=new Date(i)}else if(A.match(/^UnixTime$/i)!==null){u=unixTimeToDate(i)}else if(A.match(/^ByteArray$/i)!==null){u=decodeString(i)}else if(A.match(/^Base64Url$/i)!==null){u=base64UrlToByteArray(i)}else if(A.match(/^Sequence$/i)!==null){u=deserializeSequenceType(this,r,i,s,d)}else if(A.match(/^Dictionary$/i)!==null){u=deserializeDictionaryType(this,r,i,s,d)}}if(r.isConstant){u=r.defaultValue}return u}}function trimEnd(r,i){let s=r.length;while(s-1>=0&&r[s-1]===i){--s}return r.substr(0,s)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const i=encodeByteArray(r);return trimEnd(i,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const i=[];let s="";if(r){const a=r.split(".");for(const r of a){if(r.charAt(r.length-1)==="\\"){s+=r.substr(0,r.length-1)+"."}else{s+=r;i.push(s);s=""}}}return i}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,i,s){if(s!==null&&s!==undefined){if(r.match(/^Number$/i)!==null){if(typeof s!=="number"){throw new Error(`${i} with value ${s} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof s.valueOf()!=="string"){throw new Error(`${i} with value "${s}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof s.valueOf()==="string"&&isValidUuid(s))){throw new Error(`${i} with value "${s}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof s!=="boolean"){throw new Error(`${i} with value ${s} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof s;if(r!=="string"&&r!=="function"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s)&&!((typeof Blob==="function"||typeof Blob==="object")&&s instanceof Blob)){throw new Error(`${i} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return s}function serializeEnumType(r,i,s){if(!i){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const a=i.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===s.toLowerCase()}return r===s}));if(!a){throw new Error(`${s} is not a valid value for ${r}. The valid values are: ${JSON.stringify(i)}.`)}return s}function serializeByteArrayType(r,i){let s="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}s=encodeByteArray(i)}return s}function serializeBase64UrlType(r,i){let s="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}s=bufferToBase64Url(i)||""}return s}function serializeDateTypes(r,i,s){if(i!=undefined){if(r.match(/^Date$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString().substring(0,10):new Date(i).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString():new Date(i).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123 format.`)}i=i instanceof Date?i.toUTCString():new Date(i).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}i=dateToUnixTime(i)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(i)){throw new Error(`${s} must be a string in ISO 8601 format. Instead was "${i}".`)}}}return i}function serializeSequenceType(r,i,s,a,l,c){if(!Array.isArray(s)){throw new Error(`${a} must be of type Array.`)}const p=i.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}const d=[];for(let i=0;ir!==l));if(d){p[l]=r.serialize(u,s[l],a+'["'+l+'"]',c)}}}return p}return s}function getXmlObjectValue(r,i,s,a){if(!s||!r.xmlNamespace){return i}const l=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const c={[l]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(i[k]){return i}else{const r=Object.assign({},i);r[k]=c;return r}}const p={};p[a.xmlCharKey]=i;p[k]=c;return p}function isSpecialXmlProperty(r,i){return[k,i.xmlCharKey].includes(r)}function deserializeCompositeType(r,i,s,a,l){var c,p;const d=(c=l.xmlCharKey)!==null&&c!==void 0?c:D;if(getPolymorphicDiscriminatorRecursively(r,i)){i=getPolymorphicMapper(r,i,s,"serializedName")}const u=resolveModelProperties(r,i,a);let A={};const h=[];for(const c of Object.keys(u)){const g=u[c];const E=splitSerializeName(u[c].serializedName);h.push(E[0]);const{serializedName:y,xmlName:b,xmlElementName:C}=g;let v=a;if(y!==""&&y!==undefined){v=a+"."+y}const w=g.headerCollectionPrefix;if(w){const i={};for(const a of Object.keys(s)){if(a.startsWith(w)){i[a.substring(w.length)]=r.deserialize(g.type.value,s[a],v,l)}h.push(a)}A[c]=i}else if(r.isXML){if(g.xmlIsAttribute&&s[k]){A[c]=r.deserialize(g,s[k][b],v,l)}else if(g.xmlIsMsText){if(s[d]!==undefined){A[c]=s[d]}else if(typeof s==="string"){A[c]=s}}else{const i=C||b||y;if(g.xmlIsWrapped){const i=s[b];const a=(p=i===null||i===void 0?void 0:i[C])!==null&&p!==void 0?p:[];A[c]=r.deserialize(g,a,v,l);h.push(b)}else{const a=s[i];A[c]=r.deserialize(g,a,v,l);h.push(i)}}}else{let a;let p=s;for(const r of E){if(!p)break;p=p[r]}a=p;const d=i.type.polymorphicDiscriminator;if(d&&c===d.clientName&&a==undefined){a=i.serializedName}let h;if(Array.isArray(s[c])&&u[c].serializedName===""){a=s[c];const i=r.deserialize(g,a,v,l);for(const[r,s]of Object.entries(A)){if(!Object.prototype.hasOwnProperty.call(i,r)){i[r]=s}}A=i}else if(a!==undefined||g.defaultValue!==undefined){h=r.deserialize(g,a,v,l);A[c]=h}}}const g=i.type.additionalProperties;if(g){const isAdditionalProperty=r=>{for(const i in u){const s=splitSerializeName(u[i].serializedName);if(s[0]===r){return false}}return true};for(const i in s){if(isAdditionalProperty(i)){A[i]=r.deserialize(g,s[i],a+'["'+i+'"]',l)}}}else if(s){for(const r of Object.keys(s)){if(A[r]===undefined&&!h.includes(r)&&!isSpecialXmlProperty(r,l)){A[r]=s[r]}}}return A}function deserializeDictionaryType(r,i,s,a,l){const c=i.type.value;if(!c||typeof c!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){const i={};for(const p of Object.keys(s)){i[p]=r.deserialize(c,s[p],a,l)}return i}return s}function deserializeSequenceType(r,i,s,a,l){const c=i.type.element;if(!c||typeof c!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){if(!Array.isArray(s)){s=[s]}const i=[];for(let p=0;p0}keys(){return Object.keys(this._rawQuery)}set(r,i){const s=i;if(r){if(s!==undefined&&s!==null){const i=Array.isArray(s)?s:s.toString();this._rawQuery[r]=i}else{delete this._rawQuery[r]}}}get(r){return r?this._rawQuery[r]:undefined}toString(){let r="";for(const i in this._rawQuery){if(r){r+="&"}const s=this._rawQuery[i];if(Array.isArray(s)){const a=[];for(const r of s){a.push(`${i}=${r}`)}r+=a.join("&")}else{r+=`${i}=${s}`}}return r}static parse(r){const i=new URLQuery;if(r){if(r.startsWith("?")){r=r.substring(1)}let s="ParameterName";let a="";let l="";for(let c=0;cisAlphaNumericCharacter(r)))}function readUntilCharacter(r,...i){return readWhile(r,(r=>i.indexOf(r)===-1))}function nextScheme(r){const i=readWhileLetterOrDigit(r);r._currentToken=URLToken.scheme(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="HOST"}}function nextSchemeOrHost(r){const i=readUntilCharacter(r,":","/","?");if(!hasCurrentCharacter(r)){r._currentToken=URLToken.host(i);r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){if(peekCharacters(r,3)==="://"){r._currentToken=URLToken.scheme(i);r._currentState="HOST"}else{r._currentToken=URLToken.host(i);r._currentState="PORT"}}else{r._currentToken=URLToken.host(i);if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}}function nextHost(r){if(peekCharacters(r,3)==="://"){nextCharacter(r,3)}const i=readUntilCharacter(r,":","/","?");r._currentToken=URLToken.host(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){r._currentState="PORT"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPort(r){if(getCurrentCharacter(r)===":"){nextCharacter(r)}const i=readUntilCharacter(r,"/","?");r._currentToken=URLToken.port(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPath(r){const i=readUntilCharacter(r,"?");r._currentToken=URLToken.path(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="QUERY"}}function nextQuery(r){if(getCurrentCharacter(r)==="?"){nextCharacter(r)}const i=readRemaining(r);r._currentToken=URLToken.query(i);r._currentState="DONE"}function createProxyAgent(r,i,s){const a=URLBuilder.parse(i.host).getHost();if(!a){throw new Error("Expecting a non-empty host in proxy settings.")}if(!isValidPort(i.port)){throw new Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.")}const l={proxy:{host:a,port:i.port,headers:s&&s.rawHeaders()||{}}};if(i.username&&i.password){l.proxy.proxyAuth=`${i.username}:${i.password}`}else if(i.username){l.proxy.proxyAuth=`${i.username}`}const c=isUrlHttps(r);const p=isUrlHttps(i.host);const d={isHttps:c,agent:createTunnel(c,p,l)};return d}function isUrlHttps(r){const i=URLBuilder.parse(r).getScheme()||"";return i.toLowerCase()==="https"}function createTunnel(r,i,s){if(r&&i){return R.httpsOverHttps(s)}else if(r&&!i){return R.httpsOverHttp(s)}else if(!r&&i){return R.httpOverHttps(s)}else{return R.httpOverHttp(s)}}function isValidPort(r){return 0<=r&&r<=65535}const M="REDACTED";const U=["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"];const G=["api-version"];class Sanitizer{constructor({allowedHeaderNames:r=[],allowedQueryParameters:i=[]}={}){r=Array.isArray(r)?U.concat(r):U;i=Array.isArray(i)?G.concat(i):G;this.allowedHeaderNames=new Set(r.map((r=>r.toLowerCase())));this.allowedQueryParameters=new Set(i.map((r=>r.toLowerCase())))}sanitize(r){const i=new Set;return JSON.stringify(r,((r,s)=>{if(s instanceof Error){return Object.assign(Object.assign({},s),{name:s.name,message:s.message})}if(r==="_headersMap"){return this.sanitizeHeaders(s)}else if(r==="url"){return this.sanitizeUrl(s)}else if(r==="query"){return this.sanitizeQuery(s)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(s)||isObject(s)){if(i.has(s)){return"[Circular]"}i.add(s)}return s}),2)}sanitizeHeaders(r){return this.sanitizeObject(r,this.allowedHeaderNames,((r,i)=>r[i].value))}sanitizeQuery(r){return this.sanitizeObject(r,this.allowedQueryParameters,((r,i)=>r[i]))}sanitizeObject(r,i,s){if(typeof r!=="object"||r===null){return r}const a={};for(const l of Object.keys(r)){if(i.has(l.toLowerCase())){a[l]=s(r,l)}else{a[l]=M}}return a}sanitizeUrl(r){if(typeof r!=="string"||r===null){return r}const i=URLBuilder.parse(r);const s=i.getQuery();if(!s){return r}const a=URLQuery.parse(s);for(const r of a.keys()){if(!this.allowedQueryParameters.has(r.toLowerCase())){a.set(r,M)}}i.setQuery(a.toString());return i.toString()}}const j=l.inspect.custom;const q=new Sanitizer;class RestError extends Error{constructor(r,i,s,a,l){super(r);this.name="RestError";this.code=i;this.statusCode=s;this.request=a;this.response=l;Object.setPrototypeOf(this,RestError.prototype)}[j](){return`RestError: ${this.message} \n ${q.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const H=u.createClientLogger("core-http");function getCachedAgent(r,i){return r?i.httpsAgent:i.httpAgent}class ReportTransform extends C.Transform{constructor(r){super();this.progressCallback=r;this.loadedBytes=0}_transform(r,i,s){this.push(r);this.loadedBytes+=r.length;this.progressCallback({loadedBytes:this.loadedBytes});s(undefined)}}function isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r,i){return new Promise((s=>{r.once("close",(()=>{i===null||i===void 0?void 0:i.abort();s()}));r.once("end",s);r.once("error",s)}))}function parseHeaders(r){const i=new HttpHeaders;r.forEach(((r,s)=>{i.set(s,r)}));return i}class NodeFetchHttpClient{constructor(){this.proxyAgentMap=new Map;this.keepAliveAgents={}}async sendRequest(r){var i;if(!r&&typeof r!=="object"){throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.")}const s=new y.AbortController;let a;if(r.abortSignal){if(r.abortSignal.aborted){throw new y.AbortError("The operation was aborted.")}a=r=>{if(r.type==="abort"){s.abort()}};r.abortSignal.addEventListener("abort",a)}if(r.timeout){setTimeout((()=>{s.abort()}),r.timeout)}if(r.formData){const i=r.formData;const s=new T["default"];const appendFormValue=(r,i)=>{if(typeof i==="function"){i=i()}if(i&&Object.prototype.hasOwnProperty.call(i,"value")&&Object.prototype.hasOwnProperty.call(i,"options")){s.append(r,i.value,i.options)}else{s.append(r,i)}};for(const r of Object.keys(i)){const s=i[r];if(Array.isArray(s)){for(let i=0;i{var i;(i=r.abortSignal)===null||i===void 0?void 0:i.removeEventListener("abort",a);return})).catch((r=>{H.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}getOrCreateAgent(r){var i;const s=isUrlHttps(r.url);if(r.proxySettings){const{host:a,port:l,username:c,password:p}=r.proxySettings;const d=`${a}:${l}:${c}:${p}`;const u=(i=this.proxyAgentMap.get(d))!==null&&i!==void 0?i:{};let A=getCachedAgent(s,u);if(A){return A}const h=createProxyAgent(r.url,r.proxySettings,r.headers);A=h.agent;if(h.isHttps){u.httpsAgent=h.agent}else{u.httpAgent=h.agent}this.proxyAgentMap.set(d,u);return A}else if(r.keepAlive){let i=getCachedAgent(s,this.keepAliveAgents);if(i){return i}const a={keepAlive:r.keepAlive};if(s){i=this.keepAliveAgents.httpsAgent=new x.Agent(a)}else{i=this.keepAliveAgents.httpAgent=new Q.Agent(a)}return i}else{return s?x.globalAgent:Q.globalAgent}}async fetch(r,i){return N["default"](r,i)}async prepareRequest(r){const i={};i.agent=this.getOrCreateAgent(r);i.compress=r.decompressResponse;return i}async processRequest(r){}}i.HttpPipelineLogLevel=void 0;(function(r){r[r["OFF"]=0]="OFF";r[r["ERROR"]=1]="ERROR";r[r["WARNING"]=2]="WARNING";r[r["INFO"]=3]="INFO"})(i.HttpPipelineLogLevel||(i.HttpPipelineLogLevel={}));function operationOptionsToRequestOptionsBase(r){const{requestOptions:i,tracingOptions:s}=r,a=c.__rest(r,["requestOptions","tracingOptions"]);let l=a;if(i){l=Object.assign(Object.assign({},l),i)}if(s){l.tracingContext=s.tracingContext;l.spanOptions=s===null||s===void 0?void 0:s.spanOptions}return l}class BaseRequestPolicy{constructor(r,i){this._nextPolicy=r;this._options=i}shouldLog(r){return this._options.shouldLog(r)}log(r,i){this._options.log(r,i)}}class RequestPolicyOptions{constructor(r){this._logger=r}shouldLog(r){return!!this._logger&&r!==i.HttpPipelineLogLevel.OFF&&r<=this._logger.minimumLogLevel}log(r,i){if(this._logger&&this.shouldLog(r)){this._logger.log(r,i)}}}const V={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:k,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:undefined,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:undefined,attrValueProcessors:undefined,tagNameProcessors:undefined,valueProcessors:undefined,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:undefined,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false};const z=Object.assign({},V);z.explicitArray=false;const Y=Object.assign({},V);Y.explicitArray=false;Y.renderOpts={pretty:false};function stringifyXML(r,i={}){var s;Y.rootName=i.rootName;Y.charkey=(s=i.xmlCharKey)!==null&&s!==void 0?s:D;const a=new B.Builder(Y);return a.buildObject(r)}function parseXML(r,i={}){var s;z.explicitRoot=!!i.includeRoot;z.charkey=(s=i.xmlCharKey)!==null&&s!==void 0?s:D;const a=new B.Parser(z);return new Promise(((i,s)=>{if(!r){s(new Error("Document is empty"))}else{a.parseString(r,((r,a)=>{if(r){s(r)}else{i(a)}}))}}))}function deserializationPolicy(r,i){return{create:(s,a)=>new DeserializationPolicy(s,a,r,i)}}const W=["application/json","text/json"];const J=["application/xml","application/atom+xml"];const X={expectedContentTypes:{json:W,xml:J}};class DeserializationPolicy extends BaseRequestPolicy{constructor(r,i,s,a={}){var l;super(r,i);this.jsonContentTypes=s&&s.json||W;this.xmlContentTypes=s&&s.xml||J;this.xmlCharKey=(l=a.xmlCharKey)!==null&&l!==void 0?l:D}async sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>deserializeResponseBody(this.jsonContentTypes,this.xmlContentTypes,r,{xmlCharKey:this.xmlCharKey})))}}function getOperationResponse(r){let i;const s=r.request;const a=s.operationSpec;if(a){const l=s.operationResponseGetter;if(!l){i=a.responses[r.status]}else{i=l(a,r)}}return i}function shouldDeserializeResponse(r){const i=r.request.shouldDeserialize;let s;if(i===undefined){s=true}else if(typeof i==="boolean"){s=i}else{s=i(r)}return s}function deserializeResponseBody(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:D};return parse(r,i,s,d).then((r=>{if(!shouldDeserializeResponse(r)){return r}const i=r.request.operationSpec;if(!i||!i.responses){return r}const l=getOperationResponse(r);const{error:c,shouldReturnResponse:p}=handleErrorResponse(r,i,l);if(c){throw c}else if(p){return r}if(l){if(l.bodyMapper){let s=r.parsedBody;if(i.isXML&&l.bodyMapper.type.name===L.Sequence){s=typeof s==="object"?s[l.bodyMapper.xmlElementName]:[]}try{r.parsedBody=i.serializer.deserialize(l.bodyMapper,s,"operationRes.parsedBody",a)}catch(i){const s=new RestError(`Error ${i} occurred in deserializing the responseBody - ${r.bodyAsText}`,undefined,r.status,r.request,r);throw s}}else if(i.httpMethod==="HEAD"){r.parsedBody=s.status>=200&&s.status<300}if(l.headersMapper){r.parsedHeaders=i.serializer.deserialize(l.headersMapper,r.headers.toJson(),"operationRes.parsedHeaders",a)}}return r}))}function isOperationSpecEmpty(r){const i=Object.keys(r.responses);return i.length===0||i.length===1&&i[0]==="default"}function handleErrorResponse(r,i,s){var a;const l=200<=r.status&&r.status<300;const c=isOperationSpecEmpty(i)?l:!!s;if(c){if(s){if(!s.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const p=s!==null&&s!==void 0?s:i.responses.default;const d=((a=r.request.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(r.status))||r.request.streamResponseBody;const u=d?`Unexpected status code: ${r.status}`:r.bodyAsText;const A=new RestError(u,undefined,r.status,r.request,r);if(!p){throw A}const h=p.bodyMapper;const g=p.headersMapper;try{if(r.parsedBody){const s=r.parsedBody;let a;if(h){let r=s;if(i.isXML&&h.type.name===L.Sequence){r=typeof s==="object"?s[h.xmlElementName]:[]}a=i.serializer.deserialize(h,r,"error.response.parsedBody")}const l=s.error||a||s;A.code=l.code;if(l.message){A.message=l.message}if(h){A.response.parsedBody=a}}if(r.headers&&g){A.response.parsedHeaders=i.serializer.deserialize(g,r.headers.toJson(),"operationRes.parsedHeaders")}}catch(i){A.message=`Error "${i.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:A,shouldReturnResponse:false}}function parse(r,i,s,a){var l;const errorHandler=r=>{const i=`Error "${r}" occurred while parsing the response body - ${s.bodyAsText}.`;const a=r.code||RestError.PARSE_ERROR;const l=new RestError(i,a,s.status,s.request,s);return Promise.reject(l)};const c=((l=s.request.streamResponseStatusCodes)===null||l===void 0?void 0:l.has(s.status))||s.request.streamResponseBody;if(!c&&s.bodyAsText){const l=s.bodyAsText;const c=s.headers.get("Content-Type")||"";const p=!c?[]:c.split(";").map((r=>r.toLowerCase()));if(p.length===0||p.some((i=>r.indexOf(i)!==-1))){return new Promise((r=>{s.parsedBody=JSON.parse(l);r(s)})).catch(errorHandler)}else if(p.some((r=>i.indexOf(r)!==-1))){return parseXML(l,a).then((r=>{s.parsedBody=r;return s})).catch(errorHandler)}}return Promise.resolve(s)}const $={enable:true};function keepAlivePolicy(r){return{create:(i,s)=>new KeepAlivePolicy(i,s,r||$)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.keepAliveOptions=s}async sendRequest(r){r.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(r)}}const K=["GET","HEAD"];const Z={handleRedirects:true,maxRetries:20};function redirectPolicy(r=20){return{create:(i,s)=>new RedirectPolicy(i,s,r)}}class RedirectPolicy extends BaseRequestPolicy{constructor(r,i,s=20){super(r,i);this.maxRetries=s}sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>handleRedirect(this,r,0)))}}function handleRedirect(r,i,s){const{request:a,status:l}=i;const c=i.headers.get("location");if(c&&(l===300||l===301&&K.includes(a.method)||l===302&&K.includes(a.method)||l===303&&a.method==="POST"||l===307)&&(!r.maxRetries||shandleRedirect(r,i,s+1)))}return Promise.resolve(i)}const ee=3;const te=1e3*30;const re=1e3*90;const ie=1e3*3;function isNumber(r){return typeof r==="number"}function shouldRetry(r,i,s,a,l){if(!i(a,l)){return false}return s.retryCountnew ExponentialRetryPolicy(a,l,r,i,s)}}i.RetryMode=void 0;(function(r){r[r["Exponential"]=0]="Exponential"})(i.RetryMode||(i.RetryMode={}));const ne={maxRetries:ee,retryDelayInMs:te,maxRetryDelayInMs:re};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(r,i,s,a,l){super(r,i);this.retryCount=isNumber(s)?s:ee;this.retryInterval=isNumber(a)?a:te;this.maxRetryInterval=isNumber(l)?l:re}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>retry$1(this,r,i))).catch((i=>retry$1(this,r,i.response,undefined,i)))}}async function retry$1(r,i,s,a,l){function shouldPolicyRetry(r){const i=r===null||r===void 0?void 0:r.status;if(i===503&&(s===null||s===void 0?void 0:s.headers.get(_.HeaderConstants.RETRY_AFTER))){return false}if(i===undefined||i<500&&i!==408||i===501||i===505){return false}return true}a=updateRetryData({retryInterval:r.retryInterval,minRetryInterval:0,maxRetryInterval:r.maxRetryInterval},a,l);const c=i.abortSignal&&i.abortSignal.aborted;if(!c&&shouldRetry(r.retryCount,shouldPolicyRetry,a,s)){H.info(`Retrying request in ${a.retryInterval}`);try{await d.delay(a.retryInterval);const s=await r._nextPolicy.sendRequest(i.clone());return retry$1(r,i,s,a)}catch(l){return retry$1(r,i,s,a,l)}}else if(c||l||!s){const r=a.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,s&&s.status,s&&s.request,s);throw r}else{return s}}function logPolicy(r={}){return{create:(i,s)=>new LogPolicy(i,s,r)}}class LogPolicy extends BaseRequestPolicy{constructor(r,i,{logger:s=H.info,allowedHeaderNames:a=[],allowedQueryParameters:l=[]}={}){super(r,i);this.logger=s;this.sanitizer=new Sanitizer({allowedHeaderNames:a,allowedQueryParameters:l})}get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(r){this.sanitizer.allowedHeaderNames=r}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(r){this.sanitizer.allowedQueryParameters=r}sendRequest(r){if(!this.logger.enabled)return this._nextPolicy.sendRequest(r);this.logRequest(r);return this._nextPolicy.sendRequest(r).then((r=>this.logResponse(r)))}logRequest(r){this.logger(`Request: ${this.sanitizer.sanitize(r)}`)}logResponse(r){this.logger(`Response status code: ${r.status}`);this.logger(`Headers: ${this.sanitizer.sanitize(r.headers)}`);return r}}function getPathStringFromParameter(r){return getPathStringFromParameterPath(r.parameterPath,r.mapper)}function getPathStringFromParameterPath(r,i){let s;if(typeof r==="string"){s=r}else if(Array.isArray(r)){s=r.join(".")}else{s=i.serializedName}return s}function getStreamResponseStatusCodes(r){const i=new Set;for(const s in r.responses){const a=r.responses[s];if(a.bodyMapper&&a.bodyMapper.type.name===L.Stream){i.add(Number(s))}}return i}function getDefaultUserAgentKey(){return _.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const r={key:"Node",value:process.version};const i={key:"OS",value:`(${S.arch()}-${S.type()}-${S.release()})`};return[r,i]}function getRuntimeInfo(){const r={key:"core-http",value:_.coreHttpVersion};return[r]}function getUserAgentString(r,i=" ",s="/"){return r.map((r=>{const i=r.value?`${s}${r.value}`:"";return`${r.key}${i}`})).join(i)}const se=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const r=getRuntimeInfo();const i=getPlatformSpecificData();const s=getUserAgentString(r.concat(i));return s}function userAgentPolicy(r){const i=!r||r.key===undefined||r.key===null?getDefaultUserAgentKey():r.key;const s=!r||r.value===undefined||r.value===null?getDefaultUserAgentValue():r.value;return{create:(r,a)=>new UserAgentPolicy(r,a,i,s)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(r,i,s,a){super(r,i);this._nextPolicy=r;this._options=i;this.headerKey=s;this.headerValue=a}sendRequest(r){this.addUserAgentHeader(r);return this._nextPolicy.sendRequest(r)}addUserAgentHeader(r){if(!r.headers){r.headers=new HttpHeaders}if(!r.headers.get(this.headerKey)&&this.headerValue){r.headers.set(this.headerKey,this.headerValue)}}}i.QueryCollectionFormat=void 0;(function(r){r["Csv"]=",";r["Ssv"]=" ";r["Tsv"]="\t";r["Pipes"]="|";r["Multi"]="Multi"})(i.QueryCollectionFormat||(i.QueryCollectionFormat={}));const ae={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,s){async function tryGetAccessToken(){if(Date.now()r.getToken(i,s);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;l=r;return l})).catch((r=>{a=null;l=null;throw r}))}return a}return async r=>{if(p.mustRefresh)return refresh(r);if(p.shouldRefresh){refresh(r)}return l}}function bearerTokenAuthenticationPolicy(r,i){const s=createTokenCycler(r,i);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:i}=await s({abortSignal:r.abortSignal,tracingOptions:{tracingContext:r.tracingContext}});r.headers.set(_.HeaderConstants.AUTHORIZATION,`Bearer ${i}`);return this._nextPolicy.sendRequest(r)}}return{create:(r,i)=>new BearerTokenAuthenticationPolicy(r,i)}}function disableResponseDecompressionPolicy(){return{create:(r,i)=>new DisableResponseDecompressionPolicy(r,i)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){r.decompressResponse=false;return this._nextPolicy.sendRequest(r)}}function generateClientRequestIdPolicy(r="x-ms-client-request-id"){return{create:(i,s)=>new GenerateClientRequestIdPolicy(i,s,r)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this._requestIdHeaderName=s}sendRequest(r){if(!r.headers.contains(this._requestIdHeaderName)){r.headers.set(this._requestIdHeaderName,r.requestId)}return this._nextPolicy.sendRequest(r)}}let oe;function getCachedDefaultHttpClient(){if(!oe){oe=new NodeFetchHttpClient}return oe}function ndJsonPolicy(){return{create:(r,i)=>new NdJsonPolicy(r,i)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(typeof r.body==="string"&&r.body.startsWith("[")){const i=JSON.parse(r.body);if(Array.isArray(i)){r.body=i.map((r=>JSON.stringify(r)+"\n")).join("")}}return this._nextPolicy.sendRequest(r)}}const le=[];let ce=false;const pe=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(_.HTTPS_PROXY);const i=getEnvironmentValue(_.ALL_PROXY);const s=getEnvironmentValue(_.HTTP_PROXY);return r||i||s}function isBypassed(r,i,s){if(i.length===0){return false}const a=URLBuilder.parse(r).getHost();if(s===null||s===void 0?void 0:s.has(a)){return s.get(a)}let l=false;for(const r of i){if(r[0]==="."){if(a.endsWith(r)){l=true}else{if(a.length===r.length-1&&a===r.slice(1)){l=true}}}else{if(a===r){l=true}}}s===null||s===void 0?void 0:s.set(a,l);return l}function loadNoProxy(){const r=getEnvironmentValue(_.NO_PROXY);ce=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const{username:i,password:s,urlWithoutAuth:a}=extractAuthFromUrl(r);const l=URLBuilder.parse(a);const c=l.getScheme()?l.getScheme()+"://":"";return{host:c+l.getHost(),port:Number.parseInt(l.getPort()||"80"),username:i,password:s}}function proxyPolicy(r,i){if(!r){r=getDefaultProxySettings()}if(!ce){le.push(...loadNoProxy())}return{create:(s,a)=>new ProxyPolicy(s,a,r,i===null||i===void 0?void 0:i.customNoProxyList)}}function extractAuthFromUrl(r){const i=r.indexOf("@");if(i===-1){return{urlWithoutAuth:r}}const s=r.indexOf("://");const a=s!==-1?s+3:0;const l=r.substring(a,i);const c=l.indexOf(":");const p=c!==-1;const d=p?l.substring(0,c):l;const u=p?l.substring(c+1):undefined;const A=r.substring(0,a)+r.substring(i+1);return{username:d,password:u,urlWithoutAuth:A}}class ProxyPolicy extends BaseRequestPolicy{constructor(r,i,s,a){super(r,i);this.proxySettings=s;this.customNoProxyList=a}sendRequest(r){var i;if(!r.proxySettings&&!isBypassed(r.url,(i=this.customNoProxyList)!==null&&i!==void 0?i:le,this.customNoProxyList?undefined:pe)){r.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(r)}}function rpRegistrationPolicy(r=30){return{create:(i,s)=>new RPRegistrationPolicy(i,s,r)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(r,i,s=30){super(r,i);this._retryTimeout=s}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>registerIfNeeded(this,r,i)))}}function registerIfNeeded(r,i,s){if(s.status===409){const a=checkRPNotRegisteredError(s.bodyAsText);if(a){const l=extractSubscriptionUrl(i.url);return registerRP(r,l,a,i).catch((()=>false)).then((a=>{if(a){i.headers.set("x-ms-client-request-id",generateUuid());return r._nextPolicy.sendRequest(i.clone())}return s}))}}return Promise.resolve(s)}function getRequestEssentials(r,i=false){const s=r.clone();if(i){s.url=r.url}s.headers.set("x-ms-client-request-id",generateUuid());s.headers.set("Content-Type","application/json; charset=utf-8");return s}function checkRPNotRegisteredError(r){let i,s;if(r){try{s=JSON.parse(r)}catch(r){}if(s&&s.error&&s.error.message&&s.error.code&&s.error.code==="MissingSubscriptionRegistration"){const r=s.error.message.match(/.*'(.*)'/i);if(r){i=r.pop()}}}return i}function extractSubscriptionUrl(r){let i;const s=r.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(s&&s[0]){i=s[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${r}.`)}return i}async function registerRP(r,i,s,a){const l=`${i}providers/${s}/register?api-version=2016-02-01`;const c=`${i}providers/${s}?api-version=2016-02-01`;const p=getRequestEssentials(a);p.method="POST";p.url=l;const d=await r._nextPolicy.sendRequest(p);if(d.status!==200){throw new Error(`Autoregistration of ${s} failed. Please try registering manually.`)}return getRegistrationStatus(r,c,a)}async function getRegistrationStatus(r,i,s){const a=getRequestEssentials(s);a.url=i;a.method="GET";const l=await r._nextPolicy.sendRequest(a);const c=l.parsedBody;if(l.parsedBody&&c.registrationState&&c.registrationState==="Registered"){return true}else{await d.delay(r._retryTimeout*1e3);return getRegistrationStatus(r,i,s)}}function signingPolicy(r){return{create:(i,s)=>new SigningPolicy(i,s,r)}}class SigningPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.authenticationProvider=s}signRequest(r){return this.authenticationProvider.signRequest(r)}sendRequest(r){return this.signRequest(r).then((r=>this._nextPolicy.sendRequest(r)))}}function systemErrorRetryPolicy(r,i,s,a){return{create:(l,c)=>new SystemErrorRetryPolicy(l,c,r,i,s,a)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(r,i,s,a,l,c){super(r,i);this.retryCount=isNumber(s)?s:ee;this.retryInterval=isNumber(a)?a:te;this.minRetryInterval=isNumber(l)?l:ie;this.maxRetryInterval=isNumber(c)?c:re}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).catch((i=>retry(this,r,i.response,i)))}}async function retry(r,i,s,a,l){l=updateRetryData(r,l,a);function shouldPolicyRetry(r,i){if(i&&i.code&&(i.code==="ETIMEDOUT"||i.code==="ESOCKETTIMEDOUT"||i.code==="ECONNREFUSED"||i.code==="ECONNRESET"||i.code==="ENOENT")){return true}return false}if(shouldRetry(r.retryCount,shouldPolicyRetry,l,s,a)){try{await d.delay(l.retryInterval);return r._nextPolicy.sendRequest(i.clone())}catch(a){return retry(r,i,s,a,l)}}else{if(a){return Promise.reject(l.error)}return s}}const de=3;const ue=_.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,i)=>new ThrottlingRetryPolicy(r,i)}}const Ae="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.numberOfRetries=0;this._handleResponse=s||this._defaultResponseHandler}async sendRequest(r){const i=await this._nextPolicy.sendRequest(r.clone());if(i.status!==ue.TooManyRequests&&i.status!==ue.ServiceUnavailable){return i}else{return this._handleResponse(r,i)}}async _defaultResponseHandler(r,i){var s;const a=i.headers.get(_.HeaderConstants.RETRY_AFTER);if(a){const i=ThrottlingRetryPolicy.parseRetryAfterHeader(a);if(i){this.numberOfRetries+=1;await d.delay(i,{abortSignal:r.abortSignal,abortErrorMsg:Ae});if((s=r.abortSignal)===null||s===void 0?void 0:s.aborted){throw new y.AbortError(Ae)}if(this.numberOfRetries{let s=undefined;const a=this;const l=i;return{create(i,c){const p=getCredentialScopes(l,a.baseUri);if(!p){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(s===undefined||s===null){s=bearerTokenAuthenticationPolicy(r,p)}return s.create(i,c)}}};a=wrappedPolicyFactory()}else if(r&&typeof r.signRequest==="function"){H.info("ServiceClient: creating signing policy from provided credentials");a=signingPolicy(r)}else if(r!==undefined&&r!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}H.info("ServiceClient: using default request policies");s=createDefaultRequestPolicyFactories(a,i);if(i.requestPolicyFactories){const r=i.requestPolicyFactories(s);if(r){s=r}}}this._requestPolicyFactories=s}sendRequest(r){if(r===null||r===undefined||typeof r!=="object"){throw new Error("options cannot be null or undefined and it must be of type object.")}let i;try{if(isWebResourceLike(r)){r.validateRequestProperties();i=r}else{i=new WebResource;i=i.prepare(r)}}catch(r){return Promise.reject(r)}let s=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let r=this._requestPolicyFactories.length-1;r>=0;--r){s=this._requestPolicyFactories[r].create(s,this._requestPolicyOptions)}}return s.sendRequest(i)}async sendOperationRequest(r,s,a){var l;if(typeof r.options==="function"){a=r.options;r.options=undefined}const c=(l=r.options)===null||l===void 0?void 0:l.serializerOptions;const p=new WebResource;let d;try{const a=s.baseUrl||this.baseUri;if(!a){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.")}p.method=s.httpMethod;p.operationSpec=s;const l=URLBuilder.parse(a);if(s.path){l.appendPath(s.path)}if(s.urlParameters&&s.urlParameters.length>0){for(const i of s.urlParameters){let a=getOperationArgumentValueFromParameter(this,r,i,s.serializer);a=s.serializer.serialize(i.mapper,a,getPathStringFromParameter(i),c);if(!i.skipEncoding){a=encodeURIComponent(a)}l.replaceAll(`{${i.mapper.serializedName||getPathStringFromParameter(i)}}`,a)}}if(s.queryParameters&&s.queryParameters.length>0){for(const a of s.queryParameters){let p=getOperationArgumentValueFromParameter(this,r,a,s.serializer);if(p!==undefined&&p!==null){p=s.serializer.serialize(a.mapper,p,getPathStringFromParameter(a),c);if(a.collectionFormat!==undefined&&a.collectionFormat!==null){if(a.collectionFormat===i.QueryCollectionFormat.Multi){if(p.length===0){continue}else{for(const r in p){const i=p[r];p[r]=i===undefined||i===null?"":i.toString()}}}else if(a.collectionFormat===i.QueryCollectionFormat.Ssv||a.collectionFormat===i.QueryCollectionFormat.Tsv){p=p.join(a.collectionFormat)}}if(!a.skipEncoding){if(Array.isArray(p)){for(const r in p){if(p[r]!==undefined&&p[r]!==null){p[r]=encodeURIComponent(p[r])}}}else{p=encodeURIComponent(p)}}if(a.collectionFormat!==undefined&&a.collectionFormat!==null&&a.collectionFormat!==i.QueryCollectionFormat.Multi&&a.collectionFormat!==i.QueryCollectionFormat.Ssv&&a.collectionFormat!==i.QueryCollectionFormat.Tsv){p=p.join(a.collectionFormat)}l.setQueryParameter(a.mapper.serializedName||getPathStringFromParameter(a),p)}}}p.url=l.toString();const u=s.contentType||this.requestContentType;if(u&&s.requestBody){p.headers.set("Content-Type",u)}if(s.headerParameters){for(const i of s.headerParameters){let a=getOperationArgumentValueFromParameter(this,r,i,s.serializer);if(a!==undefined&&a!==null){a=s.serializer.serialize(i.mapper,a,getPathStringFromParameter(i),c);const r=i.mapper.headerCollectionPrefix;if(r){for(const i of Object.keys(a)){p.headers.set(r+i,a[i])}}else{p.headers.set(i.mapper.serializedName||getPathStringFromParameter(i),a)}}}}const A=r.options;if(A){if(A.customHeaders){for(const r in A.customHeaders){p.headers.set(r,A.customHeaders[r])}}if(A.abortSignal){p.abortSignal=A.abortSignal}if(A.timeout){p.timeout=A.timeout}if(A.onUploadProgress){p.onUploadProgress=A.onUploadProgress}if(A.onDownloadProgress){p.onDownloadProgress=A.onDownloadProgress}if(A.spanOptions){p.spanOptions=A.spanOptions}if(A.tracingContext){p.tracingContext=A.tracingContext}if(A.shouldDeserialize!==undefined&&A.shouldDeserialize!==null){p.shouldDeserialize=A.shouldDeserialize}}p.withCredentials=this._withCredentials;serializeRequestBody(this,p,r,s);if(p.streamResponseStatusCodes===undefined){p.streamResponseStatusCodes=getStreamResponseStatusCodes(s)}let h;let g;try{h=await this.sendRequest(p)}catch(r){g=r}if(g){if(g.response){g.details=flattenResponse(g.response,s.responses[g.statusCode]||s.responses["default"])}d=Promise.reject(g)}else{d=Promise.resolve(flattenResponse(h,s.responses[h.status]))}}catch(r){d=Promise.reject(r)}const u=a;if(u){d.then((r=>u(null,r._response.parsedBody,r._response.request,r._response))).catch((r=>u(r)))}return d}}function serializeRequestBody(r,i,s,a){var l,c,p,d,u,A;const h=(c=(l=s.options)===null||l===void 0?void 0:l.serializerOptions)!==null&&c!==void 0?c:{};const g={rootName:(p=h.rootName)!==null&&p!==void 0?p:"",includeRoot:(d=h.includeRoot)!==null&&d!==void 0?d:false,xmlCharKey:(u=h.xmlCharKey)!==null&&u!==void 0?u:D};const E=h.xmlCharKey;if(a.requestBody&&a.requestBody.mapper){i.body=getOperationArgumentValueFromParameter(r,s,a.requestBody,a.serializer);const l=a.requestBody.mapper;const{required:c,xmlName:p,xmlElementName:d,serializedName:u,xmlNamespace:h,xmlNamespacePrefix:y}=l;const b=l.type.name;try{if(i.body!==undefined&&i.body!==null||c){const r=getPathStringFromParameter(a.requestBody);i.body=a.serializer.serialize(l,i.body,r,g);const s=b===L.Stream;if(a.isXML){const r=y?`xmlns:${y}`:"xmlns";const a=getXmlValueWithNamespace(h,r,b,i.body,g);if(b===L.Sequence){i.body=stringifyXML(prepareXMLRootList(a,d||p||u,r,h),{rootName:p||u,xmlCharKey:E})}else if(!s){i.body=stringifyXML(a,{rootName:p||u,xmlCharKey:E})}}else if(b===L.String&&(((A=a.contentType)===null||A===void 0?void 0:A.match("text/plain"))||a.mediaType==="text")){return}else if(!s){i.body=JSON.stringify(i.body)}}}catch(r){throw new Error(`Error "${r.message}" occurred in serializing the payload - ${JSON.stringify(u,undefined," ")}.`)}}else if(a.formDataParameters&&a.formDataParameters.length>0){i.formData={};for(const l of a.formDataParameters){const c=getOperationArgumentValueFromParameter(r,s,l,a.serializer);if(c!==undefined&&c!==null){const r=l.mapper.serializedName||getPathStringFromParameter(l);i.formData[r]=a.serializer.serialize(l.mapper,c,getPathStringFromParameter(l),g)}}}}function getXmlValueWithNamespace(r,i,s,a,l){if(r&&!["Composite","Sequence","Dictionary"].includes(s)){const s={};s[l.xmlCharKey]=a;s[k]={[i]:r};return s}return a}function getValueOrFunctionResult(r,i){let s;if(typeof r==="string"){s=r}else{s=i();if(typeof r==="function"){s=r(s)}}return s}function createDefaultRequestPolicyFactories(r,i){const s=[];if(i.generateClientRequestIdHeader){s.push(generateClientRequestIdPolicy(i.clientRequestIdHeaderName))}if(r){s.push(r)}const a=getValueOrFunctionResult(i.userAgentHeaderName,se);const l=getValueOrFunctionResult(i.userAgent,getDefaultUserAgentValue);if(a&&l){s.push(userAgentPolicy({key:a,value:l}))}s.push(redirectPolicy());s.push(rpRegistrationPolicy(i.rpRegistrationRetryTimeout));if(!i.noRetryPolicy){s.push(exponentialRetryPolicy());s.push(systemErrorRetryPolicy());s.push(throttlingRetryPolicy())}s.push(deserializationPolicy(i.deserializationContentTypes));if(d.isNode){s.push(proxyPolicy(i.proxySettings))}s.push(logPolicy({logger:H.info}));return s}function createPipelineFromOptions(r,i){const s=[];if(r.sendStreamingJson){s.push(ndJsonPolicy())}let a=undefined;if(r.userAgentOptions&&r.userAgentOptions.userAgentPrefix){const i=[];i.push(r.userAgentOptions.userAgentPrefix);const s=getDefaultUserAgentValue();if(i.indexOf(s)===-1){i.push(s)}a=i.join(" ")}const l=Object.assign(Object.assign({},$),r.keepAliveOptions);const c=Object.assign(Object.assign({},ne),r.retryOptions);const p=Object.assign(Object.assign({},Z),r.redirectOptions);if(d.isNode){s.push(proxyPolicy(r.proxyOptions))}const u=Object.assign(Object.assign({},X),r.deserializationOptions);const A=Object.assign({},r.loggingOptions);s.push(tracingPolicy({userAgent:a}),keepAlivePolicy(l),userAgentPolicy({value:a}),generateClientRequestIdPolicy(),deserializationPolicy(u.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(c.maxRetries,c.retryDelayInMs,c.maxRetryDelayInMs));if(p.handleRedirects){s.push(redirectPolicy(p.maxRetries))}if(i){s.push(i)}s.push(logPolicy(A));if(d.isNode&&r.decompressResponse===false){s.push(disableResponseDecompressionPolicy())}return{httpClient:r.httpClient,requestPolicyFactories:s}}function getOperationArgumentValueFromParameter(r,i,s,a){return getOperationArgumentValueFromParameterPath(r,i,s.parameterPath,s.mapper,a)}function getOperationArgumentValueFromParameterPath(r,i,s,a,l){var c;let p;if(typeof s==="string"){s=[s]}const d=(c=i.options)===null||c===void 0?void 0:c.serializerOptions;if(Array.isArray(s)){if(s.length>0){if(a.isConstant){p=a.defaultValue}else{let l=getPropertyFromParameterPath(i,s);if(!l.propertyFound){l=getPropertyFromParameterPath(r,s)}let c=false;if(!l.propertyFound){c=a.required||s[0]==="options"&&s.length===2}p=c?a.defaultValue:l.propertyValue}const c=getPathStringFromParameterPath(s,a);l.serialize(a,p,c,d)}}else{if(a.required){p={}}for(const c in s){const u=a.type.modelProperties[c];const A=s[c];const h=getOperationArgumentValueFromParameterPath(r,i,A,u,l);const g=getPathStringFromParameterPath(A,u);l.serialize(u,h,g,d);if(h!==undefined&&h!==null){if(!p){p={}}p[c]=h}}}return p}function getPropertyFromParameterPath(r,i){const s={propertyFound:false};let a=0;for(;aObject.defineProperty(i,"_response",{value:r});if(a){const i=a.type.name;if(i==="Stream"){return addOperationResponse(Object.assign(Object.assign({},s),{blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}))}const l=i==="Composite"&&a.type.modelProperties||{};const c=Object.keys(l).some((r=>l[r].serializedName===""));if(i==="Sequence"||c){const i=[...r.parsedBody||[]];for(const s of Object.keys(l)){if(l[s].serializedName){i[s]=r.parsedBody[s]}}if(s){for(const r of Object.keys(s)){i[r]=s[r]}}addOperationResponse(i);return i}if(i==="Composite"||i==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},s),r.parsedBody))}}if(a||r.request.method==="HEAD"||isPrimitiveType(r.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},s),{body:r.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},s),r.parsedBody))}function getCredentialScopes(r,i){if(r===null||r===void 0?void 0:r.credentialScopes){return r.credentialScopes}if(i){return`${i}/.default`}return undefined}function createSpanFunction(r){return I.createSpanFunction(r)}const fe=2*60*1e3;class ExpiringAccessTokenCache{constructor(r=fe){this.cachedToken=undefined;this.tokenRefreshBufferMs=r}setCachedToken(r){this.cachedToken=r}getCachedToken(){if(this.cachedToken&&Date.now()+this.tokenRefreshBufferMs>=this.cachedToken.expiresOnTimestamp){this.cachedToken=undefined}return this.cachedToken}}class AccessTokenRefresher{constructor(r,i,s=3e4){this.credential=r;this.scopes=i;this.requiredMillisecondsBeforeNewRefresh=s;this.lastCalled=0}isReady(){return!this.lastCalled||Date.now()-this.lastCalled>this.requiredMillisecondsBeforeNewRefresh}async getToken(r){this.lastCalled=Date.now();const i=await this.credential.getToken(this.scopes,r);this.promise=undefined;return i||undefined}refresh(r){if(!this.promise){this.promise=this.getToken(r)}return this.promise}}const he=_.HeaderConstants;const ge="Basic";class BasicAuthenticationCredentials{constructor(r,i,s=ge){this.authorizationScheme=ge;if(r===null||r===undefined||typeof r.valueOf()!=="string"){throw new Error("userName cannot be null or undefined and must be of type string.")}if(i===null||i===undefined||typeof i.valueOf()!=="string"){throw new Error("password cannot be null or undefined and must be of type string.")}this.userName=r;this.password=i;this.authorizationScheme=s}signRequest(r){const i=`${this.userName}:${this.password}`;const s=`${this.authorizationScheme} ${encodeString(i)}`;if(!r.headers)r.headers=new HttpHeaders;r.headers.set(he.AUTHORIZATION,s);return Promise.resolve(r)}}class ApiKeyCredentials{constructor(r){if(!r||r&&!r.inHeader&&!r.inQuery){throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`)}this.inHeader=r.inHeader;this.inQuery=r.inQuery}signRequest(r){if(!r){return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`))}if(this.inHeader){if(!r.headers){r.headers=new HttpHeaders}for(const i in this.inHeader){r.headers.set(i,this.inHeader[i])}}if(this.inQuery){if(!r.url){return Promise.reject(new Error(`url cannot be null in the request object.`))}if(r.url.indexOf("?")<0){r.url+="?"}for(const i in this.inQuery){if(!r.url.endsWith("?")){r.url+="&"}r.url+=`${i}=${this.inQuery[i]}`}}return Promise.resolve(r)}}class TopicCredentials extends ApiKeyCredentials{constructor(r){if(!r||r&&typeof r!=="string"){throw new Error("topicKey cannot be null or undefined and must be of type string.")}const i={inHeader:{"aeg-sas-key":r}};super(i)}}Object.defineProperty(i,"delay",{enumerable:true,get:function(){return d.delay}});Object.defineProperty(i,"isNode",{enumerable:true,get:function(){return d.isNode}});Object.defineProperty(i,"isTokenCredential",{enumerable:true,get:function(){return A.isTokenCredential}});i.AccessTokenRefresher=AccessTokenRefresher;i.ApiKeyCredentials=ApiKeyCredentials;i.BaseRequestPolicy=BaseRequestPolicy;i.BasicAuthenticationCredentials=BasicAuthenticationCredentials;i.Constants=_;i.DefaultHttpClient=NodeFetchHttpClient;i.ExpiringAccessTokenCache=ExpiringAccessTokenCache;i.HttpHeaders=HttpHeaders;i.MapperType=L;i.RequestPolicyOptions=RequestPolicyOptions;i.RestError=RestError;i.Serializer=Serializer;i.ServiceClient=ServiceClient;i.TopicCredentials=TopicCredentials;i.URLBuilder=URLBuilder;i.URLQuery=URLQuery;i.WebResource=WebResource;i.XML_ATTRKEY=k;i.XML_CHARKEY=D;i.applyMixins=applyMixins;i.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;i.createPipelineFromOptions=createPipelineFromOptions;i.createSpanFunction=createSpanFunction;i.deserializationPolicy=deserializationPolicy;i.deserializeResponseBody=deserializeResponseBody;i.disableResponseDecompressionPolicy=disableResponseDecompressionPolicy;i.encodeUri=encodeUri;i.executePromisesSequentially=executePromisesSequentially;i.exponentialRetryPolicy=exponentialRetryPolicy;i.flattenResponse=flattenResponse;i.generateClientRequestIdPolicy=generateClientRequestIdPolicy;i.generateUuid=generateUuid;i.getDefaultProxySettings=getDefaultProxySettings;i.getDefaultUserAgentValue=getDefaultUserAgentValue;i.isDuration=isDuration;i.isValidUuid=isValidUuid;i.keepAlivePolicy=keepAlivePolicy;i.logPolicy=logPolicy;i.operationOptionsToRequestOptionsBase=operationOptionsToRequestOptionsBase;i.parseXML=parseXML;i.promiseToCallback=promiseToCallback;i.promiseToServiceCallback=promiseToServiceCallback;i.proxyPolicy=proxyPolicy;i.redirectPolicy=redirectPolicy;i.serializeObject=serializeObject;i.signingPolicy=signingPolicy;i.stringifyXML=stringifyXML;i.stripRequest=stripRequest;i.stripResponse=stripResponse;i.systemErrorRetryPolicy=systemErrorRetryPolicy;i.throttlingRetryPolicy=throttlingRetryPolicy;i.tracingPolicy=tracingPolicy;i.userAgentPolicy=userAgentPolicy},43415:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return A.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return g.default}});var a=_interopRequireDefault(s(14757));var l=_interopRequireDefault(s(19982));var c=_interopRequireDefault(s(85393));var p=_interopRequireDefault(s(48788));var d=_interopRequireDefault(s(657));var u=_interopRequireDefault(s(37909));var A=_interopRequireDefault(s(64418));var h=_interopRequireDefault(s(74794));var g=_interopRequireDefault(s(67079));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},64153:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("md5").update(r).digest()}var l=md5;i["default"]=l},657:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s="00000000-0000-0000-0000-000000000000";i["default"]=s},67079:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(64418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}let i;const s=new Uint8Array(16);s[0]=(i=parseInt(r.slice(0,8),16))>>>24;s[1]=i>>>16&255;s[2]=i>>>8&255;s[3]=i&255;s[4]=(i=parseInt(r.slice(9,13),16))>>>8;s[5]=i&255;s[6]=(i=parseInt(r.slice(14,18),16))>>>8;s[7]=i&255;s[8]=(i=parseInt(r.slice(19,23),16))>>>8;s[9]=i&255;s[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;s[11]=i/4294967296&255;s[12]=i>>>24&255;s[13]=i>>>16&255;s[14]=i>>>8&255;s[15]=i&255;return s}var l=parse;i["default"]=l},90690:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=s},10979:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=new Uint8Array(256);let c=l.length;function rng(){if(c>l.length-16){a.default.randomFillSync(l);c=0}return l.slice(c,c+=16)}},36631:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("sha1").update(r).digest()}var l=sha1;i["default"]=l},74794:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(64418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=[];for(let r=0;r<256;++r){l.push((r+256).toString(16).substr(1))}function stringify(r,i=0){const s=(l[r[i+0]]+l[r[i+1]]+l[r[i+2]]+l[r[i+3]]+"-"+l[r[i+4]]+l[r[i+5]]+"-"+l[r[i+6]]+l[r[i+7]]+"-"+l[r[i+8]]+l[r[i+9]]+"-"+l[r[i+10]]+l[r[i+11]]+l[r[i+12]]+l[r[i+13]]+l[r[i+14]]+l[r[i+15]]).toLowerCase();if(!(0,a.default)(s)){throw TypeError("Stringified UUID is invalid")}return s}var c=stringify;i["default"]=c},14757:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(10979));var l=_interopRequireDefault(s(74794));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let c;let p;let d=0;let u=0;function v1(r,i,s){let A=i&&s||0;const h=i||new Array(16);r=r||{};let g=r.node||c;let E=r.clockseq!==undefined?r.clockseq:p;if(g==null||E==null){const i=r.random||(r.rng||a.default)();if(g==null){g=c=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(E==null){E=p=(i[6]<<8|i[7])&16383}}let y=r.msecs!==undefined?r.msecs:Date.now();let b=r.nsecs!==undefined?r.nsecs:u+1;const C=y-d+(b-u)/1e4;if(C<0&&r.clockseq===undefined){E=E+1&16383}if((C<0||y>d)&&r.nsecs===undefined){b=0}if(b>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=y;u=b;p=E;y+=122192928e5;const v=((y&268435455)*1e4+b)%4294967296;h[A++]=v>>>24&255;h[A++]=v>>>16&255;h[A++]=v>>>8&255;h[A++]=v&255;const w=y/4294967296*1e4&268435455;h[A++]=w>>>8&255;h[A++]=w&255;h[A++]=w>>>24&15|16;h[A++]=w>>>16&255;h[A++]=E>>>8|128;h[A++]=E&255;for(let r=0;r<6;++r){h[A+r]=g[r]}return i||(0,l.default)(h)}var A=v1;i["default"]=A},19982:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(44085));var l=_interopRequireDefault(s(64153));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v3",48,l.default);var p=c;i["default"]=p},44085:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var a=_interopRequireDefault(s(74794));var l=_interopRequireDefault(s(67079));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let s=0;s{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(10979));var l=_interopRequireDefault(s(74794));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,i,s){r=r||{};const c=r.random||(r.rng||a.default)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(i){s=s||0;for(let r=0;r<16;++r){i[s+r]=c[r]}return i}return(0,l.default)(c)}var c=v4;i["default"]=c},48788:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(44085));var l=_interopRequireDefault(s(36631));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v5",80,l.default);var p=c;i["default"]=p},64418:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(90690));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&a.default.test(r)}var l=validate;i["default"]=l},37909:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(64418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.substr(14,1),16)}var l=version;i["default"]=l},27094:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(3233);var l=s(52557);var c=s(51333);const p=a.createClientLogger("core-lro");const d=2e3;const u=["succeeded","canceled","failed"];function deserializeState(r){try{return JSON.parse(r).state}catch(i){throw new Error(`Unable to deserialize input state: ${r}`)}}function setStateError(r){const{state:i,stateProxy:s,isOperationError:a}=r;return r=>{if(a(r)){s.setError(i,r);s.setFailed(i)}throw r}}function appendReadableErrorMessage(r,i){let s=r;if(s.slice(-1)!=="."){s=s+"."}return s+" "+i}function simplifyError(r){let i=r.message;let s=r.code;let a=r;while(a.innererror){a=a.innererror;s=a.code;i=appendReadableErrorMessage(i,a.message)}return{code:s,message:i}}function processOperationStatus(r){const{state:i,stateProxy:s,status:a,isDone:l,processResult:c,getError:d,response:u,setErrorAsResult:A}=r;switch(a){case"succeeded":{s.setSucceeded(i);break}case"failed":{const r=d===null||d===void 0?void 0:d(u);let a="";if(r){const{code:i,message:s}=simplifyError(r);a=`. ${i}. ${s}`}const l=`The long-running operation has failed${a}`;s.setError(i,new Error(l));s.setFailed(i);p.warning(l);break}case"canceled":{s.setCanceled(i);break}}if((l===null||l===void 0?void 0:l(u,i))||l===undefined&&["succeeded","canceled"].concat(A?[]:["failed"]).includes(a)){s.setResult(i,buildResult({response:u,state:i,processResult:c}))}}function buildResult(r){const{processResult:i,response:s,state:a}=r;return i?i(s,a):s}async function initOperation(r){const{init:i,stateProxy:s,processResult:a,getOperationStatus:l,withOperationLocation:c,setErrorAsResult:d}=r;const{operationLocation:u,resourceLocation:A,metadata:h,response:g}=await i();if(u)c===null||c===void 0?void 0:c(u,false);const E={metadata:h,operationLocation:u,resourceLocation:A};p.verbose(`LRO: Operation description:`,E);const y=s.initState(E);const b=l({response:g,state:y,operationLocation:u});processOperationStatus({state:y,status:b,stateProxy:s,response:g,setErrorAsResult:d,processResult:a});return y}async function pollOperationHelper(r){const{poll:i,state:s,stateProxy:a,operationLocation:l,getOperationStatus:c,getResourceLocation:d,isOperationError:A,options:h}=r;const g=await i(l,h).catch(setStateError({state:s,stateProxy:a,isOperationError:A}));const E=c(g,s);p.verbose(`LRO: Status:\n\tPolling from: ${s.config.operationLocation}\n\tOperation status: ${E}\n\tPolling status: ${u.includes(E)?"Stopped":"Running"}`);if(E==="succeeded"){const r=d(g,s);if(r!==undefined){return{response:await i(r).catch(setStateError({state:s,stateProxy:a,isOperationError:A})),status:E}}}return{response:g,status:E}}async function pollOperation(r){const{poll:i,state:s,stateProxy:a,options:l,getOperationStatus:c,getResourceLocation:p,getOperationLocation:d,isOperationError:A,withOperationLocation:h,getPollingInterval:g,processResult:E,getError:y,updateState:b,setDelay:C,isDone:v,setErrorAsResult:w}=r;const{operationLocation:I}=s.config;if(I!==undefined){const{response:r,status:B}=await pollOperationHelper({poll:i,getOperationStatus:c,state:s,stateProxy:a,operationLocation:I,getResourceLocation:p,isOperationError:A,options:l});processOperationStatus({status:B,response:r,state:s,stateProxy:a,isDone:v,processResult:E,getError:y,setErrorAsResult:w});if(!u.includes(B)){const i=g===null||g===void 0?void 0:g(r);if(i)C(i);const a=d===null||d===void 0?void 0:d(r,s);if(a!==undefined){const r=I!==a;s.config.operationLocation=a;h===null||h===void 0?void 0:h(a,r)}else h===null||h===void 0?void 0:h(I,false)}b===null||b===void 0?void 0:b(s,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:i,operationLocation:s}=r;return s!==null&&s!==void 0?s:i}function getLocationHeader(r){return r.headers["location"]}function getOperationLocationHeader(r){return r.headers["operation-location"]}function getAzureAsyncOperationHeader(r){return r.headers["azure-asyncoperation"]}function findResourceLocation(r){var i;const{location:s,requestMethod:a,requestPath:l,resourceLocationConfig:c}=r;switch(a){case"PUT":{return l}case"DELETE":{return undefined}case"PATCH":{return(i=getDefault())!==null&&i!==void 0?i:l}default:{return getDefault()}}function getDefault(){switch(c){case"azure-async-operation":{return undefined}case"original-uri":{return l}case"location":default:{return s}}}}function inferLroMode(r){const{rawResponse:i,requestMethod:s,requestPath:a,resourceLocationConfig:l}=r;const c=getOperationLocationHeader(i);const p=getAzureAsyncOperationHeader(i);const d=getOperationLocationPollingUrl({operationLocation:c,azureAsyncOperation:p});const u=getLocationHeader(i);const A=s===null||s===void 0?void 0:s.toLocaleUpperCase();if(d!==undefined){return{mode:"OperationLocation",operationLocation:d,resourceLocation:findResourceLocation({requestMethod:A,location:u,requestPath:a,resourceLocationConfig:l})}}else if(u!==undefined){return{mode:"ResourceLocation",operationLocation:u}}else if(A==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}function transformStatus(r){const{status:i,statusCode:s}=r;if(typeof i!=="string"&&i!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${i}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(i===null||i===void 0?void 0:i.toLocaleLowerCase()){case undefined:return toOperationStatus(s);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{p.verbose(`LRO: unrecognized operation status: ${i}`);return i}}}function getStatus(r){var i;const{status:s}=(i=r.body)!==null&&i!==void 0?i:{};return transformStatus({status:s,statusCode:r.statusCode})}function getProvisioningState(r){var i,s;const{properties:a,provisioningState:l}=(i=r.body)!==null&&i!==void 0?i:{};const c=(s=a===null||a===void 0?void 0:a.provisioningState)!==null&&s!==void 0?s:l;return transformStatus({status:c,statusCode:r.statusCode})}function toOperationStatus(r){if(r===202){return"running"}else if(r<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:r}){const i=r.headers["retry-after"];if(i!==undefined){const r=parseInt(i);return isNaN(r)?calculatePollingIntervalFromDate(new Date(i)):r*1e3}return undefined}function getErrorFromResponse(r){const i=r.flatResponse.error;if(!i){p.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!i.code||!i.message){p.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return i}function calculatePollingIntervalFromDate(r){const i=Math.floor((new Date).getTime());const s=r.getTime();if(i{const r=await l.sendInitialRequest();const i=inferLroMode({rawResponse:r.rawResponse,requestPath:l.requestPath,requestMethod:l.requestMethod,resourceLocationConfig:s});return Object.assign({response:r,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},stateProxy:i,processResult:a?({flatResponse:r},i)=>a(r,i):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:c})}function getOperationLocation({rawResponse:r},i){var s;const a=(s=i.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:r},i){var s;const a=(s=i.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${a}`)}}function getResourceLocation({flatResponse:r},i){if(typeof r==="object"){const s=r.resourceLocation;if(s!==undefined){i.config.resourceLocation=s}}return i.config.resourceLocation}function isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:i,stateProxy:s,options:a,processResult:l,updateState:c,setDelay:p,state:d,setErrorAsResult:u}=r;return pollOperation({state:d,stateProxy:s,setDelay:p,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:c,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:a,poll:async(r,s)=>i.sendPollRequest(r,s),setErrorAsResult:u})}const createStateProxy$1=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function buildCreatePoller(r){const{getOperationLocation:i,getStatusFromInitialResponse:s,getStatusFromPollResponse:a,isOperationError:p,getResourceLocation:u,getPollingInterval:A,getError:h,resolveOnUnsuccessful:g}=r;return async({init:r,poll:E},y)=>{const{processResult:b,updateState:C,withOperationLocation:v,intervalInMs:w=d,restoreFrom:I}=y||{};const B=createStateProxy$1();const S=v?(()=>{let r=false;return(i,s)=>{if(s)v(i);else if(!r)v(i);r=true}})():undefined;const Q=I?deserializeState(I):await initOperation({init:r,stateProxy:B,processResult:b,getOperationStatus:s,withOperationLocation:S,setErrorAsResult:!g});let x;const R=new l.AbortController;const T=new Map;const handleProgressEvents=async()=>T.forEach((r=>r(Q)));const N="Operation was canceled";let _=w;const k={getOperationState:()=>Q,getResult:()=>Q.result,isDone:()=>["succeeded","failed","canceled"].includes(Q.status),isStopped:()=>x===undefined,stopPolling:()=>{R.abort()},toString:()=>JSON.stringify({state:Q}),onProgress:r=>{const i=Symbol();T.set(i,r);return()=>T.delete(i)},pollUntilDone:r=>x!==null&&x!==void 0?x:x=(async()=>{const{abortSignal:i}=r||{};const{signal:s}=i?new l.AbortController([i,R.signal]):R;if(!k.isDone()){await k.poll({abortSignal:s});while(!k.isDone()){await c.delay(_,{abortSignal:s});await k.poll({abortSignal:s})}}if(g){return k.getResult()}else{switch(Q.status){case"succeeded":return k.getResult();case"canceled":throw new Error(N);case"failed":throw Q.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{x=undefined})),async poll(r){if(g){if(k.isDone())return}else{switch(Q.status){case"succeeded":return;case"canceled":throw new Error(N);case"failed":throw Q.error}}await pollOperation({poll:E,state:Q,stateProxy:B,getOperationLocation:i,isOperationError:p,withOperationLocation:S,getPollingInterval:A,getOperationStatus:a,getResourceLocation:u,processResult:b,getError:h,updateState:C,options:r,setDelay:r=>{_=r},setErrorAsResult:!g});await handleProgressEvents();if(!g){switch(Q.status){case"canceled":throw new Error(N);case"failed":throw Q.error}}}};return k}}async function createHttpPoller(r,i){const{resourceLocationConfig:s,intervalInMs:a,processResult:l,restoreFrom:c,updateState:p,withOperationLocation:d,resolveOnUnsuccessful:u=false}=i||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:u})({init:async()=>{const i=await r.sendInitialRequest();const a=inferLroMode({rawResponse:i.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:s});return Object.assign({response:i,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:a,withOperationLocation:d,restoreFrom:c,updateState:p,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r})}const createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,i,s,a,l,c,p){this.state=r;this.lro=i;this.setErrorAsResult=s;this.lroResourceLocationConfig=a;this.processResult=l;this.updateState=c;this.isDone=p}setPollerConfig(r){this.pollerConfig=r}async update(r){var i;const s=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:s,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const l=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:s,processResult:this.processResult,updateState:a?(r,{rawResponse:i})=>a(r,i):undefined,isDone:l?({flatResponse:r},i)=>l(r,i):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(i=r===null||r===void 0?void 0:r.fireProgress)===null||i===void 0?void 0:i.call(r,this.state);return this}async cancel(){p.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,i)=>{this.resolve=r;this.reject=i}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const i of this.pollProgressCallbacks){i(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((i=>i!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,i){const{intervalInMs:s=d,resumeFrom:a,resolveOnUnsuccessful:l=false,isDone:c,lroResourceLocationConfig:p,processResult:u,updateState:A}=i||{};const h=a?deserializeState(a):{};const g=new GenericPollOperation(h,r,!l,p,u,A,c);super(g);this.resolveOnUnsuccessful=l;this.config={intervalInMs:s};g.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}i.LroEngine=LroEngine;i.Poller=Poller;i.PollerCancelledError=PollerCancelledError;i.PollerStoppedError=PollerStoppedError;i.createHttpPoller=createHttpPoller},74559:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(4351);function getPagedAsyncIterator(r){var i;const s=getItemAsyncIterator(r);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i=r===null||r===void 0?void 0:r.byPage)!==null&&i!==void 0?i:i=>{const{continuationToken:s,maxPageSize:a}=i!==null&&i!==void 0?i:{};return getPageAsyncIterator(r,{pageLink:s,maxPageSize:a})}}}function getItemAsyncIterator(r){return a.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var i,s,l,c;const p=getPageAsyncIterator(r);const d=yield a.__await(p.next());if(!Array.isArray(d.value)){const{toElements:l}=r;if(l){yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l(d.value))));try{for(var u=a.__asyncValues(p),A;A=yield a.__await(u.next()),!A.done;){const r=A.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l(r))))}}catch(r){i={error:r}}finally{try{if(A&&!A.done&&(s=u.return))yield a.__await(s.call(u))}finally{if(i)throw i.error}}}else{yield yield a.__await(d.value);yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(p)))}}else{yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(d.value)));try{for(var h=a.__asyncValues(p),g;g=yield a.__await(h.next()),!g.done;){const r=g.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(r)))}}catch(r){l={error:r}}finally{try{if(g&&!g.done&&(c=h.return))yield a.__await(c.call(h))}finally{if(l)throw l.error}}}}))}function getPageAsyncIterator(r,i={}){return a.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:s,maxPageSize:l}=i;let c=yield a.__await(r.getPage(s!==null&&s!==void 0?s:r.firstPageLink,l));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page);while(c.nextPageLink){c=yield a.__await(r.getPage(c.nextPageLink,l));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page)}}))}i.getPagedAsyncIterator=getPagedAsyncIterator},94175:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(65163);(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(i.SpanKind||(i.SpanKind={}));function getSpan(r){return a.trace.getSpan(r)}function setSpan(r,i){return a.trace.setSpan(r,i)}function setSpanContext(r,i){return a.trace.setSpanContext(r,i)}function getSpanContext(r){return a.trace.getSpanContext(r)}function isSpanContextValid(r){return a.trace.isSpanContextValid(r)}function getTracer(r,i){return a.trace.getTracer(r||"azure/core-tracing",i)}const l=a.context;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(i.SpanStatusCode||(i.SpanStatusCode={}));function isTracingDisabled(){var r;if(typeof process==="undefined"){return false}const i=(r=process.env.AZURE_TRACING_DISABLED)===null||r===void 0?void 0:r.toLowerCase();if(i==="false"||i==="0"){return false}return Boolean(i)}function createSpanFunction(r){return function(s,c){const p=getTracer();const d=(c===null||c===void 0?void 0:c.tracingOptions)||{};const u=Object.assign({kind:i.SpanKind.INTERNAL},d.spanOptions);const A=r.packagePrefix?`${r.packagePrefix}.${s}`:s;let h;if(isTracingDisabled()){h=a.trace.wrapSpanContext(a.INVALID_SPAN_CONTEXT)}else{h=p.startSpan(A,u,d.tracingContext)}if(r.namespace){h.setAttribute("az.namespace",r.namespace)}let g=d.spanOptions||{};if(h.isRecording()&&r.namespace){g=Object.assign(Object.assign({},d.spanOptions),{attributes:Object.assign(Object.assign({},u.attributes),{"az.namespace":r.namespace})})}const E=Object.assign(Object.assign({},d),{spanOptions:g,tracingContext:setSpan(d.tracingContext||l.active(),h)});const y=Object.assign(Object.assign({},c),{tracingOptions:E});return{span:h,updatedOptions:y}}}const c="00";function extractSpanContextFromTraceParentHeader(r){const i=r.split("-");if(i.length!==4){return}const[s,a,l,p]=i;if(s!==c){return}const d=parseInt(p,16);const u={spanId:l,traceId:a,traceFlags:d};return u}function getTraceParentHeader(r){const i=[];if(!r.traceId){i.push("traceId")}if(!r.spanId){i.push("spanId")}if(i.length){return}const s=r.traceFlags||0;const a=s.toString(16);const l=a.length===1?`0${a}`:a;return`${c}-${r.traceId}-${r.spanId}-${l}`}i.context=l;i.createSpanFunction=createSpanFunction;i.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;i.getSpan=getSpan;i.getSpanContext=getSpanContext;i.getTraceParentHeader=getTraceParentHeader;i.getTracer=getTracer;i.isSpanContextValid=isSpanContextValid;i.setSpan=setSpan;i.setSpanContext=setSpanContext},51333:(r,i,s)=>{"use strict";var a=s(52557);var l=s(6113);function createAbortablePromise(r,i){const{cleanupBeforeAbort:s,abortSignal:l,abortErrorMsg:c}=i!==null&&i!==void 0?i:{};return new Promise(((i,p)=>{function rejectOnAbort(){p(new a.AbortError(c!==null&&c!==void 0?c:"The operation was aborted."))}function removeListeners(){l===null||l===void 0?void 0:l.removeEventListener("abort",onAbort)}function onAbort(){s===null||s===void 0?void 0:s();removeListeners();rejectOnAbort()}if(l===null||l===void 0?void 0:l.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();i(r)}),(r=>{removeListeners();p(r)}))}catch(r){p(r)}l===null||l===void 0?void 0:l.addEventListener("abort",onAbort)}))}const c="The delay was aborted.";function delay(r,i){let s;const{abortSignal:a,abortErrorMsg:l}=i!==null&&i!==void 0?i:{};return createAbortablePromise((i=>{s=setTimeout(i,r)}),{cleanupBeforeAbort:()=>clearTimeout(s),abortSignal:a,abortErrorMsg:l!==null&&l!==void 0?l:c})}async function cancelablePromiseRace(r,i){var s,l;const c=new a.AbortController;function abortHandler(){c.abort()}(s=i===null||i===void 0?void 0:i.abortSignal)===null||s===void 0?void 0:s.addEventListener("abort",abortHandler);try{return await Promise.race(r.map((r=>r({abortSignal:c.signal}))))}finally{c.abort();(l=i===null||i===void 0?void 0:i.abortSignal)===null||l===void 0?void 0:l.removeEventListener("abort",abortHandler)}}function getRandomIntegerInclusive(r,i){r=Math.ceil(r);i=Math.floor(i);const s=Math.floor(Math.random()*(i-r+1));return s+r}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const i=typeof r.name==="string";const s=typeof r.message==="string";return i&&s}return false}function getErrorMessage(r){if(isError(r)){return r.message}else{let i;try{if(typeof r==="object"&&r){i=JSON.stringify(r)}else{i=String(r)}}catch(r){i="[unable to stringify input]"}return`Unknown error ${i}`}}async function computeSha256Hmac(r,i,s){const a=Buffer.from(r,"base64");return l.createHmac("sha256",a).update(i).digest(s)}async function computeSha256Hash(r,i){return l.createHash("sha256").update(r).digest(i)}function isDefined(r){return typeof r!=="undefined"&&r!==null}function isObjectWithProperties(r,i){if(!isDefined(r)||typeof r!=="object"){return false}for(const s of i){if(!objectHasProperty(r,s)){return false}}return true}function objectHasProperty(r,i){return isDefined(r)&&typeof r==="object"&&i in r}function generateUUID(){let r="";for(let i=0;i<32;i++){const s=Math.floor(Math.random()*16);if(i===12){r+="4"}else if(i===16){r+=s&3|8}else{r+=s.toString(16)}if(i===7||i===11||i===15||i===19){r+="-"}}return r}var p;let d=typeof((p=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||p===void 0?void 0:p.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):l.randomUUID;if(!d){d=generateUUID}function randomUUID(){return d()}var u,A,h,g;const E=typeof window!=="undefined"&&typeof window.document!=="undefined";const y=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((u=self.constructor)===null||u===void 0?void 0:u.name)==="DedicatedWorkerGlobalScope"||((A=self.constructor)===null||A===void 0?void 0:A.name)==="ServiceWorkerGlobalScope"||((h=self.constructor)===null||h===void 0?void 0:h.name)==="SharedWorkerGlobalScope");const b=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const C=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((g=process.versions)===null||g===void 0?void 0:g.node)&&!b;const v=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const w=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative";function uint8ArrayToString(r,i){return Buffer.from(r).toString(i)}function stringToUint8Array(r,i){return Buffer.from(r,i)}i.cancelablePromiseRace=cancelablePromiseRace;i.computeSha256Hash=computeSha256Hash;i.computeSha256Hmac=computeSha256Hmac;i.createAbortablePromise=createAbortablePromise;i.delay=delay;i.getErrorMessage=getErrorMessage;i.getRandomIntegerInclusive=getRandomIntegerInclusive;i.isBrowser=E;i.isBun=v;i.isDefined=isDefined;i.isDeno=b;i.isError=isError;i.isNode=C;i.isObject=isObject;i.isObjectWithProperties=isObjectWithProperties;i.isReactNative=w;i.isWebWorker=y;i.objectHasProperty=objectHasProperty;i.randomUUID=randomUUID;i.stringToUint8Array=stringToUint8Array;i.uint8ArrayToString=uint8ArrayToString},3233:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(22037);var l=s(73837);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var c=_interopDefaultLegacy(l);function log(r,...i){process.stderr.write(`${c["default"].format(r,...i)}${a.EOL}`)}const p=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let u=[];let A=[];const h=[];if(p){enable(p)}const g=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){d=r;u=[];A=[];const i=/\*/g;const s=r.split(",").map((r=>r.trim().replace(i,".*?")));for(const r of s){if(r.startsWith("-")){A.push(new RegExp(`^${r.substr(1)}$`))}else{u.push(new RegExp(`^${r}$`))}}for(const r of h){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const i of A){if(i.test(r)){return false}}for(const i of u){if(i.test(r)){return true}}return false}function disable(){const r=d||"";enable("");return r}function createDebugger(r){const i=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:g.log,namespace:r,extend:extend});function debug(...s){if(!i.enabled){return}if(s.length>0){s[0]=`${r} ${s[0]}`}i.log(...s)}h.push(i);return i}function destroy(){const r=h.indexOf(this);if(r>=0){h.splice(r,1);return true}return false}function extend(r){const i=createDebugger(`${this.namespace}:${r}`);i.log=this.log;return i}var E=g;const y=new Set;const b=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let C;const v=E("azure");v.log=(...r)=>{E.log(...r)};const w=["verbose","info","warning","error"];if(b){if(isAzureLogLevel(b)){setLogLevel(b)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${b}'; logging is not enabled. Acceptable values: ${w.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${w.join(",")}`)}C=r;const i=[];for(const r of y){if(shouldEnable(r)){i.push(r.namespace)}}E.enable(i.join(","))}function getLogLevel(){return C}const I={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const i=v.extend(r);patchLogMethod(v,i);return{error:createLogger(i,"error"),warning:createLogger(i,"warning"),info:createLogger(i,"info"),verbose:createLogger(i,"verbose")}}function patchLogMethod(r,i){i.log=(...i)=>{r.log(...i)}}function createLogger(r,i){const s=Object.assign(r.extend(i),{level:i});patchLogMethod(r,s);if(shouldEnable(s)){const r=E.disable();E.enable(r+","+s.namespace)}y.add(s);return s}function shouldEnable(r){return Boolean(C&&I[r.level]<=I[C])}function isAzureLogLevel(r){return w.includes(r)}i.AzureLogger=v;i.createClientLogger=createClientLogger;i.getLogLevel=getLogLevel;i.setLogLevel=setLogLevel},84100:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(24607);var l=s(4351);var c=s(94175);var p=s(3233);var d=s(52557);var u=s(22037);var A=s(6113);var h=s(12781);s(74559);var g=s(27094);var E=s(82361);var y=s(57147);var b=s(73837);function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(s){if(s!=="default"){var a=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(i,s,a.get?a:{enumerable:true,get:function(){return r[s]}})}}))}i["default"]=r;return Object.freeze(i)}var C=_interopNamespace(a);var v=_interopNamespace(u);var w=_interopNamespace(y);var I=_interopNamespace(b);const B={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const S={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const Q={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const x={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const R={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const T={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const N={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const _={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const k={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const D={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const O={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const P={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const L={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const M={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const U={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const G={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const j={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const q={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const H={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const V={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const z={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Y={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const W={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const J={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const X={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","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"}}}}};const $={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const K={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Z={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const ee={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const te={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const re={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const ie={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ne={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const se={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const ae={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const oe={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const le={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"any"}}}}};const ce={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const pe={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const de={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const ue={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ae={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const he={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ge={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ce={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qe={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xe={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Re={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _e={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Me={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ue={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const je={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const ze={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ye={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const We={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Je={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Xe={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $e={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ke={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ze={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const et={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tt={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const rt={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const it={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const nt={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ct={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dt={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const ut={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const At={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const mt={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ht={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bt={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const wt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const It={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const St={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const Qt={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Rt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Nt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kt={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ot={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Lt={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ft={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Gt={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const qt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ht={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zt={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $t={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kt={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const er={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const tr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const ir={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mr={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ir={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Br={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const kr={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hr={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var zr=Object.freeze({__proto__:null,BlobServiceProperties:B,Logging:S,RetentionPolicy:Q,Metrics:x,CorsRule:R,StaticWebsite:T,StorageError:N,BlobServiceStatistics:_,GeoReplication:k,ListContainersSegmentResponse:D,ContainerItem:O,ContainerProperties:P,KeyInfo:L,UserDelegationKey:M,FilterBlobSegment:U,FilterBlobItem:G,BlobTags:j,BlobTag:q,SignedIdentifier:H,AccessPolicy:V,ListBlobsFlatSegmentResponse:z,BlobFlatListSegment:Y,BlobItemInternal:W,BlobName:J,BlobPropertiesInternal:X,ListBlobsHierarchySegmentResponse:$,BlobHierarchyListSegment:K,BlobPrefix:Z,BlockLookupList:ee,BlockList:te,Block:re,PageList:ie,PageRange:ne,ClearRange:se,QueryRequest:ae,QuerySerialization:oe,QueryFormat:le,DelimitedTextConfiguration:ce,JsonTextConfiguration:pe,ArrowConfiguration:de,ArrowField:ue,ServiceSetPropertiesHeaders:Ae,ServiceSetPropertiesExceptionHeaders:me,ServiceGetPropertiesHeaders:fe,ServiceGetPropertiesExceptionHeaders:he,ServiceGetStatisticsHeaders:ge,ServiceGetStatisticsExceptionHeaders:Ee,ServiceListContainersSegmentHeaders:ye,ServiceListContainersSegmentExceptionHeaders:be,ServiceGetUserDelegationKeyHeaders:Ce,ServiceGetUserDelegationKeyExceptionHeaders:ve,ServiceGetAccountInfoHeaders:we,ServiceGetAccountInfoExceptionHeaders:Ie,ServiceSubmitBatchHeaders:Be,ServiceSubmitBatchExceptionHeaders:Se,ServiceFilterBlobsHeaders:Qe,ServiceFilterBlobsExceptionHeaders:xe,ContainerCreateHeaders:Re,ContainerCreateExceptionHeaders:Te,ContainerGetPropertiesHeaders:Ne,ContainerGetPropertiesExceptionHeaders:_e,ContainerDeleteHeaders:ke,ContainerDeleteExceptionHeaders:De,ContainerSetMetadataHeaders:Oe,ContainerSetMetadataExceptionHeaders:Pe,ContainerGetAccessPolicyHeaders:Le,ContainerGetAccessPolicyExceptionHeaders:Fe,ContainerSetAccessPolicyHeaders:Me,ContainerSetAccessPolicyExceptionHeaders:Ue,ContainerRestoreHeaders:Ge,ContainerRestoreExceptionHeaders:je,ContainerRenameHeaders:qe,ContainerRenameExceptionHeaders:He,ContainerSubmitBatchHeaders:Ve,ContainerSubmitBatchExceptionHeaders:ze,ContainerFilterBlobsHeaders:Ye,ContainerFilterBlobsExceptionHeaders:We,ContainerAcquireLeaseHeaders:Je,ContainerAcquireLeaseExceptionHeaders:Xe,ContainerReleaseLeaseHeaders:$e,ContainerReleaseLeaseExceptionHeaders:Ke,ContainerRenewLeaseHeaders:Ze,ContainerRenewLeaseExceptionHeaders:et,ContainerBreakLeaseHeaders:tt,ContainerBreakLeaseExceptionHeaders:rt,ContainerChangeLeaseHeaders:it,ContainerChangeLeaseExceptionHeaders:nt,ContainerListBlobFlatSegmentHeaders:st,ContainerListBlobFlatSegmentExceptionHeaders:ot,ContainerListBlobHierarchySegmentHeaders:ct,ContainerListBlobHierarchySegmentExceptionHeaders:pt,ContainerGetAccountInfoHeaders:dt,ContainerGetAccountInfoExceptionHeaders:ut,BlobDownloadHeaders:At,BlobDownloadExceptionHeaders:mt,BlobGetPropertiesHeaders:ft,BlobGetPropertiesExceptionHeaders:ht,BlobDeleteHeaders:Et,BlobDeleteExceptionHeaders:yt,BlobUndeleteHeaders:bt,BlobUndeleteExceptionHeaders:Ct,BlobSetExpiryHeaders:vt,BlobSetExpiryExceptionHeaders:wt,BlobSetHttpHeadersHeaders:It,BlobSetHttpHeadersExceptionHeaders:Bt,BlobSetImmutabilityPolicyHeaders:St,BlobSetImmutabilityPolicyExceptionHeaders:Qt,BlobDeleteImmutabilityPolicyHeaders:xt,BlobDeleteImmutabilityPolicyExceptionHeaders:Rt,BlobSetLegalHoldHeaders:Tt,BlobSetLegalHoldExceptionHeaders:Nt,BlobSetMetadataHeaders:_t,BlobSetMetadataExceptionHeaders:kt,BlobAcquireLeaseHeaders:Dt,BlobAcquireLeaseExceptionHeaders:Ot,BlobReleaseLeaseHeaders:Pt,BlobReleaseLeaseExceptionHeaders:Lt,BlobRenewLeaseHeaders:Ft,BlobRenewLeaseExceptionHeaders:Mt,BlobChangeLeaseHeaders:Ut,BlobChangeLeaseExceptionHeaders:Gt,BlobBreakLeaseHeaders:jt,BlobBreakLeaseExceptionHeaders:qt,BlobCreateSnapshotHeaders:Ht,BlobCreateSnapshotExceptionHeaders:Vt,BlobStartCopyFromURLHeaders:zt,BlobStartCopyFromURLExceptionHeaders:Yt,BlobCopyFromURLHeaders:Wt,BlobCopyFromURLExceptionHeaders:Jt,BlobAbortCopyFromURLHeaders:Xt,BlobAbortCopyFromURLExceptionHeaders:$t,BlobSetTierHeaders:Kt,BlobSetTierExceptionHeaders:Zt,BlobGetAccountInfoHeaders:er,BlobGetAccountInfoExceptionHeaders:tr,BlobQueryHeaders:rr,BlobQueryExceptionHeaders:ir,BlobGetTagsHeaders:nr,BlobGetTagsExceptionHeaders:sr,BlobSetTagsHeaders:ar,BlobSetTagsExceptionHeaders:or,PageBlobCreateHeaders:lr,PageBlobCreateExceptionHeaders:cr,PageBlobUploadPagesHeaders:pr,PageBlobUploadPagesExceptionHeaders:dr,PageBlobClearPagesHeaders:ur,PageBlobClearPagesExceptionHeaders:Ar,PageBlobUploadPagesFromURLHeaders:mr,PageBlobUploadPagesFromURLExceptionHeaders:fr,PageBlobGetPageRangesHeaders:hr,PageBlobGetPageRangesExceptionHeaders:gr,PageBlobGetPageRangesDiffHeaders:Er,PageBlobGetPageRangesDiffExceptionHeaders:yr,PageBlobResizeHeaders:br,PageBlobResizeExceptionHeaders:Cr,PageBlobUpdateSequenceNumberHeaders:vr,PageBlobUpdateSequenceNumberExceptionHeaders:wr,PageBlobCopyIncrementalHeaders:Ir,PageBlobCopyIncrementalExceptionHeaders:Br,AppendBlobCreateHeaders:Sr,AppendBlobCreateExceptionHeaders:Qr,AppendBlobAppendBlockHeaders:xr,AppendBlobAppendBlockExceptionHeaders:Rr,AppendBlobAppendBlockFromUrlHeaders:Tr,AppendBlobAppendBlockFromUrlExceptionHeaders:Nr,AppendBlobSealHeaders:_r,AppendBlobSealExceptionHeaders:kr,BlockBlobUploadHeaders:Dr,BlockBlobUploadExceptionHeaders:Or,BlockBlobPutBlobFromUrlHeaders:Pr,BlockBlobPutBlobFromUrlExceptionHeaders:Lr,BlockBlobStageBlockHeaders:Fr,BlockBlobStageBlockExceptionHeaders:Mr,BlockBlobStageBlockFromURLHeaders:Ur,BlockBlobStageBlockFromURLExceptionHeaders:Gr,BlockBlobCommitBlockListHeaders:jr,BlockBlobCommitBlockListExceptionHeaders:qr,BlockBlobGetBlockListHeaders:Hr,BlockBlobGetBlockListExceptionHeaders:Vr});const Yr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Wr={parameterPath:"blobServiceProperties",mapper:B};const Jr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Xr={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const $r={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Kr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zr={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const ei={parameterPath:"version",mapper:{defaultValue:"2023-11-03",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const ti={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ri={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ii={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ni={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const si={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const ai={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const oi={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const li={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const ci={parameterPath:"keyInfo",mapper:L};const pi={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const di={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const ui={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ai={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mi={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const fi={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const hi={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gi={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Ei={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const yi={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const bi={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Ci={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const vi={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const wi={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Ii={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const Bi={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Si={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qi={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xi={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Ri={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Ni={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const _i={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ki={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Di={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Oi={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pi={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Li={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Fi={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Mi={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Ui={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Gi={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ji={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const qi={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Hi={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vi={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const zi={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const Yi={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Wi={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Ji={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Xi={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const $i={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Ki={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Zi={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const en={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const tn={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const rn={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const nn={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const sn={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const an={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const ln={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const cn={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const pn={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const dn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const un={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const An={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const mn={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const hn={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const gn={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const En={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const yn={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bn={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Cn={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const vn={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wn={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const In={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Bn={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Sn={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Qn={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const xn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Rn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Tn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Nn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const _n={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const kn={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Dn={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const On={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Pn={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Ln={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const Fn={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Mn={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Un={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const Gn={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jn={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const qn={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Hn={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vn={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const zn={parameterPath:["options","queryRequest"],mapper:ae};const Yn={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wn={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Jn={parameterPath:["options","tags"],mapper:j};const Xn={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const $n={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Kn={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Zn={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const es={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ts={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const rs={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ns={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ss={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const as={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const os={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ls={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const cs={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const ps={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ds={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const us={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const As={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const ms={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const fs={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const hs={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const gs={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Es={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const ys={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bs={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Cs={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const vs={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const ws={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Is={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const Bs={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ss={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Qs={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const xs={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Rs={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Ts={parameterPath:"blocks",mapper:ee};const Ns={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _s={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,i){const s={blobServiceProperties:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ds)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}getStatistics(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ps)}listContainersSegment(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ls)}getUserDelegationKey(r,i){const s={keyInfo:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Fs)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ms)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Us)}filterBlobs(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Gs)}}const ks=new C.Serializer(zr,true);const Ds={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ae},default:{bodyMapper:N,headersMapper:me}},requestBody:Wr,queryParameters:[$r,Kr,Zr],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks};const Os={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:B,headersMapper:fe},default:{bodyMapper:N,headersMapper:he}},queryParameters:[$r,Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};const Ps={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:_,headersMapper:ge},default:{bodyMapper:N,headersMapper:Ee}},queryParameters:[$r,Zr,ii],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};const Ls={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:D,headersMapper:ye},default:{bodyMapper:N,headersMapper:be}},queryParameters:[Zr,ni,si,ai,oi,li],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};const Fs={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:M,headersMapper:Ce},default:{bodyMapper:N,headersMapper:ve}},requestBody:ci,queryParameters:[$r,Zr,pi],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks};const Ms={path:"/",httpMethod:"GET",responses:{200:{headersMapper:we},default:{bodyMapper:N,headersMapper:Ie}},queryParameters:[Kr,di],urlParameters:[Xr],headerParameters:[ei,ri],isXML:true,serializer:ks};const Us={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Be},default:{bodyMapper:N,headersMapper:Se}},requestBody:ui,queryParameters:[Zr,Ai],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,mi,fi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks};const Gs={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:Qe},default:{bodyMapper:N,headersMapper:xe}},queryParameters:[Zr,ai,oi,hi,gi],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};class Container{constructor(r){this.client=r}create(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qs)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hs)}delete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Vs)}setMetadata(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,zs)}getAccessPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ys)}setAccessPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ws)}restore(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Js)}rename(r,i){const s={sourceContainerName:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Xs)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,$s)}filterBlobs(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ks)}acquireLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Zs)}releaseLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ea)}renewLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ta)}breakLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ra)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,ia)}listBlobFlatSegment(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,na)}listBlobHierarchySegment(r,i){const s={delimiter:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,sa)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,aa)}}const js=new C.Serializer(zr,true);const qs={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Re},default:{bodyMapper:N,headersMapper:Te}},queryParameters:[Zr,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,bi,Ci,vi],isXML:true,serializer:js};const Hs={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Ne},default:{bodyMapper:N,headersMapper:_e}},queryParameters:[Zr,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi],isXML:true,serializer:js};const Vs={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ke},default:{bodyMapper:N,headersMapper:De}},queryParameters:[Zr,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi],isXML:true,serializer:js};const zs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Oe},default:{bodyMapper:N,headersMapper:Pe}},queryParameters:[Zr,Ei,Si],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii],isXML:true,serializer:js};const Ys={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Le},default:{bodyMapper:N,headersMapper:Fe}},queryParameters:[Zr,Ei,Qi],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi],isXML:true,serializer:js};const Ws={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Me},default:{bodyMapper:N,headersMapper:Ue}},requestBody:xi,queryParameters:[Zr,Ei,Qi],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,bi,wi,Ii,Bi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:js};const Js={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ge},default:{bodyMapper:N,headersMapper:je}},queryParameters:[Zr,Ei,Ri],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ti,Ni],isXML:true,serializer:js};const Xs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:qe},default:{bodyMapper:N,headersMapper:He}},queryParameters:[Zr,Ei,_i],urlParameters:[Xr],headerParameters:[ei,ti,ri,ki,Di],isXML:true,serializer:js};const $s={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Ve},default:{bodyMapper:N,headersMapper:ze}},requestBody:ui,queryParameters:[Zr,Ai,Ei],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,mi,fi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:js};const Ks={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:Ye},default:{bodyMapper:N,headersMapper:We}},queryParameters:[Zr,ai,oi,hi,gi,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:js};const Zs={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Je},default:{bodyMapper:N,headersMapper:Xe}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Pi,Li,Fi],isXML:true,serializer:js};const ea={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:$e},default:{bodyMapper:N,headersMapper:Ke}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Mi,Ui],isXML:true,serializer:js};const ta={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ze},default:{bodyMapper:N,headersMapper:et}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Gi],isXML:true,serializer:js};const ra={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:tt},default:{bodyMapper:N,headersMapper:rt}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,ji,qi],isXML:true,serializer:js};const ia={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:it},default:{bodyMapper:N,headersMapper:nt}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Hi,Vi],isXML:true,serializer:js};const na={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:z,headersMapper:st},default:{bodyMapper:N,headersMapper:ot}},queryParameters:[Zr,ni,si,ai,oi,Ei,zi],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:js};const sa={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:$,headersMapper:ct},default:{bodyMapper:N,headersMapper:pt}},queryParameters:[Zr,ni,si,ai,oi,Ei,zi,Yi],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:js};const aa={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:dt},default:{bodyMapper:N,headersMapper:ut}},queryParameters:[Kr,di],urlParameters:[Xr],headerParameters:[ei,ri],isXML:true,serializer:js};class Blob$1{constructor(r){this.client=r}download(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,la)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ca)}delete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,pa)}undelete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,da)}setExpiry(r,i){const s={expiryOptions:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ua)}setHttpHeaders(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Aa)}setImmutabilityPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ma)}deleteImmutabilityPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,fa)}setLegalHold(r,i){const s={legalHold:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ha)}setMetadata(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ga)}acquireLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ea)}releaseLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ya)}renewLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ba)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ca)}breakLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,va)}createSnapshot(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,wa)}startCopyFromURL(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ia)}copyFromURL(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ba)}abortCopyFromURL(r,i){const s={copyId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Sa)}setTier(r,i){const s={tier:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Qa)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,xa)}query(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ra)}getTags(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ta)}setTags(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Na)}}const oa=new C.Serializer(zr,true);const la={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:At},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:At},default:{bodyMapper:N,headersMapper:mt}},queryParameters:[Zr,Wi,Ji],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Xi,$i,Ki,Zi,en,tn,rn,nn,sn],isXML:true,serializer:oa};const ca={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ft},default:{bodyMapper:N,headersMapper:ht}},queryParameters:[Zr,Wi,Ji],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Zi,en,tn,rn,nn,sn],isXML:true,serializer:oa};const pa={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Et},default:{bodyMapper:N,headersMapper:yt}},queryParameters:[Zr,Wi,Ji,ln],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,sn,an],isXML:true,serializer:oa};const da={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bt},default:{bodyMapper:N,headersMapper:Ct}},queryParameters:[Zr,Ri],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:oa};const ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vt},default:{bodyMapper:N,headersMapper:wt}},queryParameters:[Zr,cn],urlParameters:[Xr],headerParameters:[ei,ti,ri,pn,dn],isXML:true,serializer:oa};const Aa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:It},default:{bodyMapper:N,headersMapper:Bt}},queryParameters:[Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,sn,un,An,mn,hn,gn,En],isXML:true,serializer:oa};const ma={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:St},default:{bodyMapper:N,headersMapper:Qt}},queryParameters:[Zr,yn],urlParameters:[Xr],headerParameters:[ei,ti,ri,Bi,bn,Cn],isXML:true,serializer:oa};const fa={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:xt},default:{bodyMapper:N,headersMapper:Rt}},queryParameters:[Zr,yn],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:oa};const ha={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tt},default:{bodyMapper:N,headersMapper:Nt}},queryParameters:[Zr,vn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wn],isXML:true,serializer:oa};const ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:N,headersMapper:kt}},queryParameters:[Zr,Si],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In],isXML:true,serializer:oa};const Ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dt},default:{bodyMapper:N,headersMapper:Ot}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Pi,Li,Fi,rn,nn,sn],isXML:true,serializer:oa};const ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Pt},default:{bodyMapper:N,headersMapper:Lt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Mi,Ui,rn,nn,sn],isXML:true,serializer:oa};const ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ft},default:{bodyMapper:N,headersMapper:Mt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Gi,rn,nn,sn],isXML:true,serializer:oa};const Ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ut},default:{bodyMapper:N,headersMapper:Gt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Hi,Vi,rn,nn,sn],isXML:true,serializer:oa};const va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jt},default:{bodyMapper:N,headersMapper:qt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,ji,qi,rn,nn,sn],isXML:true,serializer:oa};const wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ht},default:{bodyMapper:N,headersMapper:Vt}},queryParameters:[Zr,Bn],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In],isXML:true,serializer:oa};const Ia={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:zt},default:{bodyMapper:N,headersMapper:Yt}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,rn,nn,sn,bn,Cn,Sn,Qn,xn,Rn,Tn,Nn,_n,kn,Dn,On,Pn],isXML:true,serializer:oa};const Ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Wt},default:{bodyMapper:N,headersMapper:Jt}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,rn,nn,sn,bn,Cn,In,Sn,xn,Rn,Tn,Nn,kn,Dn,Pn,Ln,Fn,Mn,Un],isXML:true,serializer:oa};const Sa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Xt},default:{bodyMapper:N,headersMapper:$t}},queryParameters:[Zr,Gn,qn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,jn],isXML:true,serializer:oa};const Qa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Kt},202:{headersMapper:Kt},default:{bodyMapper:N,headersMapper:Zt}},queryParameters:[Zr,Wi,Ji,Hn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,sn,Qn,Vn],isXML:true,serializer:oa};const xa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:er},default:{bodyMapper:N,headersMapper:tr}},queryParameters:[Kr,di],urlParameters:[Xr],headerParameters:[ei,ri],isXML:true,serializer:oa};const Ra={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:rr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:rr},default:{bodyMapper:N,headersMapper:ir}},requestBody:zn,queryParameters:[Zr,Wi,Yn],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,wi,Ii,Bi,Zi,en,tn,rn,nn,sn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:oa};const Ta={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:j,headersMapper:nr},default:{bodyMapper:N,headersMapper:sr}},queryParameters:[Zr,Wi,Ji,Wn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,sn],isXML:true,serializer:oa};const Na={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:ar},default:{bodyMapper:N,headersMapper:or}},requestBody:Jn,queryParameters:[Zr,Ji,Wn],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,wi,sn,Xn,$n],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:oa};class PageBlob{constructor(r){this.client=r}create(r,i,s){const a={contentLength:r,blobContentLength:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Da)}uploadPages(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Oa)}clearPages(r,i){const s={contentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Pa)}uploadPagesFromURL(r,i,s,a,l){const c={sourceUrl:r,sourceRange:i,contentLength:s,range:a,options:C.operationOptionsToRequestOptionsBase(l||{})};return this.client.sendOperationRequest(c,La)}getPageRanges(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fa)}getPageRangesDiff(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ma)}resize(r,i){const s={blobContentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ua)}updateSequenceNumber(r,i){const s={sequenceNumberAction:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ga)}copyIncremental(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ja)}}const _a=new C.Serializer(zr,true);const ka=new C.Serializer(zr,false);const Da={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:lr},default:{bodyMapper:N,headersMapper:cr}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Sn,Dn,Pn,Kn,Zn,es],isXML:true,serializer:_a};const Oa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:N,headersMapper:dr}},requestBody:rs,queryParameters:[Zr,ss],urlParameters:[Xr],headerParameters:[ei,ti,mi,wi,Ii,Bi,Xi,Zi,en,tn,rn,nn,sn,In,Xn,$n,ts,ns,as,os,ls,cs],mediaType:"binary",serializer:ka};const Pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ur},default:{bodyMapper:N,headersMapper:Ar}},queryParameters:[Zr,ss],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Ii,Bi,Xi,Zi,en,tn,rn,nn,sn,In,os,ls,cs,ps],isXML:true,serializer:_a};const La={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:mr},default:{bodyMapper:N,headersMapper:fr}},queryParameters:[Zr,ss],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,xn,Rn,Tn,Nn,Fn,Mn,as,os,ls,cs,ds,us,As,ms],isXML:true,serializer:_a};const Fa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ie,headersMapper:hr},default:{bodyMapper:N,headersMapper:gr}},queryParameters:[Zr,ai,oi,Wi,fs],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Xi,rn,nn,sn],isXML:true,serializer:_a};const Ma={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ie,headersMapper:Er},default:{bodyMapper:N,headersMapper:yr}},queryParameters:[Zr,ai,oi,Wi,fs,hs],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Xi,rn,nn,sn,gs],isXML:true,serializer:_a};const Ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:br},default:{bodyMapper:N,headersMapper:Cr}},queryParameters:[Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,Zn],isXML:true,serializer:_a};const Ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vr},default:{bodyMapper:N,headersMapper:wr}},queryParameters:[Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,sn,es,Es],isXML:true,serializer:_a};const ja={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ir},default:{bodyMapper:N,headersMapper:Br}},queryParameters:[Zr,ys],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,rn,nn,sn,kn],isXML:true,serializer:_a};class AppendBlob{constructor(r){this.client=r}create(r,i){const s={contentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Va)}appendBlock(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,za)}appendBlockFromUrl(r,i,s){const a={sourceUrl:r,contentLength:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ya)}seal(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Wa)}}const qa=new C.Serializer(zr,true);const Ha=new C.Serializer(zr,false);const Va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sr},default:{bodyMapper:N,headersMapper:Qr}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Dn,Pn,bs],isXML:true,serializer:qa};const za={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xr},default:{bodyMapper:N,headersMapper:Rr}},requestBody:rs,queryParameters:[Zr,Cs],urlParameters:[Xr],headerParameters:[ei,ti,mi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,Xn,$n,ts,ns,vs,ws],mediaType:"binary",serializer:Ha};const Ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Tr},default:{bodyMapper:N,headersMapper:Nr}},queryParameters:[Zr,Cs],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,xn,Rn,Tn,Nn,Fn,Mn,Xn,ds,As,vs,ws,Is],isXML:true,serializer:qa};const Wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_r},default:{bodyMapper:N,headersMapper:kr}},queryParameters:[Zr,Bs],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,ws],isXML:true,serializer:qa};class BlockBlob{constructor(r){this.client=r}upload(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,$a)}putBlobFromUrl(r,i,s){const a={contentLength:r,copySource:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ka)}stageBlock(r,i,s,a){const l={blockId:r,contentLength:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Za)}stageBlockFromURL(r,i,s,a){const l={blockId:r,contentLength:i,sourceUrl:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,eo)}commitBlockList(r,i){const s={blocks:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,to)}getBlockList(r,i){const s={listType:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ro)}}const Ja=new C.Serializer(zr,true);const Xa=new C.Serializer(zr,false);const $a={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:N,headersMapper:Or}},requestBody:rs,queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Sn,Dn,Pn,Xn,$n,ts,ns,Ss],mediaType:"binary",serializer:Xa};const Ka={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:N,headersMapper:Lr}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,In,Sn,xn,Rn,Tn,Nn,_n,kn,Dn,Fn,Mn,Un,Xn,Ss,Qs],isXML:true,serializer:Ja};const Za={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:N,headersMapper:Mr}},requestBody:rs,queryParameters:[Zr,xs,Rs],urlParameters:[Xr],headerParameters:[ei,ti,mi,wi,Zi,en,tn,In,Xn,$n,ts,ns],mediaType:"binary",serializer:Xa};const eo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ur},default:{bodyMapper:N,headersMapper:Gr}},queryParameters:[Zr,xs,Rs],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Zi,en,tn,In,xn,Rn,Tn,Nn,Fn,Mn,ds,As,Is],isXML:true,serializer:Ja};const to={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jr},default:{bodyMapper:N,headersMapper:qr}},requestBody:Ts,queryParameters:[Zr,Ns],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Sn,Dn,Pn,Xn,$n],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ja};const ro={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:te,headersMapper:Hr},default:{bodyMapper:N,headersMapper:Vr}},queryParameters:[Zr,Wi,Ns,_s],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,sn],isXML:true,serializer:Ja};const io=p.createClientLogger("storage-blob");const no="12.17.0";const so="2023-11-03";const ao=256*1024*1024;const oo=4e3*1024*1024;const lo=5e4;const co=8*1024*1024;const po=4*1024*1024;const uo=5;const Ao=100*1e3;const mo="https://storage.azure.com/.default";const fo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const ho={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const go={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"};const Eo="";const yo="*";const bo=1*1024*1024;const Co=256;const vo=4*bo;const wo="\r\n";const Io="HTTP/1.1";const Bo="AES256";const So=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Qo=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"];const xo=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const Ro="BlobUsesCustomerSpecifiedEncryption";const To="BlobDoesNotUseCustomerSpecifiedEncryption";const No=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const i=a.URLBuilder.parse(r);let s=i.getPath();s=s||"/";s=escape(s);i.setPath(s);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const s=r.split(";");for(const r of s){if(r.trim().startsWith(i)){return r.trim().match(i+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let i="";if(r.startsWith("UseDevelopmentStorage=true")){i=getProxyUriFromDevConnString(r);r=So}let s=getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let c=Buffer.from("accountKey","base64");let p="";l=getValueInConnString(r,"AccountName");c=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!s){a=getValueInConnString(r,"DefaultEndpointsProtocol");const i=a.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(r,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${p}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(c.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:c,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");let a=getValueInConnString(r,"AccountName");if(!a){a=getAccountNameFromUrl(s)}if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!i){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:s,accountName:a,accountSas:i}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,i){const s=a.URLBuilder.parse(r);let l=s.getPath();l=l?l.endsWith("/")?`${l}${i}`:`${l}/${i}`:i;s.setPath(l);const c=new URL(s.toString());return c.toString()}function setURLParameter(r,i,s){const l=a.URLBuilder.parse(r);l.setQueryParameter(i,s);return l.toString()}function getURLParameter(r,i){const s=a.URLBuilder.parse(r);return s.getQueryParameterValue(i)}function setURLHost(r,i){const s=a.URLBuilder.parse(r);s.setHost(i);return s.toString()}function getURLPath(r){const i=a.URLBuilder.parse(r);return i.getPath()}function getURLScheme(r){const i=a.URLBuilder.parse(r);return i.getScheme()}function getURLPathAndQuery(r){const i=a.URLBuilder.parse(r);const s=i.getPath();if(!s){throw new RangeError("Invalid url without valid path.")}let l=i.getQuery()||"";l=l.trim();if(l!==""){l=l.startsWith("?")?l:`?${l}`}return`${s}${l}`}function getURLQueries(r){let i=a.URLBuilder.parse(r).getQuery();if(!i){return{}}i=i.trim();i=i.startsWith("?")?i.substr(1):i;let s=i.split("&");s=s.filter((r=>{const i=r.indexOf("=");const s=r.lastIndexOf("=");return i>0&&i===s&&sl){r=r.slice(0,l)}const c=r+padStart(i.toString(),s-r.length,"0");return base64encode(c)}async function delay(r,i,s){return new Promise(((a,l)=>{let c;const abortHandler=()=>{if(c!==undefined){clearTimeout(c)}l(s)};const resolveHandler=()=>{if(i!==undefined){i.removeEventListener("abort",abortHandler)}a()};c=setTimeout(resolveHandler,r);if(i!==undefined){i.addEventListener("abort",abortHandler)}}))}function padStart(r,i,s=" "){if(String.prototype.padStart){return r.padStart(i,s)}s=s||" ";if(r.length>i){return r}else{i=i-r.length;if(i>s.length){s+=s.repeat(i/s.length)}return s.slice(0,i)+r}}function iEqual(r,i){return r.toLocaleLowerCase()===i.toLocaleLowerCase()}function getAccountNameFromUrl(r){const i=a.URLBuilder.parse(r);let s;try{if(i.getHost().split(".")[1]==="blob"){s=i.getHost().split(".")[0]}else if(isIpEndpointStyle(i)){s=i.getPath().split("/")[1]}else{s=""}return s}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){if(r.getHost()===undefined){return false}const i=r.getHost()+(r.getPort()===undefined?"":":"+r.getPort());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(i)||r.getPort()!==undefined&&No.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const i=[];for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];i.push(`${encodeURIComponent(s)}=${encodeURIComponent(a)}`)}}return i.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const i={blobTagSet:[]};for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];i.blobTagSet.push({key:s,value:a})}}return i}function toTags(r){if(r===undefined){return undefined}const i={};for(const s of r.blobTagSet){i[s.key]=s.value}return i}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const i=[];for(const s in r){const a=s.split("_");const l="or-";if(a[0].startsWith(l)){a[0]=a[0].substring(l.length)}const c={ruleId:a[1],replicationStatus:r[s]};const p=i.findIndex((r=>r.policyId===a[0]));if(p>-1){i[p].rules.push(c)}else{i.push({policyId:a[0],rules:[c]})}}return i}function attachCredential(r,i){r.credential=i;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return Object.assign(Object.assign({},r),{segment:{blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function ConvertInternalResponseOfListBlobHierarchy(r){var i;return Object.assign(Object.assign({},r),{segment:{blobPrefixes:(i=r.segment.blobPrefixes)===null||i===void 0?void 0:i.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i})),blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function*ExtractPageRangeInfoItems(r){let i=[];let s=[];if(r.pageRange)i=r.pageRange;if(r.clearRange)s=r.clearRange;let a=0;let l=0;while(a=1?Math.floor(s.maxTries):_o.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:_o.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:_o.maxRetryDelayInMs):_o.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:_o.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:_o.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,i,s){const a=r.clone();const l=i||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||s%2===1;if(!l){a.url=setURLHost(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=setURLParameter(a.url,fo.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let c;try{io.info(`RetryPolicy: =====> Try=${s} ${l?"Primary":"Secondary"}`);c=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(l,s,c)){return c}i=i||!l&&c.status===404}catch(r){io.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(l,s,c,r)){throw r}}await this.delay(l,s,r.abortSignal);return this.attemptSendRequest(r,i,++s)}shouldRetry(r,i,s,a){if(i>=this.retryOptions.maxTries){io.info(`RetryPolicy: Attempt(s) ${i} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const l=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const r of l){if(a.name.toUpperCase().includes(r)||a.message.toUpperCase().includes(r)||a.code&&a.code.toString().toUpperCase()===r){io.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(s||a){const i=s?s.status:a?a.statusCode:0;if(!r&&i===404){io.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(i===503||i===500){io.info(`RetryPolicy: Will retry for status code ${i}.`);return true}}if((a===null||a===void 0?void 0:a.code)==="PARSE_ERROR"&&(a===null||a===void 0?void 0:a.message.startsWith(`Error "Error: Unclosed root tag`))){io.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,s,a){let l=0;if(r){switch(this.retryOptions.retryPolicyType){case i.StorageRetryPolicyType.EXPONENTIAL:l=Math.min((Math.pow(2,s-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case i.StorageRetryPolicyType.FIXED:l=this.retryOptions.retryDelayInMs;break}}else{l=Math.random()*1e3}io.info(`RetryPolicy: Delay for ${l}ms`);return delay(l,a,ko)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,i){return new StorageRetryPolicy(r,i,this.retryOptions)}}class CredentialPolicy extends a.BaseRequestPolicy{sendRequest(r){return this._nextPolicy.sendRequest(this.signRequest(r))}signRequest(r){return r}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(r,i){super(r,i)}}class Credential{create(r,i){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(r,i){return new AnonymousCredentialPolicy(r,i)}}class TelemetryPolicy extends a.BaseRequestPolicy{constructor(r,i,s){super(r,i);this.telemetry=s}async sendRequest(r){if(a.isNode){if(!r.headers){r.headers=new a.HttpHeaders}if(!r.headers.get(go.USER_AGENT)){r.headers.set(go.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(r)}}class TelemetryPolicyFactory{constructor(r){const i=[];if(a.isNode){if(r){const s=r.userAgentPrefix||"";if(s.length>0&&i.indexOf(s)===-1){i.push(s)}}const s=`azsdk-js-storageblob/${no}`;if(i.indexOf(s)===-1){i.push(s)}let a=`(NODE-VERSION ${process.version})`;if(v){a=`(NODE-VERSION ${process.version}; ${v.type()} ${v.release()})`}if(i.indexOf(a)===-1){i.push(a)}}this.telemetryString=i.join(" ")}create(r,i){return new TelemetryPolicy(r,i,this.telemetryString)}}const Do=new a.DefaultHttpClient;function getCachedDefaultHttpClient(){return Do}const Oo={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Po={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,s){async function tryGetAccessToken(){if(Date.now()r.getToken(i,s);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;l=r;return l})).catch((r=>{a=null;l=null;throw r}))}return a}return async r=>{if(p.mustRefresh)return refresh(r);if(p.shouldRefresh){refresh(r)}return l}}function getChallenge(r){const i=r.headers.get("WWW-Authenticate");if(r.status===401&&i){return i}return}function parseChallenge(r){const i=r.slice("Bearer ".length);const s=`${i.trim()} `.split(" ").filter((r=>r));const a=s.map((r=>(([r,i])=>({[r]:i}))(r.trim().split("="))));return a.reduce(((r,i)=>Object.assign(Object.assign({},r),i)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,i){let s=createTokenCycler(r,i);class StorageBearerTokenChallengeAuthenticationPolicy extends a.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(i){if(!i.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const l=s;const c=(await l({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext}})).token;i.headers.set(Oo.HeaderConstants.AUTHORIZATION,`Bearer ${c}`);const p=await this._nextPolicy.sendRequest(i);if((p===null||p===void 0?void 0:p.status)===401){const l=getChallenge(p);if(l){const c=parseChallenge(l);const p=c.resource_id+Oo.DefaultScope;const d=a.URLBuilder.parse(c.authorization_uri);const u=d.getPath().split("/");const A=u[1];const h=createTokenCycler(r,p);const g=(await h({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext},tenantId:A})).token;s=h;i.headers.set(Oo.HeaderConstants.AUTHORIZATION,`Bearer ${g}`);return this._nextPolicy.sendRequest(i)}}return p}}return{create:(r,i)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,i)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const i=r;return Array.isArray(i.factories)&&typeof i.options==="object"&&typeof i.toServiceClientOptions==="function"}class Pipeline{constructor(r,i={}){this.factories=r;this.options=Object.assign(Object.assign({},i),{httpClient:i.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,i={}){var s;if(r===undefined){r=new AnonymousCredential}const l=new TelemetryPolicyFactory(i.userAgentOptions);const c=[a.tracingPolicy({userAgent:l.telemetryString}),a.keepAlivePolicy(i.keepAliveOptions),l,a.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(i.retryOptions),a.deserializationPolicy(undefined,{xmlCharKey:"#"}),a.logPolicy({logger:io.info,allowedHeaderNames:Qo,allowedQueryParameters:xo})];if(a.isNode){c.push(a.proxyPolicy(i.proxyOptions));c.push(a.disableResponseDecompressionPolicy())}c.push(a.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(s=i.audience)!==null&&s!==void 0?s:mo),r):r);return new Pipeline(c,i)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,i,s){super(r,i);this.factory=s}signRequest(r){r.headers.set(go.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(go.CONTENT_LENGTH,Buffer.byteLength(r.body))}const i=[r.method.toUpperCase(),this.getHeaderValueToSign(r,go.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,go.CONTENT_ENCODING),this.getHeaderValueToSign(r,go.CONTENT_LENGTH),this.getHeaderValueToSign(r,go.CONTENT_MD5),this.getHeaderValueToSign(r,go.CONTENT_TYPE),this.getHeaderValueToSign(r,go.DATE),this.getHeaderValueToSign(r,go.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,go.IF_MATCH),this.getHeaderValueToSign(r,go.IF_NONE_MATCH),this.getHeaderValueToSign(r,go.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,go.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const s=this.factory.computeHMACSHA256(i);r.headers.set(go.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`);return r}getHeaderValueToSign(r,i){const s=r.headers.get(i);if(!s){return""}if(i===go.CONTENT_LENGTH&&s==="0"){return""}return s}getCanonicalizedHeadersString(r){let i=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(go.PREFIX_FOR_STORAGE)));i.sort(((r,i)=>r.name.toLowerCase().localeCompare(i.name.toLowerCase())));i=i.filter(((r,i,s)=>{if(i>0&&r.name.toLowerCase()===s[i-1].name.toLowerCase()){return false}return true}));let s="";i.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}getCanonicalizedResourceString(r){const i=getURLPath(r.url)||"/";let s="";s+=`/${this.factory.accountName}${i}`;const a=getURLQueries(r.url);const l={};if(a){const r=[];for(const i in a){if(Object.prototype.hasOwnProperty.call(a,i)){const s=i.toLowerCase();l[s]=a[i];r.push(s)}}r.sort();for(const i of r){s+=`\n${i}:${decodeURIComponent(l[i])}`}}return s}}class StorageSharedKeyCredential extends Credential{constructor(r,i){super();this.accountName=r;this.accountKey=Buffer.from(i,"base64")}create(r,i){return new StorageSharedKeyCredentialPolicy(r,i,this)}computeHMACSHA256(r){return A.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const Lo="azure-storage-blob";const Fo="12.17.0";class StorageClientContext extends C.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=C.getDefaultUserAgentValue();i.userAgent=`${Lo}/${Fo} ${r}`}super(undefined,i);this.requestContentType="application/json; charset=utf-8";this.baseUri=i.endpoint||"{url}";this.url=r;this.version=i.version||"2023-11-03"}}class StorageClient{constructor(r,i){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=i;this.storageClientContext=new StorageClientContext(this.url,i.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(a.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(a.isTokenCredential(r.credential)){this.credential=r.credential}}const s=this.storageClientContext;s.requestContentType=undefined}}const Mo=c.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var i,s;return{spanOptions:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.spanOptions,tracingContext:(s=r===null||r===void 0?void 0:r.tracingOptions)===null||s===void 0?void 0:s.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new BlobSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"t":i.tag=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${s}`)}}return i}static from(r){const i=new BlobSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const i=new ContainerSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"l":i.list=true;break;case"t":i.tag=true;break;case"x":i.deleteVersion=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;case"f":i.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${s}`)}}return i}static from(r){const i=new ContainerSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.list){i.list=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}if(r.filterByTags){i.filterByTags=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,i){this.accountName=r;this.userDelegationKey=i;this.key=Buffer.from(i.value,"base64")}computeHMACSHA256(r){return A.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}i.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(i.SASProtocol||(i.SASProtocol={}));class SASQueryParameters{constructor(r,i,s,a,l,c,p,d,u,A,h,g,E,y,b,C,v,w,I,B){this.version=r;this.signature=i;if(s!==undefined&&typeof s!=="string"){this.permissions=s.permissions;this.services=s.services;this.resourceTypes=s.resourceTypes;this.protocol=s.protocol;this.startsOn=s.startsOn;this.expiresOn=s.expiresOn;this.ipRangeInner=s.ipRange;this.identifier=s.identifier;this.encryptionScope=s.encryptionScope;this.resource=s.resource;this.cacheControl=s.cacheControl;this.contentDisposition=s.contentDisposition;this.contentEncoding=s.contentEncoding;this.contentLanguage=s.contentLanguage;this.contentType=s.contentType;if(s.userDelegationKey){this.signedOid=s.userDelegationKey.signedObjectId;this.signedTenantId=s.userDelegationKey.signedTenantId;this.signedStartsOn=s.userDelegationKey.signedStartsOn;this.signedExpiresOn=s.userDelegationKey.signedExpiresOn;this.signedService=s.userDelegationKey.signedService;this.signedVersion=s.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=s.preauthorizedAgentObjectId;this.correlationId=s.correlationId}}else{this.services=a;this.resourceTypes=l;this.expiresOn=d;this.permissions=s;this.protocol=c;this.startsOn=p;this.ipRangeInner=u;this.encryptionScope=B;this.identifier=A;this.resource=h;this.cacheControl=g;this.contentDisposition=E;this.contentEncoding=y;this.contentLanguage=b;this.contentType=C;if(v){this.signedOid=v.signedObjectId;this.signedTenantId=v.signedTenantId;this.signedStartsOn=v.signedStartsOn;this.signedExpiresOn=v.signedExpiresOn;this.signedService=v.signedService;this.signedVersion=v.signedVersion;this.preauthorizedAgentObjectId=w;this.correlationId=I}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const i=[];for(const s of r){switch(s){case"sv":this.tryAppendQueryParameter(i,s,this.version);break;case"ss":this.tryAppendQueryParameter(i,s,this.services);break;case"srt":this.tryAppendQueryParameter(i,s,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(i,s,this.protocol);break;case"st":this.tryAppendQueryParameter(i,s,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(i,s,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(i,s,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(i,s,this.identifier);break;case"ses":this.tryAppendQueryParameter(i,s,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(i,s,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(i,s,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(i,s,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(i,s,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(i,s,this.signedService);break;case"skv":this.tryAppendQueryParameter(i,s,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(i,s,this.resource);break;case"sp":this.tryAppendQueryParameter(i,s,this.permissions);break;case"sig":this.tryAppendQueryParameter(i,s,this.signature);break;case"rscc":this.tryAppendQueryParameter(i,s,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(i,s,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(i,s,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(i,s,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(i,s,this.contentType);break;case"saoid":this.tryAppendQueryParameter(i,s,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(i,s,this.correlationId);break}}return i.join("&")}tryAppendQueryParameter(r,i,s){if(!s){return}i=encodeURIComponent(i);s=encodeURIComponent(s);if(i.length>0&&s.length>0){r.push(`${i}=${s}`)}}}function generateBlobSASQueryParameters(r,i,s){const a=r.version?r.version:so;const l=i instanceof StorageSharedKeyCredential?i:undefined;let c;if(l===undefined&&s!==undefined){c=new UserDelegationKeyCredential(s,i)}if(l===undefined&&c===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(l!==undefined){return generateBlobSASQueryParameters20201206(r,l)}else{return generateBlobSASQueryParametersUDK20201206(r,c)}}if(a>="2018-11-09"){if(l!==undefined){return generateBlobSASQueryParameters20181109(r,l)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,c)}else{return generateBlobSASQueryParametersUDK20181109(r,c)}}}if(a>="2015-04-05"){if(l!==undefined){return generateBlobSASQueryParameters20150405(r,l)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";if(r.blobName){s="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[a?a:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const c=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,c,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,i,s){const a=[`/blob/${r}/${i}`];if(s){a.push(`/${s}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const i=r.version?r.version:so;if(r.snapshotTime&&i<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(i<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(i<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(i<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=i;return r}class BlobLeaseClient{constructor(r,i){const s=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(s)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(s)}if(!i){i=a.generateUuid()}this._leaseId=i}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,i={}){var s,a,l,p,d,u;const{span:A,updatedOptions:h}=Mo("BlobLeaseClient-acquireLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==Eo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Eo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:i.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(u=i.conditions)===null||u===void 0?void 0:u.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(h)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async changeLease(r,i={}){var s,a,l,p,d,u;const{span:A,updatedOptions:h}=Mo("BlobLeaseClient-changeLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==Eo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Eo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const s=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(u=i.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(h)));this._leaseId=r;return s}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async releaseLease(r={}){var i,s,a,l,p,d;const{span:u,updatedOptions:A}=Mo("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)!==Eo||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Eo||((p=r.conditions)===null||p===void 0?void 0:p.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async renewLease(r={}){var i,s,a,l,p,d;const{span:u,updatedOptions:A}=Mo("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)!==Eo||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Eo||((p=r.conditions)===null||p===void 0?void 0:p.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async breakLease(r,i={}){var s,a,l,p,d,u;const{span:A,updatedOptions:h}=Mo("BlobLeaseClient-breakLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==Eo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Eo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const s=Object.assign({abortSignal:i.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(u=i.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(h));return await this._containerOrBlobOperation.breakLease(s)}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}}class RetriableReadableStream extends h.Readable{constructor(r,i,s,a,l={}){super({highWaterMark:l.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=i;this.source=r;this.start=s;this.offset=s;this.end=s+a-1;this.maxRetryRequests=l.maxRetryRequests&&l.maxRetryRequests>=0?l.maxRetryRequests:0;this.onProgress=l.onProgress;this.options=l;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(r,i){this.removeSourceEventHandlers();this.source.destroy();i(r===null?undefined:r)}}class BlobDownloadResponse{constructor(r,i,s,a,l={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,i,s,a,l)}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(){return this.originalResponse.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 tagCount(){return this.originalResponse.tagCount}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 lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}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 versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Uo=16;const Go=new Uint8Array([79,98,106,1]);const jo="avro.codec";const qo="avro.schema";class AvroParser{static async readFixedBytes(r,i,s={}){const a=await r.read(i,{abortSignal:s.abortSignal});if(a.length!==i){throw new Error("Hit stream end.")}return a}static async readByte(r,i={}){const s=await AvroParser.readFixedBytes(r,1,i);return s[0]}static async readZigZagLong(r,i={}){let s=0;let a=0;let l,c,p;do{l=await AvroParser.readByte(r,i);c=l&128;s|=(l&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return s>>1^-(s&1)}static async readLong(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readInt(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readNull(){return null}static async readBoolean(r,i={}){const s=await AvroParser.readByte(r,i);if(s===1){return true}else if(s===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,i={}){const s=await AvroParser.readFixedBytes(r,4,i);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat32(0,true)}static async readDouble(r,i={}){const s=await AvroParser.readFixedBytes(r,8,i);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat64(0,true)}static async readBytes(r,i={}){const s=await AvroParser.readLong(r,i);if(s<0){throw new Error("Bytes size was negative.")}return r.read(s,{abortSignal:i.abortSignal})}static async readString(r,i={}){const s=await AvroParser.readBytes(r,i);const a=new TextDecoder;return a.decode(s)}static async readMapPair(r,i,s={}){const a=await AvroParser.readString(r,s);const l=await i(r,s);return{key:a,value:l}}static async readMap(r,i,s={}){const readPairMethod=(r,s={})=>AvroParser.readMapPair(r,i,s);const a=await AvroParser.readArray(r,readPairMethod,s);const l={};for(const r of a){l[r.key]=r.value}return l}static async readArray(r,i,s={}){const a=[];for(let l=await AvroParser.readLong(r,s);l!==0;l=await AvroParser.readLong(r,s)){if(l<0){await AvroParser.readLong(r,s);l=-l}while(l--){const l=await i(r,s);a.push(l)}}return a}}var Ho;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(Ho||(Ho={}));var Vo;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Vo||(Vo={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Vo.NULL:case Vo.BOOLEAN:case Vo.INT:case Vo.LONG:case Vo.FLOAT:case Vo.DOUBLE:case Vo.BYTES:case Vo.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const i=r.type;try{return AvroType.fromStringSchema(i)}catch(r){}switch(i){case Ho.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const s={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const i of r.fields){s[i.name]=AvroType.fromSchema(i.type)}return new AvroRecordType(s,r.name);case Ho.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case Ho.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case Ho.ARRAY:case Ho.FIXED:default:throw new Error(`Unexpected Avro type ${i} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,i={}){switch(this._primitive){case Vo.NULL:return AvroParser.readNull();case Vo.BOOLEAN:return AvroParser.readBoolean(r,i);case Vo.INT:return AvroParser.readInt(r,i);case Vo.LONG:return AvroParser.readLong(r,i);case Vo.FLOAT:return AvroParser.readFloat(r,i);case Vo.DOUBLE:return AvroParser.readDouble(r,i);case Vo.BYTES:return AvroParser.readBytes(r,i);case Vo.STRING:return AvroParser.readString(r,i);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,i={}){const s=await AvroParser.readInt(r,i);return this._symbols[s]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,i={}){const s=await AvroParser.readInt(r,i);return this._types[s].read(r,i)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,i={}){const readItemMethod=(r,i)=>this._itemType.read(r,i);return AvroParser.readMap(r,readItemMethod,i)}}class AvroRecordType extends AvroType{constructor(r,i){super();this._fields=r;this._name=i}async read(r,i={}){const s={};s["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){s[a]=await this._fields[a].read(r,i)}}return s}}function arraysEqual(r,i){if(r===i)return true;if(r==null||i==null)return false;if(r.length!==i.length)return false;for(let s=0;s0){for(let i=0;i0}parseObjects(r={}){return l.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield l.__await(this.initialize(r))}while(this.hasNext()){const i=yield l.__await(this._itemType.read(this._dataStream,{abortSignal:r.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const i=yield l.__await(AvroParser.readFixedBytes(this._dataStream,Uo,{abortSignal:r.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,i)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield l.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}catch(r){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield l.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}}yield yield l.__await(i)}}))}}class AvroReadable{}const zo=new d.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(r){super();this._readable=r;this._position=0}toUint8Array(r){if(typeof r==="string"){return Buffer.from(r)}return r}get position(){return this._position}async read(r,i={}){var s;if((s=i.abortSignal)===null||s===void 0?void 0:s.aborted){throw zo}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const a=this._readable.read(r);if(a){this._position+=a.length;return this.toUint8Array(a)}else{return new Promise(((s,a)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(i.abortSignal){i.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const i=this._readable.read(r);if(i){this._position+=i.length;cleanUp();s(this.toUint8Array(i))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(zo)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(i.abortSignal){i.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends h.Readable{constructor(r,i={}){super();this.avroPaused=true;this.source=r;this.onProgress=i.onProgress;this.onError=i.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:i.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const i=r.value;const s=i.$schema;if(typeof s!=="string"){throw Error("Missing schema in avro record.")}switch(s){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=i.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=i.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=i.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=i.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const s=i.name;if(typeof s!=="string"){throw Error("Invalid name in avro error record.")}const a=i.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const l=i.position;if(typeof l!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:l,name:s,isFatal:r,description:a})}break;default:throw Error(`Unknown schema ${s} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(r,i={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,i)}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(){return undefined}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(){return undefined}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}i.BlockBlobTier=void 0;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(i.BlockBlobTier||(i.BlockBlobTier={}));i.PremiumPageBlobTier=void 0;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(i.PremiumPageBlobTier||(i.PremiumPageBlobTier={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,i){if(r&&!i){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=Bo}}i.StorageBlobAudience=void 0;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(i.StorageBlobAudience||(i.StorageBlobAudience={}));function getBlobServiceAccountAudience(r){return`https://${r}.blob.core.windows.net/.default`}function rangeResponseFromModel(r){const i=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const s=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return Object.assign(Object.assign({},r),{pageRange:i,clearRange:s,_response:Object.assign(Object.assign({},r._response),{parsedBody:{pageRange:i,clearRange:s}})})}class BlobBeginCopyFromUrlPoller extends g.Poller{constructor(r){const{blobClient:i,copySource:s,intervalInMs:a=15e3,onProgress:l,resumeFrom:c,startCopyFromURLOptions:p}=r;let d;if(c){d=JSON.parse(c).state}const u=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},d),{blobClient:i,copySource:s,startCopyFromURLOptions:p}));super(u);if(typeof l==="function"){this.onProgress(l)}this.intervalInMs=a}delay(){return a.delay(this.intervalInMs)}}const Yo=async function cancel(r={}){const i=this.state;const{copyId:s}=i;if(i.isCompleted){return makeBlobBeginCopyFromURLPollOperation(i)}if(!s){i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)}await i.blobClient.abortCopyFromURL(s,{abortSignal:r.abortSignal});i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)};const Wo=async function update(r={}){const i=this.state;const{blobClient:s,copySource:a,startCopyFromURLOptions:l}=i;if(!i.isStarted){i.isStarted=true;const r=await s.startCopyFromURL(a,l);i.copyId=r.copyId;if(r.copyStatus==="success"){i.result=r;i.isCompleted=true}}else if(!i.isCompleted){try{const s=await i.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:a,copyProgress:l}=s;const c=i.copyProgress;if(l){i.copyProgress=l}if(a==="pending"&&l!==c&&typeof r.fireProgress==="function"){r.fireProgress(i)}else if(a==="success"){i.result=s;i.isCompleted=true}else if(a==="failed"){i.error=new Error(`Blob copy failed with reason: "${s.copyStatusDescription||"unknown"}"`);i.isCompleted=true}}catch(r){i.error=r;i.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(i)};const Jo=function toString(){return JSON.stringify({state:this.state},((r,i)=>{if(r==="blobClient"){return undefined}return i}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:Object.assign({},r),cancel:Yo,toString:Jo,update:Wo}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.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 r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var Xo;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(Xo||(Xo={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=Xo.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new E.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,i)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=Xo.Error;i(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const i=[];let s=0;while(sr-s){const a=this.byteOffsetInCurrentBuffer+r-s;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=r-s;this.byteOffsetInCurrentBuffer=a;s=r;break}else{const r=this.byteOffsetInCurrentBuffer+c;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(c===l){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=c;s+=c}}if(i.length>1){this.push(Buffer.concat(i))}else if(i.length===1){this.push(i[0])}}}const $o=s(14300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,i,s){this.buffers=[];this.capacity=r;this._size=0;const a=Math.ceil(r/$o);for(let i=0;i0){r[0]=r[0].slice(c)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,i,s,a,l,c){this.emitter=new E.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(i<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${i}`)}if(s<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${s}`)}if(l<=0){throw new RangeError(`concurrency must be larger than 0, current is ${l}`)}this.bufferSize=i;this.maxBuffers=s;this.readable=r;this.outgoingHandler=a;this.concurrency=l;this.encoding=c}async do(){return new Promise(((r,i)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();i(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengths.getReadableStream()),s.size,this.offset).then(r).catch(i)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const i=r.size;this.executingOutgoingHandlers++;this.offset+=i;try{await this.outgoingHandler((()=>r.getReadableStream()),i,this.offset-i)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(r,i,s,a,l){let c=0;const p=a-s;return new Promise(((a,d)=>{const u=setTimeout((()=>d(new Error(`The operation cannot be completed in timeout.`))),Ao);r.on("readable",(()=>{if(c>=p){clearTimeout(u);a();return}let d=r.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,l)}const A=c+d.length>p?p-c:d.length;i.fill(d.slice(0,A),s+c,s+c+A);c+=A}));r.on("end",(()=>{clearTimeout(u);if(c{clearTimeout(u);d(r)}))}))}async function streamToBuffer2(r,i,s){let a=0;const l=i.length;return new Promise(((c,p)=>{r.on("readable",(()=>{let c=r.read();if(!c){return}if(typeof c==="string"){c=Buffer.from(c,s)}if(a+c.length>l){p(new Error(`Stream exceeds buffer size. Buffer size: ${l}`));return}i.fill(c,a,a+c.length);a+=c.length}));r.on("end",(()=>{c(a)}));r.on("error",p)}))}async function readStreamToLocalFile(r,i){return new Promise(((s,a)=>{const l=w.createWriteStream(i);r.on("error",(r=>{a(r)}));l.on("error",(r=>{a(r)}));l.on("close",s);r.pipe(l)}))}const Ko=I.promisify(w.stat);const Zo=w.createReadStream;class BlobClient extends StorageClient{constructor(r,i,s,l){l=l||{};let c;let p;if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;if(s&&typeof s!=="string"){l=s}c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,fo.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,fo.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,fo.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,i,s={}){var l;s.conditions=s.conditions||{};s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const{span:p,updatedOptions:d}=Mo("BlobClient-download",s);try{const c=await this.blobContext.download(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),requestOptions:{onDownloadProgress:a.isNode?undefined:s.onProgress},range:r===0&&!i?undefined:rangeToString({offset:r,count:i}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey},convertTracingToRequestOptionsBase(d)));const p=Object.assign(Object.assign({},c),{_response:c._response,objectReplicationDestinationPolicyId:c.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(c.objectReplicationRules)});if(!a.isNode){return p}if(s.maxRetryRequests===undefined||s.maxRetryRequests<0){s.maxRetryRequests=uo}if(c.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!c.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async i=>{var a;const l={leaseAccessConditions:s.conditions,modifiedAccessConditions:{ifMatch:s.conditions.ifMatch||c.etag,ifModifiedSince:s.conditions.ifModifiedSince,ifNoneMatch:s.conditions.ifNoneMatch,ifUnmodifiedSince:s.conditions.ifUnmodifiedSince,ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions},range:rangeToString({count:r+c.contentLength-i,offset:i}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:s.abortSignal},l))).readableStreamBody}),r,c.contentLength,{maxRetryRequests:s.maxRetryRequests,onProgress:s.onProgress})}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async exists(r={}){const{span:i,updatedOptions:s}=Mo("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:s.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===Ro||r.details.errorCode===To)){return true}i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getProperties(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const s=await this.blobContext.getProperties(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(a)));return Object.assign(Object.assign({},s),{_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)})}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async delete(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-delete",r);r.conditions=r.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteIfExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("BlobClient-deleteIfExists",r);try{const r=await this.delete(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undelete(r={}){const{span:i,updatedOptions:s}=Mo("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setHTTPHeaders(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setHTTPHeaders",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:r,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setMetadata",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setTags(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setTags",i);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)),{tags:toBlobTags(r)}))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getTags(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-getTags",r);try{const s=await this.blobContext.getTags(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)));const l=Object.assign(Object.assign({},s),{_response:s._response,tags:toTags({blobTagSet:s.blobTagSet})||{}});return l}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-createSnapshot",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async beginCopyFromURL(r,i={}){const s={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:s,copySource:r,intervalInMs:i.intervalInMs,onProgress:i.onProgress,resumeFrom:i.resumeFrom,startCopyFromURLOptions:i});await a.poll();return a}async abortCopyFromURL(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobClient-abortCopyFromURL",i);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async syncCopyFromURL(r,i={}){var s,a,l;const{span:p,updatedOptions:d}=Mo("BlobClient-syncCopyFromURL",i);i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};try{return await this.blobContext.copyFromURL(r,Object.assign({abortSignal:i.abortSignal,metadata:i.metadata,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},sourceContentMD5:i.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,encryptionScope:i.encryptionScope,copySourceTags:i.copySourceTags},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async setAccessTier(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setAccessTier",i);try{return await this.blobContext.setTier(toAccessTier(r),Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),rehydratePriority:i.rehydratePriority},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async downloadToBuffer(r,i,s,a={}){let l;let p=0;let d=0;let u=a;if(r instanceof Buffer){l=r;p=i||0;d=typeof s==="number"?s:0}else{p=typeof r==="number"?r:0;d=typeof i==="number"?i:0;u=s||{}}const{span:A,updatedOptions:h}=Mo("BlobClient-downloadToBuffer",u);try{if(!u.blockSize){u.blockSize=0}if(u.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(u.blockSize===0){u.blockSize=po}if(p<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!u.conditions){u.conditions={}}if(!d){const r=await this.getProperties(Object.assign(Object.assign({},u),{tracingOptions:Object.assign(Object.assign({},u.tracingOptions),convertTracingToRequestOptionsBase(h))}));d=r.contentLength-p;if(d<0){throw new RangeError(`offset ${p} shouldn't be larger than blob size ${r.contentLength}`)}}if(!l){try{l=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(l.length{let i=p+d;if(s+u.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},r),this.credential).toString();i(appendToURLQuery(this.url,s))}))}async deleteImmutabilityPolicy(r){const{span:i,updatedOptions:s}=Mo("BlobClient-deleteImmutabilityPolicy",r);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:r===null||r===void 0?void 0:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setImmutabilityPolicy(r,i){const{span:s,updatedOptions:a}=Mo("BlobClient-setImmutabilityPolicy",i);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal,immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,modifiedAccessConditions:i===null||i===void 0?void 0:i.modifiedAccessCondition},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setLegalHold(r,i){const{span:s,updatedOptions:a}=Mo("BlobClient-setLegalHold",i);try{return await this.blobContext.setLegalHold(r,Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}}class AppendBlobClient extends BlobClient{constructor(r,i,s,l){let c;let p;l=l||{};if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(r){return new AppendBlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){var i,s,a;const{span:l,updatedOptions:p}=Mo("AppendBlobClient-create",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(s=r.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(a=r.immutabilityPolicy)===null||a===void 0?void 0:a.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async createIfNotExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("AppendBlobClient-createIfNotExists",r);const p={ifNoneMatch:yo};try{const r=await this.create(Object.assign(Object.assign({},l),{conditions:p}));return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async seal(r={}){var i;const{span:s,updatedOptions:a}=Mo("AppendBlobClient-seal",r);r.conditions=r.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async appendBlock(r,i,s={}){var a;const{span:l,updatedOptions:p}=Mo("AppendBlobClient-appendBlock",s);s.conditions=s.conditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(i,r,Object.assign({abortSignal:s.abortSignal,appendPositionAccessConditions:s.conditions,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async appendBlockFromURL(r,i,s,a={}){var l;const{span:p,updatedOptions:d}=Mo("AppendBlobClient-appendBlockFromURL",a);a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(r,0,Object.assign({abortSignal:a.abortSignal,sourceRange:rangeToString({offset:i,count:s}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions.ifMatch,sourceIfModifiedSince:a.sourceConditions.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class BlockBlobClient extends BlobClient{constructor(r,i,s,l){let c;let p;l=l||{};if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;if(s&&typeof s!=="string"){l=s}c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(r){return new BlockBlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,i={}){var s;ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const{span:l,updatedOptions:p}=Mo("BlockBlobClient-query",i);try{if(!a.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const l=await this._blobContext.query(Object.assign({abortSignal:i.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(i.inputTextConfiguration),outputSerialization:toQuerySerialization(i.outputTextConfiguration)},leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey},convertTracingToRequestOptionsBase(p)));return new BlobQueryResponse(l,{abortSignal:i.abortSignal,onProgress:i.onProgress,onError:i.onError})}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async upload(r,i,s={}){var a,l,p;s.conditions=s.conditions||{};const{span:d,updatedOptions:u}=Mo("BlockBlobClient-upload",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(i,r,Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:s.onProgress},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:(l=s.immutabilityPolicy)===null||l===void 0?void 0:l.expiriesOn,immutabilityPolicyMode:(p=s.immutabilityPolicy)===null||p===void 0?void 0:p.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async syncUploadFromURL(r,i={}){var s,a,l,p,d;i.conditions=i.conditions||{};const{span:u,updatedOptions:A}=Mo("BlockBlobClient-syncUploadFromURL",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,r,Object.assign(Object.assign(Object.assign({},i),{blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:i.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(s=i.sourceConditions)===null||s===void 0?void 0:s.ifMatch,sourceIfModifiedSince:(a=i.sourceConditions)===null||a===void 0?void 0:a.ifModifiedSince,sourceIfNoneMatch:(l=i.sourceConditions)===null||l===void 0?void 0:l.ifNoneMatch,sourceIfUnmodifiedSince:(p=i.sourceConditions)===null||p===void 0?void 0:p.ifUnmodifiedSince,sourceIfTags:(d=i.sourceConditions)===null||d===void 0?void 0:d.tagConditions},cpkInfo:i.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),copySourceTags:i.copySourceTags}),convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async stageBlock(r,i,s,a={}){const{span:l,updatedOptions:p}=Mo("BlockBlobClient-stageBlock",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(r,s,i,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async stageBlockFromURL(r,i,s=0,a,l={}){const{span:p,updatedOptions:d}=Mo("BlockBlobClient-stageBlockFromURL",l);try{ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(r,0,i,Object.assign({abortSignal:l.abortSignal,leaseAccessConditions:l.conditions,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,sourceRange:s===0&&!a?undefined:rangeToString({offset:s,count:a}),cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:httpAuthorizationToString(l.sourceAuthorization)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async commitBlockList(r,i={}){var s,a,l;i.conditions=i.conditions||{};const{span:p,updatedOptions:d}=Mo("BlockBlobClient-commitBlockList",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:r},Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async getBlockList(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlockBlobClient-getBlockList",i);try{const a=await this.blockBlobContext.getBlockList(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadData(r,i={}){const{span:s,updatedOptions:l}=Mo("BlockBlobClient-uploadData",i);try{if(a.isNode){let i;if(r instanceof Buffer){i=r}else if(r instanceof ArrayBuffer){i=Buffer.from(r)}else{r=r;i=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,s)=>i.slice(r,r+s)),i.byteLength,l)}else{const i=new Blob([r]);return this.uploadSeekableInternal(((r,s)=>i.slice(r,r+s)),i.size,l)}}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadBrowserData(r,i={}){const{span:s,updatedOptions:a}=Mo("BlockBlobClient-uploadBrowserData",i);try{const i=new Blob([r]);return await this.uploadSeekableInternal(((r,s)=>i.slice(r,r+s)),i.size,a)}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadSeekableInternal(r,i,s={}){if(!s.blockSize){s.blockSize=0}if(s.blockSize<0||s.blockSize>oo){throw new RangeError(`blockSize option must be >= 0 and <= ${oo}`)}if(s.maxSingleShotSize!==0&&!s.maxSingleShotSize){s.maxSingleShotSize=ao}if(s.maxSingleShotSize<0||s.maxSingleShotSize>ao){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ao}`)}if(s.blockSize===0){if(i>oo*lo){throw new RangeError(`${i} is too larger to upload to a block blob.`)}if(i>s.maxSingleShotSize){s.blockSize=Math.ceil(i/lo);if(s.blockSizelo){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${lo}`)}const c=[];const d=a.generateUuid();let u=0;const A=new Batch(s.concurrency);for(let a=0;a{const A=generateBlockID(d,a);const h=s.blockSize*a;const g=a===l-1?i:h+s.blockSize;const E=g-h;c.push(A);await this.stageBlock(A,r(h,E),E,{abortSignal:s.abortSignal,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:p.tracingOptions});u+=E;if(s.onProgress){s.onProgress({loadedBytes:u})}}))}await A.do();return this.commitBlockList(c,p)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadFile(r,i={}){const{span:s,updatedOptions:a}=Mo("BlockBlobClient-uploadFile",i);try{const s=(await Ko(r)).size;return await this.uploadSeekableInternal(((i,s)=>()=>Zo(r,{autoClose:true,end:s?i+s-1:Infinity,start:i})),s,Object.assign(Object.assign({},i),{tracingOptions:Object.assign(Object.assign({},i.tracingOptions),convertTracingToRequestOptionsBase(a))}))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadStream(r,i=co,s=5,l={}){if(!l.blobHTTPHeaders){l.blobHTTPHeaders={}}if(!l.conditions){l.conditions={}}const{span:p,updatedOptions:d}=Mo("BlockBlobClient-uploadStream",l);try{let c=0;const p=a.generateUuid();let u=0;const A=[];const h=new BufferScheduler(r,i,s,(async(r,i)=>{const s=generateBlockID(p,c);A.push(s);c++;await this.stageBlock(s,r,i,{conditions:l.conditions,encryptionScope:l.encryptionScope,tracingOptions:d.tracingOptions});u+=i;if(l.onProgress){l.onProgress({loadedBytes:u})}}),Math.ceil(s/4*3));await h.do();return await this.commitBlockList(A,Object.assign(Object.assign({},l),{tracingOptions:Object.assign(Object.assign({},l.tracingOptions),convertTracingToRequestOptionsBase(d))}))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class PageBlobClient extends BlobClient{constructor(r,i,s,l){let c;let p;l=l||{};if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(r){return new PageBlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,i={}){var s,a,l;i.conditions=i.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-create",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,blobSequenceNumber:i.blobSequenceNumber,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async createIfNotExists(r,i={}){var s,a;const{span:l,updatedOptions:p}=Mo("PageBlobClient-createIfNotExists",i);try{const s={ifNoneMatch:yo};const a=await this.create(r,Object.assign(Object.assign({},i),{conditions:s,tracingOptions:p.tracingOptions}));return Object.assign(Object.assign({succeeded:true},a),{_response:a._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="BlobAlreadyExists"){l.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadPages(r,i,s,a={}){var l;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-uploadPages",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(s,r,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},range:rangeToString({offset:i,count:s}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async uploadPagesFromURL(r,i,s,a,l={}){var p;l.conditions=l.conditions||{};l.sourceConditions=l.sourceConditions||{};const{span:d,updatedOptions:u}=Mo("PageBlobClient-uploadPagesFromURL",l);try{ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:i,count:a}),0,rangeToString({offset:s,count:a}),Object.assign({abortSignal:l.abortSignal,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,leaseAccessConditions:l.conditions,sequenceNumberAccessConditions:l.conditions,modifiedAccessConditions:Object.assign(Object.assign({},l.conditions),{ifTags:(p=l.conditions)===null||p===void 0?void 0:p.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:l.sourceConditions.ifMatch,sourceIfModifiedSince:l.sourceConditions.ifModifiedSince,sourceIfNoneMatch:l.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:l.sourceConditions.ifUnmodifiedSince},cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:httpAuthorizationToString(l.sourceAuthorization)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async clearPages(r=0,i,s={}){var a;s.conditions=s.conditions||{};const{span:l,updatedOptions:p}=Mo("PageBlobClient-clearPages",s);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:i}),sequenceNumberAccessConditions:s.conditions,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getPageRanges(r=0,i,s={}){var a;s.conditions=s.conditions||{};const{span:l,updatedOptions:p}=Mo("PageBlobClient-getPageRanges",s);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(p))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async listPageRangesSegment(r=0,i,s,a={}){var l;const{span:p,updatedOptions:d}=Mo("PageBlobClient-getPageRangesSegment",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),range:rangeToString({offset:r,count:i}),marker:s,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}listPageRangeItemSegments(r=0,i,s,a={}){return l.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let c;if(!!s||s===undefined){do{c=yield l.__await(this.listPageRangesSegment(r,i,s,a));s=c.continuationToken;yield yield l.__await(yield l.__await(c))}while(s)}}))}listPageRangeItems(r=0,i,s={}){return l.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var a,c;let p;try{for(var d=l.__asyncValues(this.listPageRangeItemSegments(r,i,p,s)),u;u=yield l.__await(d.next()),!u.done;){const r=u.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield l.__await(c.call(d))}finally{if(a)throw a.error}}}))}listPageRanges(r=0,i,s={}){s.conditions=s.conditions||{};const a=this.listPageRangeItems(r,i,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(r,i,a.continuationToken,Object.assign({maxPageSize:a.maxPageSize},s))}}async getPageRangesDiff(r,i,s,a={}){var l;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-getPageRangesDiff",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),prevsnapshot:s,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async listPageRangesDiffSegment(r,i,s,a,l){var p;const{span:d,updatedOptions:u}=Mo("PageBlobClient-getPageRangesDiffSegment",l);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:l===null||l===void 0?void 0:l.abortSignal,leaseAccessConditions:l===null||l===void 0?void 0:l.conditions,modifiedAccessConditions:Object.assign(Object.assign({},l===null||l===void 0?void 0:l.conditions),{ifTags:(p=l===null||l===void 0?void 0:l.conditions)===null||p===void 0?void 0:p.tagConditions}),prevsnapshot:s,range:rangeToString({offset:r,count:i}),marker:a,maxPageSize:l===null||l===void 0?void 0:l.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeDiffItemSegments(r,i,s,a,c){return l.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let p;if(!!a||a===undefined){do{p=yield l.__await(this.listPageRangesDiffSegment(r,i,s,a,c));a=p.continuationToken;yield yield l.__await(yield l.__await(p))}while(a)}}))}listPageRangeDiffItems(r,i,s,a){return l.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var c,p;let d;try{for(var u=l.__asyncValues(this.listPageRangeDiffItemSegments(r,i,s,d,a)),A;A=yield l.__await(u.next()),!A.done;){const r=A.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){c={error:r}}finally{try{if(A&&!A.done&&(p=u.return))yield l.__await(p.call(u))}finally{if(c)throw c.error}}}))}listPageRangesDiff(r,i,s,a={}){a.conditions=a.conditions||{};const l=this.listPageRangeDiffItems(r,i,s,Object.assign({},a));return{next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(l={})=>this.listPageRangeDiffItemSegments(r,i,s,l.continuationToken,Object.assign({maxPageSize:l.maxPageSize},a))}}async getPageRangesDiffForManagedDisks(r,i,s,a={}){var l;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-GetPageRangesDiffForManagedDisks",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),prevSnapshotUrl:s,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async resize(r,i={}){var s;i.conditions=i.conditions||{};const{span:a,updatedOptions:l}=Mo("PageBlobClient-resize",i);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async updateSequenceNumber(r,i,s={}){var a;s.conditions=s.conditions||{};const{span:l,updatedOptions:p}=Mo("PageBlobClient-updateSequenceNumber",s);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:s.abortSignal,blobSequenceNumber:i,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async startCopyIncremental(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("PageBlobClient-startCopyIncremental",i);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}async function getBodyAsText(r){let i=Buffer.alloc(vo);const s=await streamToBuffer2(r.readableStreamBody,i);i=i.slice(0,s);return i.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const el=": ";const tl=" ";const rl=-1;class BatchResponseParser{constructor(r,i){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!i||i.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=i;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${wo}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==ho.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const i=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const s=i.length;if(s!==this.subRequests.size&&s!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const l=new Array(s);let c=0;let p=0;for(let r=0;r=0&&E{if(this.keys[r]===undefined||this.keys[r]===il.UNLOCKED){this.keys[r]=il.LOCKED;i()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=il.LOCKED;i()}))}}))}static async unlock(r){return new Promise((i=>{if(this.keys[r]===il.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];i()}))}static onUnlockEvent(r,i){if(this.listeners[r]===undefined){this.listeners[r]=[i]}else{this.listeners[r].push(i)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const i=this.listeners[r].shift();setImmediate((()=>{i.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,i){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await i();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,i,s){let l;let p;if(typeof r==="string"&&(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i))){l=r;p=i}else if(r instanceof BlobClient){l=r.url;p=r.credential;s=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!s){s={}}const{span:d,updatedOptions:u}=Mo("BatchDeleteRequest-addSubRequest",s);try{this.setBatchType("delete");await this.addSubRequestInternal({url:l,credential:p},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(p)).delete(u)}))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async setBlobAccessTier(r,i,s,l){let p;let d;let u;if(typeof r==="string"&&(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i))){p=r;d=i;u=s}else if(r instanceof BlobClient){p=r.url;d=r.credential;u=i;l=s}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!l){l={}}const{span:A,updatedOptions:h}=Mo("BatchSetTierRequest-addSubRequest",l);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:p,credential:d},(async()=>{await new BlobClient(p,this.batchRequest.createPipeline(d)).setAccessTier(u,h)}))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const r=a.generateUuid();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${wo}${go.CONTENT_TYPE}: application/http${wo}${go.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const i=r instanceof AnonymousCredential;const s=3+(i?0:1);const l=new Array(s);l[0]=a.deserializationPolicy();l[1]=new BatchHeaderFilterPolicyFactory;if(!i){l[2]=a.isTokenCredential(r)?attachCredential(a.bearerTokenAuthenticationPolicy(r,mo),r):r}l[s-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(l,{})}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${go.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${getURLPathAndQuery(r.url)} ${Io}${wo}`].join(wo);for(const i of r.headers.headersArray()){this.body+=`${i.name}: ${i.value}${wo}`}this.body+=wo}preAddSubRequest(r){if(this.operationCount>=Co){throw new RangeError(`Cannot exceed ${Co} sub requests in a single batch`)}const i=getURLPath(r.url);if(!i||i===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${wo}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends a.BaseRequestPolicy{constructor(r,i,s){super(i,s);this.dummyResponse={request:new a.WebResource,status:200,headers:new a.HttpHeaders};this.batchRequest=r}async sendRequest(r){await this.batchRequest.appendSubRequestToBody(r);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(r){this.batchRequest=r}create(r,i){return new BatchRequestAssemblePolicy(this.batchRequest,r,i)}}class BatchHeaderFilterPolicy extends a.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){let i="";for(const s of r.headers.headersArray()){if(iEqual(s.name,go.X_MS_VERSION)){i=s.name}}if(i!==""){r.headers.remove(i)}return this._nextPolicy.sendRequest(r)}}class BatchHeaderFilterPolicyFactory{create(r,i){return new BatchHeaderFilterPolicy(r,i)}}class BlobBatchClient{constructor(r,i,s){let a;if(isPipelineLike(i)){a=i}else if(!i){a=newPipeline(new AnonymousCredential,s)}else{a=newPipeline(i,s)}const l=new StorageClientContext(r,a.toServiceClientOptions());const c=getURLPath(r);if(c&&c!=="/"){this.serviceOrContainerContext=new Container(l)}else{this.serviceOrContainerContext=new Service(l)}}createBatch(){return new BlobBatch}async deleteBlobs(r,i,s){const a=new BlobBatch;for(const l of r){if(typeof l==="string"){await a.deleteBlob(l,i,s)}else{await a.deleteBlob(l,i)}}return this.submitBatch(a)}async setBlobsAccessTier(r,i,s,a){const l=new BlobBatch;for(const c of r){if(typeof c==="string"){await l.setBlobAccessTier(c,i,s,a)}else{await l.setBlobAccessTier(c,i,s)}}return this.submitBatch(l)}async submitBatch(r,i={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:s,updatedOptions:a}=Mo("BlobBatchClient-submitBatch",i);try{const s=r.getHttpRequestBody();const l=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(s),r.getMultiPartContentType(),s,Object.assign(Object.assign({},i),convertTracingToRequestOptionsBase(a)));const c=new BatchResponseParser(l,r.getSubRequests());const p=await c.parseBatchResponse();const d={_response:l._response,contentType:l.contentType,errorCode:l.errorCode,requestId:l.requestId,clientRequestId:l.clientRequestId,version:l.version,subResponses:p.subResponses,subResponsesSucceededCount:p.subResponsesSucceededCount,subResponsesFailedCount:p.subResponsesFailedCount};return d}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}}class ContainerClient extends StorageClient{constructor(r,i,s){let l;let c;s=s||{};if(isPipelineLike(i)){c=r;l=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){c=r;l=newPipeline(i,s)}else if(!i&&typeof i!=="string"){c=r;l=newPipeline(new AnonymousCredential,s)}else if(i&&typeof i==="string"){const p=i;const d=extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);c=appendToURLPath(d.url,encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=a.getDefaultProxySettings(d.proxyUri)}l=newPipeline(r,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){c=appendToURLPath(d.url,encodeURIComponent(p))+"?"+d.accountSas;l=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(c,l);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(r={}){const{span:i,updatedOptions:s}=Mo("ContainerClient-create",r);try{return await this.containerContext.create(Object.assign(Object.assign({},r),convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async createIfNotExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("ContainerClient-createIfNotExists",r);try{const r=await this.create(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="ContainerAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async exists(r={}){const{span:i,updatedOptions:s}=Mo("ContainerClient-exists",r);try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:s.tracingOptions});return true}catch(r){if(r.statusCode===404){i.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}getBlobClient(r){return new BlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:s}=Mo("ContainerClient-getProperties",r);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:r.abortSignal},r.conditions),convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async delete(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:s}=Mo("ContainerClient-delete",r);try{return await this.containerContext.delete(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteIfExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("ContainerClient-deleteIfExists",r);try{const r=await this.delete(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="ContainerNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,i={}){if(!i.conditions){i.conditions={}}if(i.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:s,updatedOptions:a}=Mo("ContainerClient-setMetadata",i);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:i.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:s}=Mo("ContainerClient-getAccessPolicy",r);try{const i=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions},convertTracingToRequestOptionsBase(s)));const a={_response:i._response,blobPublicAccess:i.blobPublicAccess,date:i.date,etag:i.etag,errorCode:i.errorCode,lastModified:i.lastModified,requestId:i.requestId,clientRequestId:i.clientRequestId,signedIdentifiers:[],version:i.version};for(const r of i){let i=undefined;if(r.accessPolicy){i={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){i.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){i.startsOn=new Date(r.accessPolicy.startsOn)}}a.signedIdentifiers.push({accessPolicy:i,id:r.id})}return a}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setAccessPolicy(r,i,s={}){s.conditions=s.conditions||{};const{span:a,updatedOptions:l}=Mo("ContainerClient-setAccessPolicy",s);try{const a=[];for(const r of i||[]){a.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:s.abortSignal,access:r,containerAcl:a,leaseAccessConditions:s.conditions,modifiedAccessConditions:s.conditions},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,i,s,a={}){const{span:l,updatedOptions:p}=Mo("ContainerClient-uploadBlockBlob",a);try{const a=this.getBlockBlobClient(r);const l=await a.upload(i,s,p);return{blockBlobClient:a,response:l}}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async deleteBlob(r,i={}){const{span:s,updatedOptions:a}=Mo("ContainerClient-deleteBlob",i);try{let s=this.getBlobClient(r);if(i.versionId){s=s.withVersion(i.versionId)}return await s.delete(a)}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async listBlobFlatSegment(r,i={}){const{span:s,updatedOptions:a}=Mo("ContainerClient-listBlobFlatSegment",i);try{const s=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:r},i),convertTracingToRequestOptionsBase(a)));const l=Object.assign(Object.assign({},s),{_response:Object.assign(Object.assign({},s._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(s._response.parsedBody)}),segment:Object.assign(Object.assign({},s.segment),{blobItems:s.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return i}))})});return l}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async listBlobHierarchySegment(r,i,s={}){var a;const{span:l,updatedOptions:p}=Mo("ContainerClient-listBlobHierarchySegment",s);try{const l=await this.containerContext.listBlobHierarchySegment(r,Object.assign(Object.assign({marker:i},s),convertTracingToRequestOptionsBase(p)));const c=Object.assign(Object.assign({},l),{_response:Object.assign(Object.assign({},l._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(l._response.parsedBody)}),segment:Object.assign(Object.assign({},l.segment),{blobItems:l.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return i})),blobPrefixes:(a=l.segment.blobPrefixes)===null||a===void 0?void 0:a.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))})});return c}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}listSegments(r,i={}){return l.__asyncGenerator(this,arguments,(function*listSegments_1(){let s;if(!!r||r===undefined){do{s=yield l.__await(this.listBlobFlatSegment(r,i));r=s.continuationToken;yield yield l.__await(yield l.__await(s))}while(r)}}))}listItems(r={}){return l.__asyncGenerator(this,arguments,(function*listItems_1(){var i,s;let a;try{for(var c=l.__asyncValues(this.listSegments(a,r)),p;p=yield l.__await(c.next()),!p.done;){const r=p.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.segment.blobItems)))}}catch(r){i={error:r}}finally{try{if(p&&!p.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(i)throw i.error}}}))}listBlobsFlat(r={}){const i=[];if(r.includeCopy){i.push("copy")}if(r.includeDeleted){i.push("deleted")}if(r.includeMetadata){i.push("metadata")}if(r.includeSnapshots){i.push("snapshots")}if(r.includeVersions){i.push("versions")}if(r.includeUncommitedBlobs){i.push("uncommittedblobs")}if(r.includeTags){i.push("tags")}if(r.includeDeletedWithVersions){i.push("deletedwithversions")}if(r.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(r.includeLegalHold){i.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const s=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},s))}}listHierarchySegments(r,i,s={}){return l.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let a;if(!!i||i===undefined){do{a=yield l.__await(this.listBlobHierarchySegment(r,i,s));i=a.continuationToken;yield yield l.__await(yield l.__await(a))}while(i)}}))}listItemsByHierarchy(r,i={}){return l.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var s,a;let c;try{for(var p=l.__asyncValues(this.listHierarchySegments(r,c,i)),d;d=yield l.__await(p.next()),!d.done;){const r=d.value;const i=r.segment;if(i.blobPrefixes){for(const r of i.blobPrefixes){yield yield l.__await(Object.assign({kind:"prefix"},r))}}for(const r of i.blobItems){yield yield l.__await(Object.assign({kind:"blob"},r))}}}catch(r){s={error:r}}finally{try{if(d&&!d.done&&(a=p.return))yield l.__await(a.call(p))}finally{if(s)throw s.error}}}))}listBlobsByHierarchy(r,i={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const s=[];if(i.includeCopy){s.push("copy")}if(i.includeDeleted){s.push("deleted")}if(i.includeMetadata){s.push("metadata")}if(i.includeSnapshots){s.push("snapshots")}if(i.includeVersions){s.push("versions")}if(i.includeUncommitedBlobs){s.push("uncommittedblobs")}if(i.includeTags){s.push("tags")}if(i.includeDeletedWithVersions){s.push("deletedwithversions")}if(i.includeImmutabilityPolicy){s.push("immutabilitypolicy")}if(i.includeLegalHold){s.push("legalhold")}if(i.prefix===""){i.prefix=undefined}const a=Object.assign(Object.assign({},i),s.length>0?{include:s}:{});const l=this.listItemsByHierarchy(r,a);return{async next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listHierarchySegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},a))}}async findBlobsByTagsSegment(r,i,s={}){const{span:a,updatedOptions:l}=Mo("ContainerClient-findBlobsByTagsSegment",s);try{const a=await this.containerContext.filterBlobs(Object.assign({abortSignal:s.abortSignal,where:r,marker:i,maxPageSize:s.maxPageSize},convertTracingToRequestOptionsBase(l)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var i;let s="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){s=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:s})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,i,s={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!i||i===undefined){do{a=yield l.__await(this.findBlobsByTagsSegment(r,i,s));a.blobs=a.blobs||[];i=a.continuationToken;yield yield l.__await(a)}while(i)}}))}findBlobsByTagsItems(r,i={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var s,a;let c;try{for(var p=l.__asyncValues(this.findBlobsByTagsSegments(r,c,i)),d;d=yield l.__await(p.next()),!d.done;){const r=d.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.blobs)))}}catch(r){s={error:r}}finally{try{if(d&&!d.done&&(a=p.return))yield l.__await(a.call(p))}finally{if(s)throw s.error}}}))}findBlobsByTags(r,i={}){const s=Object.assign({},i);const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},s))}}getContainerNameFromUrl(){let r;try{const i=a.URLBuilder.parse(this.url);if(i.getHost().split(".")[1]==="blob"){r=i.getPath().split("/")[1]}else if(isIpEndpointStyle(i)){r=i.getPath().split("/")[2]}else{r=i.getPath().split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((i=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},r),this.credential).toString();i(appendToURLQuery(this.url,s))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new AccountSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"l":i.list=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"u":i.update=true;break;case"p":i.process=true;break;case"t":i.tag=true;break;case"f":i.filter=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${s}`)}}return i}static from(r){const i=new AccountSASPermissions;if(r.read){i.read=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.filter){i.filter=true}if(r.tag){i.tag=true}if(r.list){i.list=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.update){i.update=true}if(r.process){i.process=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(r){const i=new AccountSASResourceTypes;for(const s of r){switch(s){case"s":i.service=true;break;case"c":i.container=true;break;case"o":i.object=true;break;default:throw new RangeError(`Invalid resource type: ${s}`)}}return i}toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(r){const i=new AccountSASServices;for(const s of r){switch(s){case"b":i.blob=true;break;case"f":i.file=true;break;case"q":i.queue=true;break;case"t":i.table=true;break;default:throw new RangeError(`Invalid service character: ${s}`)}}return i}toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,i){const s=r.version?r.version:so;if(r.permissions&&r.permissions.setImmutabilityPolicy&&s<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&s<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const a=AccountSASPermissions.parse(r.permissions.toString());const l=AccountSASServices.parse(r.services).toString();const c=AccountSASResourceTypes.parse(r.resourceTypes).toString();let p;if(s>="2020-12-06"){p=[i.accountName,a,l,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{p=[i.accountName,a,l,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,""].join("\n")}const d=i.computeHMACSHA256(p);return new SASQueryParameters(s,d,a.toString(),l,c,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(r,i,s){let l;if(isPipelineLike(i)){l=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){l=newPipeline(i,s)}else{l=newPipeline(new AnonymousCredential,s)}super(r,l);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(r,i){i=i||{};const s=extractConnectionStringParts(r);if(s.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(s.accountName,s.accountKey);if(!i.proxyOptions){i.proxyOptions=a.getDefaultProxySettings(s.proxyUri)}const l=newPipeline(r,i);return new BlobServiceClient(s.url,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(s.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,i);return new BlobServiceClient(s.url+"?"+s.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(r){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-createContainer",i);try{const i=this.getContainerClient(r);const s=await i.create(a);return{containerClient:i,containerCreateResponse:s}}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteContainer(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-deleteContainer",i);try{const i=this.getContainerClient(r);return await i.delete(a)}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async undeleteContainer(r,i,s={}){const{span:a,updatedOptions:l}=Mo("BlobServiceClient-undeleteContainer",s);try{const a=this.getContainerClient(s.destinationContainerName||r);const c=new Container(a["storageClientContext"]);const p=await c.restore(Object.assign({deletedContainerName:r,deletedContainerVersion:i},l));return{containerClient:a,containerUndeleteResponse:p}}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async renameContainer(r,i,s={}){var a;const{span:l,updatedOptions:p}=Mo("BlobServiceClient-renameContainer",s);try{const l=this.getContainerClient(i);const c=new Container(l["storageClientContext"]);const d=await c.rename(r,Object.assign(Object.assign({},p),{sourceLeaseId:(a=s.sourceCondition)===null||a===void 0?void 0:a.leaseId}));return{containerClient:l,containerRenameResponse:d}}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getProperties(r={}){const{span:i,updatedOptions:s}=Mo("BlobServiceClient-getProperties",r);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setProperties(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-setProperties",i);try{return await this.serviceContext.setProperties(r,Object.assign({abortSignal:i.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getStatistics(r={}){const{span:i,updatedOptions:s}=Mo("BlobServiceClient-getStatistics",r);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getAccountInfo(r={}){const{span:i,updatedOptions:s}=Mo("BlobServiceClient-getAccountInfo",r);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listContainersSegment(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-listContainersSegment",i);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:i.abortSignal,marker:r},i),{include:typeof i.include==="string"?[i.include]:i.include}),convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async findBlobsByTagsSegment(r,i,s={}){const{span:a,updatedOptions:l}=Mo("BlobServiceClient-findBlobsByTagsSegment",s);try{const a=await this.serviceContext.filterBlobs(Object.assign({abortSignal:s.abortSignal,where:r,marker:i,maxPageSize:s.maxPageSize},convertTracingToRequestOptionsBase(l)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var i;let s="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){s=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:s})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,i,s={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!i||i===undefined){do{a=yield l.__await(this.findBlobsByTagsSegment(r,i,s));a.blobs=a.blobs||[];i=a.continuationToken;yield yield l.__await(a)}while(i)}}))}findBlobsByTagsItems(r,i={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var s,a;let c;try{for(var p=l.__asyncValues(this.findBlobsByTagsSegments(r,c,i)),d;d=yield l.__await(p.next()),!d.done;){const r=d.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.blobs)))}}catch(r){s={error:r}}finally{try{if(d&&!d.done&&(a=p.return))yield l.__await(a.call(p))}finally{if(s)throw s.error}}}))}findBlobsByTags(r,i={}){const s=Object.assign({},i);const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},s))}}listSegments(r,i={}){return l.__asyncGenerator(this,arguments,(function*listSegments_1(){let s;if(!!r||r===undefined){do{s=yield l.__await(this.listContainersSegment(r,i));s.containerItems=s.containerItems||[];r=s.continuationToken;yield yield l.__await(yield l.__await(s))}while(r)}}))}listItems(r={}){return l.__asyncGenerator(this,arguments,(function*listItems_1(){var i,s;let a;try{for(var c=l.__asyncValues(this.listSegments(a,r)),p;p=yield l.__await(c.next()),!p.done;){const r=p.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.containerItems)))}}catch(r){i={error:r}}finally{try{if(p&&!p.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(i)throw i.error}}}))}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const i=[];if(r.includeDeleted){i.push("deleted")}if(r.includeMetadata){i.push("metadata")}if(r.includeSystem){i.push("system")}const s=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},s))}}async getUserDelegationKey(r,i,s={}){const{span:a,updatedOptions:l}=Mo("BlobServiceClient-getUserDelegationKey",s);try{const a=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(r,false),expiresOn:truncatedISO8061Date(i,false)},Object.assign({abortSignal:s.abortSignal},convertTracingToRequestOptionsBase(l)));const c={signedObjectId:a.signedObjectId,signedTenantId:a.signedTenantId,signedStartsOn:new Date(a.signedStartsOn),signedExpiresOn:new Date(a.signedExpiresOn),signedService:a.signedService,signedVersion:a.signedVersion,value:a.value};const p=Object.assign({_response:a._response,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,date:a.date,errorCode:a.errorCode},c);return p}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,i=AccountSASPermissions.parse("r"),s="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const i=new Date;r=new Date(i.getTime()+3600*1e3)}const l=generateAccountSASQueryParameters(Object.assign({permissions:i,expiresOn:r,resourceTypes:s,services:AccountSASServices.parse("b").toString()},a),this.credential).toString();return appendToURLQuery(this.url,l)}}i.KnownEncryptionAlgorithmType=void 0;(function(r){r["AES256"]="AES256"})(i.KnownEncryptionAlgorithmType||(i.KnownEncryptionAlgorithmType={}));Object.defineProperty(i,"BaseRequestPolicy",{enumerable:true,get:function(){return a.BaseRequestPolicy}});Object.defineProperty(i,"HttpHeaders",{enumerable:true,get:function(){return a.HttpHeaders}});Object.defineProperty(i,"RequestPolicyOptions",{enumerable:true,get:function(){return a.RequestPolicyOptions}});Object.defineProperty(i,"RestError",{enumerable:true,get:function(){return a.RestError}});Object.defineProperty(i,"WebResource",{enumerable:true,get:function(){return a.WebResource}});Object.defineProperty(i,"deserializationPolicy",{enumerable:true,get:function(){return a.deserializationPolicy}});i.AccountSASPermissions=AccountSASPermissions;i.AccountSASResourceTypes=AccountSASResourceTypes;i.AccountSASServices=AccountSASServices;i.AnonymousCredential=AnonymousCredential;i.AnonymousCredentialPolicy=AnonymousCredentialPolicy;i.AppendBlobClient=AppendBlobClient;i.BlobBatch=BlobBatch;i.BlobBatchClient=BlobBatchClient;i.BlobClient=BlobClient;i.BlobLeaseClient=BlobLeaseClient;i.BlobSASPermissions=BlobSASPermissions;i.BlobServiceClient=BlobServiceClient;i.BlockBlobClient=BlockBlobClient;i.ContainerClient=ContainerClient;i.ContainerSASPermissions=ContainerSASPermissions;i.Credential=Credential;i.CredentialPolicy=CredentialPolicy;i.PageBlobClient=PageBlobClient;i.Pipeline=Pipeline;i.SASQueryParameters=SASQueryParameters;i.StorageBrowserPolicy=StorageBrowserPolicy;i.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;i.StorageOAuthScopes=mo;i.StorageRetryPolicy=StorageRetryPolicy;i.StorageRetryPolicyFactory=StorageRetryPolicyFactory;i.StorageSharedKeyCredential=StorageSharedKeyCredential;i.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;i.generateAccountSASQueryParameters=generateAccountSASQueryParameters;i.generateBlobSASQueryParameters=generateBlobSASQueryParameters;i.getBlobServiceAccountAudience=getBlobServiceAccountAudience;i.isPipelineLike=isPipelineLike;i.logger=io;i.newPipeline=newPipeline},40334:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s=/^v1\./;const a=/^ghs_/;const l=/^ghu_/;async function auth(r){const i=r.split(/\./).length===3;const c=s.test(r)||a.test(r);const p=l.test(r);const d=i?"app":c?"installation":p?"user-to-server":"oauth";return{type:"token",token:r,tokenType:d}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,i,s,a){const l=i.endpoint.merge(s,a);l.headers.authorization=withAuthorizationPrefix(r);return i(l)}const c=function createTokenAuth(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};i.createTokenAuth=c},76762:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(45030);var l=s(83682);var c=s(36234);var p=s(88467);var d=s(40334);function _objectWithoutPropertiesLoose(r,i){if(r==null)return{};var s={};var a=Object.keys(r);var l,c;for(c=0;c=0)continue;s[l]=r[l]}return s}function _objectWithoutProperties(r,i){if(r==null)return{};var s=_objectWithoutPropertiesLoose(r,i);var a,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(l=0;l=0)continue;if(!Object.prototype.propertyIsEnumerable.call(r,a))continue;s[a]=r[a]}}return s}const u="3.6.0";const A=["authStrategy"];class Octokit{constructor(r={}){const i=new l.Collection;const s={baseUrl:c.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};s.headers["user-agent"]=[r.userAgent,`octokit-core.js/${u} ${a.getUserAgent()}`].filter(Boolean).join(" ");if(r.baseUrl){s.baseUrl=r.baseUrl}if(r.previews){s.mediaType.previews=r.previews}if(r.timeZone){s.headers["time-zone"]=r.timeZone}this.request=c.request.defaults(s);this.graphql=p.withCustomRequest(this.request).defaults(s);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},r.log);this.hook=i;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const s=d.createTokenAuth(r.auth);i.wrap("request",s.hook);this.auth=s}}else{const{authStrategy:s}=r,a=_objectWithoutProperties(r,A);const l=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));i.wrap("request",l.hook);this.auth=l}const h=this.constructor;h.plugins.forEach((i=>{Object.assign(this,i(this,r))}))}static defaults(r){const i=class extends(this){constructor(...i){const s=i[0]||{};if(typeof r==="function"){super(r(s));return}super(Object.assign({},r,s,s.userAgent&&r.userAgent?{userAgent:`${s.userAgent} ${r.userAgent}`}:null))}};return i}static plugin(...r){var i;const s=this.plugins;const a=(i=class extends(this){},i.plugins=s.concat(r.filter((r=>!s.includes(r)))),i);return a}}Octokit.VERSION=u;Octokit.plugins=[];i.Octokit=Octokit},59440:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(63287);var l=s(45030);function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((i,s)=>{i[s.toLowerCase()]=r[s];return i}),{})}function mergeDeep(r,i){const s=Object.assign({},r);Object.keys(i).forEach((l=>{if(a.isPlainObject(i[l])){if(!(l in r))Object.assign(s,{[l]:i[l]});else s[l]=mergeDeep(r[l],i[l])}else{Object.assign(s,{[l]:i[l]})}}));return s}function removeUndefinedProperties(r){for(const i in r){if(r[i]===undefined){delete r[i]}}return r}function merge(r,i,s){if(typeof i==="string"){let[r,a]=i.split(" ");s=Object.assign(a?{method:r,url:a}:{url:r},s)}else{s=Object.assign({},i)}s.headers=lowercaseKeys(s.headers);removeUndefinedProperties(s);removeUndefinedProperties(s.headers);const a=mergeDeep(r||{},s);if(r&&r.mediaType.previews.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=a.mediaType.previews.map((r=>r.replace(/-preview/,"")));return a}function addQueryParameters(r,i){const s=/\?/.test(r)?"&":"?";const a=Object.keys(i);if(a.length===0){return r}return r+s+a.map((r=>{if(r==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(i[r])}`})).join("&")}const c=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const i=r.match(c);if(!i){return[]}return i.map(removeNonChars).reduce(((r,i)=>r.concat(i)),[])}function omit(r,i){return Object.keys(r).filter((r=>!i.includes(r))).reduce(((i,s)=>{i[s]=r[s];return i}),{})}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,i,s){i=r==="+"||r==="#"?encodeReserved(i):encodeUnreserved(i);if(s){return encodeUnreserved(s)+"="+i}else{return i}}function isDefined(r){return r!==undefined&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,i,s,a){var l=r[s],c=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="boolean"){l=l.toString();if(a&&a!=="*"){l=l.substring(0,parseInt(a,10))}c.push(encodeValue(i,l,isKeyOperator(i)?s:""))}else{if(a==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){c.push(encodeValue(i,r,isKeyOperator(i)?s:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){c.push(encodeValue(i,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(s){r.push(encodeValue(i,s))}))}else{Object.keys(l).forEach((function(s){if(isDefined(l[s])){r.push(encodeUnreserved(s));r.push(encodeValue(i,l[s].toString()))}}))}if(isKeyOperator(i)){c.push(encodeUnreserved(s)+"="+r.join(","))}else if(r.length!==0){c.push(r.join(","))}}}}else{if(i===";"){if(isDefined(l)){c.push(encodeUnreserved(s))}}else if(l===""&&(i==="&"||i==="?")){c.push(encodeUnreserved(s)+"=")}else if(l===""){c.push("")}}return c}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,i){var s=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,l){if(a){let r="";const l=[];if(s.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(s){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);l.push(getValues(i,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var c=",";if(r==="?"){c="&"}else if(r!=="#"){c=r}return(l.length!==0?r:"")+l.join(c)}else{return l.join(",")}}else{return encodeReserved(l)}}))}function parse(r){let i=r.method.toUpperCase();let s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let l;let c=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const p=extractUrlVariableNames(s);s=parseUrl(s).expand(c);if(!/^http/.test(s)){s=r.baseUrl+s}const d=Object.keys(r).filter((r=>p.includes(r))).concat("baseUrl");const u=omit(c,d);const A=/application\/octet-stream/i.test(a.accept);if(!A){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(r.mediaType.previews.length){const i=a.accept.match(/[\w-]+(?=-preview)/g)||[];a.accept=i.concat(r.mediaType.previews).map((i=>{const s=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${s}`})).join(",")}}if(["GET","HEAD"].includes(i)){s=addQueryParameters(s,u)}else{if("data"in u){l=u.data}else{if(Object.keys(u).length){l=u}else{a["content-length"]=0}}}if(!a["content-type"]&&typeof l!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof l==="undefined"){l=""}return Object.assign({method:i,url:s,headers:a},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,i,s){return parse(merge(r,i,s))}function withDefaults(r,i){const s=merge(r,i);const a=endpointWithDefaults.bind(null,s);return Object.assign(a,{DEFAULTS:s,defaults:withDefaults.bind(null,s),merge:merge.bind(null,s),parse:parse})}const p="6.0.12";const d=`octokit-endpoint.js/${p} ${l.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const A=withDefaults(null,u);i.endpoint=A},88467:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(36234);var l=s(45030);const c="4.8.0";function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(r,i,s){super(_buildMessageForResponseErrors(s));this.request=r;this.headers=i;this.response=s;this.name="GraphqlResponseError";this.errors=s.errors;this.data=s.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const p=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const u=/\/api\/v3\/?$/;function graphql(r,i,s){if(s){if(typeof i==="string"&&"query"in s){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in s){if(!d.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof i==="string"?Object.assign({query:i},s):i;const l=Object.keys(a).reduce(((r,i)=>{if(p.includes(i)){r[i]=a[i];return r}if(!r.variables){r.variables={}}r.variables[i]=a[i];return r}),{});const c=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(u.test(c)){l.url=c.replace(u,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const i={};for(const s of Object.keys(r.headers)){i[s]=r.headers[s]}throw new GraphqlResponseError(l,i,r.data)}return r.data.data}))}function withDefaults(r,i){const s=r.defaults(i);const newApi=(r,i)=>graphql(s,r,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,s),endpoint:a.request.endpoint})}const A=withDefaults(a.request,{headers:{"user-agent":`octokit-graphql.js/${c} ${l.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=A;i.withCustomRequest=withCustomRequest},64193:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s="2.17.0";function ownKeys(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);if(i){a=a.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))}s.push.apply(s,a)}return s}function _objectSpread2(r){for(var i=1;i({async next(){if(!d)return{done:true};try{const r=await l({method:c,url:d,headers:p});const i=normalizePaginatedListResponse(r);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(r){if(r.status!==409)throw r;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,i,s,a){if(typeof s==="function"){a=s;s=undefined}return gather(r,[],iterator(r,i,s)[Symbol.asyncIterator](),a)}function gather(r,i,s,a){return s.next().then((l=>{if(l.done){return i}let c=false;function done(){c=true}i=i.concat(a?a(l.value,done):l.value.data);if(c){return i}return gather(r,i,s,a)}))}const a=Object.assign(paginate,{iterator:iterator});const l=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/actions/runners/downloads","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/autolinks","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return l.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=s;i.composePaginateRest=a;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=l},68883:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s="1.0.4";function requestLog(r){r.hook.wrap("request",((i,s)=>{r.log.debug("request",s);const a=Date.now();const l=r.request.endpoint.parse(s);const c=l.url.replace(s.baseUrl,"");return i(s).then((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);return i})).catch((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);throw i}))}))}requestLog.VERSION=s;i.requestLog=requestLog},83044:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function ownKeys(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);if(i){a=a.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))}s.push.apply(s,a)}return s}function _objectSpread2(r){for(var i=1;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=_interopDefault(s(11174));async function errorRequest(r,i,s,a){if(!s.request||!s.request.request){throw s}if(s.status>=400&&!i.doNotRetry.includes(s.status)){const l=a.request.retries!=null?a.request.retries:i.retries;const c=Math.pow((a.request.retryCount||0)+1,2);throw r.retry.retryRequest(s,l,c)}throw s}async function wrapRequest(r,i,s){const l=new a;l.on("failed",(function(i,a){const l=~~i.request.request.retries;const c=~~i.request.request.retryAfter;s.request.retryCount=a.retryCount+1;if(l>a.retryCount){return c*r.retryAfterBaseValue}}));return l.schedule(i,s)}const l="3.0.9";function retry(r,i){const s=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422],retries:3},i.retry);if(s.enabled){r.hook.error("request",errorRequest.bind(null,r,s));r.hook.wrap("request",wrapRequest.bind(null,s))}return{retry:{retryRequest:(r,i,s)=>{r.request.request=Object.assign({},r.request.request,{retries:i,retryAfter:s});return r}}}}retry.VERSION=l;i.VERSION=l;i.retry=retry},10537:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=s(58932);var l=_interopDefault(s(1223));const c=l((r=>console.warn(r)));const p=l((r=>console.warn(r)));class RequestError extends Error{constructor(r,i,s){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let l;if("headers"in s&&typeof s.headers!=="undefined"){l=s.headers}if("response"in s){this.response=s.response;l=s.response.headers}const d=Object.assign({},s.request);if(s.request.headers.authorization){d.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){c(new a.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){p(new a.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return l||{}}})}}i.RequestError=RequestError},36234:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=s(59440);var l=s(45030);var c=s(63287);var p=_interopDefault(s(80467));var d=s(10537);const u="5.6.3";function getBufferResponse(r){return r.arrayBuffer()}function fetchWrapper(r){const i=r.request&&r.request.log?r.request.log:console;if(c.isPlainObject(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let s={};let a;let l;const u=r.request&&r.request.fetch||p;return u(r.url,Object.assign({method:r.method,body:r.body,headers:r.headers,redirect:r.redirect},r.request)).then((async c=>{l=c.url;a=c.status;for(const r of c.headers){s[r[0]]=r[1]}if("deprecation"in s){const a=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/);const l=a&&a.pop();i.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${l?`. See ${l}`:""}`)}if(a===204||a===205){return}if(r.method==="HEAD"){if(a<400){return}throw new d.RequestError(c.statusText,a,{response:{url:l,status:a,headers:s,data:undefined},request:r})}if(a===304){throw new d.RequestError("Not modified",a,{response:{url:l,status:a,headers:s,data:await getResponseData(c)},request:r})}if(a>=400){const i=await getResponseData(c);const p=new d.RequestError(toErrorMessage(i),a,{response:{url:l,status:a,headers:s,data:i},request:r});throw p}return getResponseData(c)})).then((r=>({status:a,url:l,headers:s,data:r}))).catch((i=>{if(i instanceof d.RequestError)throw i;throw new d.RequestError(i.message,500,{request:r})}))}async function getResponseData(r){const i=r.headers.get("content-type");if(/application\/json/.test(i)){return r.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return r.text()}return getBufferResponse(r)}function toErrorMessage(r){if(typeof r==="string")return r;if("message"in r){if(Array.isArray(r.errors)){return`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}`}return r.message}return`Unknown error: ${JSON.stringify(r)}`}function withDefaults(r,i){const s=r.defaults(i);const newApi=function(r,i){const a=s.merge(r,i);if(!a.request||!a.request.hook){return fetchWrapper(s.parse(a))}const request=(r,i)=>fetchWrapper(s.parse(s.merge(r,i)));Object.assign(request,{endpoint:s,defaults:withDefaults.bind(null,s)});return a.request.hook(request,a)};return Object.assign(newApi,{endpoint:s,defaults:withDefaults.bind(null,s)})}const A=withDefaults(a.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${l.getUserAgent()}`}});i.request=A},55375:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Octokit:()=>y});r.exports=__toCommonJS(d);var u=s(4952);var A=s(70748);var h=s(30606);var g=s(94923);var E="20.0.2";var y=u.Octokit.plugin(A.requestLog,g.legacyRestEndpointMethods,h.paginateRest).defaults({userAgent:`octokit-rest.js/${E}`});0&&0},57633:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{createTokenAuth:()=>A});r.exports=__toCommonJS(c);var p=/^v1\./;var d=/^ghs_/;var u=/^ghu_/;async function auth(r){const i=r.split(/\./).length===3;const s=p.test(r)||d.test(r);const a=u.test(r);const l=i?"app":s?"installation":a?"user-to-server":"oauth";return{type:"token",token:r,tokenType:l}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,i,s,a){const l=i.endpoint.merge(s,a);l.headers.authorization=withAuthorizationPrefix(r);return i(l)}var A=function createTokenAuth2(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};0&&0},4952:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Octokit:()=>b});r.exports=__toCommonJS(d);var u=s(45030);var A=s(83682);var h=s(26206);var g=s(37461);var E=s(57633);var y="5.0.0";var b=class{static{this.VERSION=y}static defaults(r){const i=class extends(this){constructor(...i){const s=i[0]||{};if(typeof r==="function"){super(r(s));return}super(Object.assign({},r,s,s.userAgent&&r.userAgent?{userAgent:`${s.userAgent} ${r.userAgent}`}:null))}};return i}static{this.plugins=[]}static plugin(...r){const i=this.plugins;const s=class extends(this){static{this.plugins=i.concat(r.filter((r=>!i.includes(r))))}};return s}constructor(r={}){const i=new A.Collection;const s={baseUrl:h.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};s.headers["user-agent"]=[r.userAgent,`octokit-core.js/${y} ${(0,u.getUserAgent)()}`].filter(Boolean).join(" ");if(r.baseUrl){s.baseUrl=r.baseUrl}if(r.previews){s.mediaType.previews=r.previews}if(r.timeZone){s.headers["time-zone"]=r.timeZone}this.request=h.request.defaults(s);this.graphql=(0,g.withCustomRequest)(this.request).defaults(s);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},r.log);this.hook=i;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const s=(0,E.createTokenAuth)(r.auth);i.wrap("request",s.hook);this.auth=s}}else{const{authStrategy:s,...a}=r;const l=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));i.wrap("request",l.hook);this.auth=l}const a=this.constructor;a.plugins.forEach((i=>{Object.assign(this,i(this,r))}))}};0&&0},96065:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{endpoint:()=>b});r.exports=__toCommonJS(d);var u=s(45030);var A="9.0.0";var h=`octokit-endpoint.js/${A} ${(0,u.getUserAgent)()}`;var g={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":h},mediaType:{format:""}};function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((i,s)=>{i[s.toLowerCase()]=r[s];return i}),{})}var E=s(63287);function mergeDeep(r,i){const s=Object.assign({},r);Object.keys(i).forEach((a=>{if((0,E.isPlainObject)(i[a])){if(!(a in r))Object.assign(s,{[a]:i[a]});else s[a]=mergeDeep(r[a],i[a])}else{Object.assign(s,{[a]:i[a]})}}));return s}function removeUndefinedProperties(r){for(const i in r){if(r[i]===void 0){delete r[i]}}return r}function merge(r,i,s){if(typeof i==="string"){let[r,a]=i.split(" ");s=Object.assign(a?{method:r,url:a}:{url:r},s)}else{s=Object.assign({},i)}s.headers=lowercaseKeys(s.headers);removeUndefinedProperties(s);removeUndefinedProperties(s.headers);const a=mergeDeep(r||{},s);if(s.url==="/graphql"){if(r&&r.mediaType.previews?.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=(a.mediaType.previews||[]).map((r=>r.replace(/-preview/,"")))}return a}function addQueryParameters(r,i){const s=/\?/.test(r)?"&":"?";const a=Object.keys(i);if(a.length===0){return r}return r+s+a.map((r=>{if(r==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(i[r])}`})).join("&")}var y=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const i=r.match(y);if(!i){return[]}return i.map(removeNonChars).reduce(((r,i)=>r.concat(i)),[])}function omit(r,i){return Object.keys(r).filter((r=>!i.includes(r))).reduce(((i,s)=>{i[s]=r[s];return i}),{})}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,i,s){i=r==="+"||r==="#"?encodeReserved(i):encodeUnreserved(i);if(s){return encodeUnreserved(s)+"="+i}else{return i}}function isDefined(r){return r!==void 0&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,i,s,a){var l=r[s],c=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="boolean"){l=l.toString();if(a&&a!=="*"){l=l.substring(0,parseInt(a,10))}c.push(encodeValue(i,l,isKeyOperator(i)?s:""))}else{if(a==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){c.push(encodeValue(i,r,isKeyOperator(i)?s:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){c.push(encodeValue(i,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(s){r.push(encodeValue(i,s))}))}else{Object.keys(l).forEach((function(s){if(isDefined(l[s])){r.push(encodeUnreserved(s));r.push(encodeValue(i,l[s].toString()))}}))}if(isKeyOperator(i)){c.push(encodeUnreserved(s)+"="+r.join(","))}else if(r.length!==0){c.push(r.join(","))}}}}else{if(i===";"){if(isDefined(l)){c.push(encodeUnreserved(s))}}else if(l===""&&(i==="&"||i==="?")){c.push(encodeUnreserved(s)+"=")}else if(l===""){c.push("")}}return c}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,i){var s=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,l){if(a){let r="";const l=[];if(s.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(s){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);l.push(getValues(i,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var c=",";if(r==="?"){c="&"}else if(r!=="#"){c=r}return(l.length!==0?r:"")+l.join(c)}else{return l.join(",")}}else{return encodeReserved(l)}}))}function parse(r){let i=r.method.toUpperCase();let s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let l;let c=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const p=extractUrlVariableNames(s);s=parseUrl(s).expand(c);if(!/^http/.test(s)){s=r.baseUrl+s}const d=Object.keys(r).filter((r=>p.includes(r))).concat("baseUrl");const u=omit(c,d);const A=/application\/octet-stream/i.test(a.accept);if(!A){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(s.endsWith("/graphql")){if(r.mediaType.previews?.length){const i=a.accept.match(/[\w-]+(?=-preview)/g)||[];a.accept=i.concat(r.mediaType.previews).map((i=>{const s=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${s}`})).join(",")}}}if(["GET","HEAD"].includes(i)){s=addQueryParameters(s,u)}else{if("data"in u){l=u.data}else{if(Object.keys(u).length){l=u}}}if(!a["content-type"]&&typeof l!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof l==="undefined"){l=""}return Object.assign({method:i,url:s,headers:a},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,i,s){return parse(merge(r,i,s))}function withDefaults(r,i){const s=merge(r,i);const a=endpointWithDefaults.bind(null,s);return Object.assign(a,{DEFAULTS:s,defaults:withDefaults.bind(null,s),merge:merge.bind(null,s),parse:parse})}var b=withDefaults(null,g);0&&0},37461:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{GraphqlResponseError:()=>y,graphql:()=>w,withCustomRequest:()=>withCustomRequest});r.exports=__toCommonJS(d);var u=s(26206);var A=s(45030);var h="7.0.1";var g=s(26206);var E=s(26206);function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}var y=class extends Error{constructor(r,i,s){super(_buildMessageForResponseErrors(s));this.request=r;this.headers=i;this.response=s;this.name="GraphqlResponseError";this.errors=s.errors;this.data=s.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var b=["method","baseUrl","url","headers","request","query","mediaType"];var C=["query","method","url"];var v=/\/api\/v3\/?$/;function graphql(r,i,s){if(s){if(typeof i==="string"&&"query"in s){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in s){if(!C.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof i==="string"?Object.assign({query:i},s):i;const l=Object.keys(a).reduce(((r,i)=>{if(b.includes(i)){r[i]=a[i];return r}if(!r.variables){r.variables={}}r.variables[i]=a[i];return r}),{});const c=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(v.test(c)){l.url=c.replace(v,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const i={};for(const s of Object.keys(r.headers)){i[s]=r.headers[s]}throw new y(l,i,r.data)}return r.data.data}))}function withDefaults(r,i){const s=r.defaults(i);const newApi=(r,i)=>graphql(s,r,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,s),endpoint:s.endpoint})}var w=withDefaults(u.request,{headers:{"user-agent":`octokit-graphql.js/${h} ${(0,A.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}0&&0},30606:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{composePaginateRest:()=>d,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>u});r.exports=__toCommonJS(c);var p="9.0.0";function normalizePaginatedListResponse(r){if(!r.data){return{...r,data:[]}}const i="total_count"in r.data&&!("url"in r.data);if(!i)return r;const s=r.data.incomplete_results;const a=r.data.repository_selection;const l=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const c=Object.keys(r.data)[0];const p=r.data[c];r.data=p;if(typeof s!=="undefined"){r.data.incomplete_results=s}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=l;return r}function iterator(r,i,s){const a=typeof i==="function"?i.endpoint(s):r.request.endpoint(i,s);const l=typeof i==="function"?i:r.request;const c=a.method;const p=a.headers;let d=a.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!d)return{done:true};try{const r=await l({method:c,url:d,headers:p});const i=normalizePaginatedListResponse(r);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(r){if(r.status!==409)throw r;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,i,s,a){if(typeof s==="function"){a=s;s=void 0}return gather(r,[],iterator(r,i,s)[Symbol.asyncIterator](),a)}function gather(r,i,s,a){return s.next().then((l=>{if(l.done){return i}let c=false;function done(){c=true}i=i.concat(a?a(l.value,done):l.value.data);if(c){return i}return gather(r,i,s,a)}))}var d=Object.assign(paginate,{iterator:iterator});var u=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return u.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=p;0&&0},70748:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{requestLog:()=>requestLog});r.exports=__toCommonJS(c);var p="4.0.0";function requestLog(r){r.hook.wrap("request",((i,s)=>{r.log.debug("request",s);const a=Date.now();const l=r.request.endpoint.parse(s);const c=l.url.replace(s.baseUrl,"");return i(s).then((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);return i})).catch((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);throw i}))}))}requestLog.VERSION=p;0&&0},94923:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});r.exports=__toCommonJS(c);var p="10.0.0";var d={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotForBusinessSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotForBusinessSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatAssignmentDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployment"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var u=d;var A=new Map;for(const[r,i]of Object.entries(u)){for(const[s,a]of Object.entries(i)){const[i,l,c]=a;const[p,d]=i.split(/ /);const u=Object.assign({method:p,url:d},l);if(!A.has(r)){A.set(r,new Map)}A.get(r).set(s,{scope:r,methodName:s,endpointDefaults:u,decorations:c})}}var h={get({octokit:r,scope:i,cache:s},a){if(s[a]){return s[a]}const{decorations:l,endpointDefaults:c}=A.get(i).get(a);if(l){s[a]=decorate(r,i,a,c,l)}else{s[a]=r.request.defaults(c)}return s[a]}};function endpointsToMethods(r){const i={};for(const s of A.keys()){i[s]=new Proxy({octokit:r,scope:s,cache:{}},h)}return i}function decorate(r,i,s,a,l){const c=r.request.defaults(a);function withDecorations(...a){let p=c.endpoint.merge(...a);if(l.mapToData){p=Object.assign({},p,{data:p[l.mapToData],[l.mapToData]:void 0});return c(p)}if(l.renamed){const[a,c]=l.renamed;r.log.warn(`octokit.${i}.${s}() has been renamed to octokit.${a}.${c}()`)}if(l.deprecated){r.log.warn(l.deprecated)}if(l.renamedParameters){const p=c.endpoint.merge(...a);for(const[a,c]of Object.entries(l.renamedParameters)){if(a in p){r.log.warn(`"${a}" parameter is deprecated for "octokit.${i}.${s}()". Use "${c}" instead`);if(!(c in p)){p[c]=p[a]}delete p[a]}}return c(p)}return c(...a)}return Object.assign(withDecorations,c)}function restEndpointMethods(r){const i=endpointsToMethods(r);return{rest:i}}restEndpointMethods.VERSION=p;function legacyRestEndpointMethods(r){const i=endpointsToMethods(r);return{...i,rest:i}}legacyRestEndpointMethods.VERSION=p;0&&0},96239:(r,i,s)=>{"use strict";var a=Object.create;var l=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)l(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,a)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let d of p(i))if(!u.call(r,d)&&d!==s)l(r,d,{get:()=>i[d],enumerable:!(a=c(i,d))||a.enumerable})}return r};var __toESM=(r,i,s)=>(s=r!=null?a(d(r)):{},__copyProps(i||!r||!r.__esModule?l(s,"default",{value:r,enumerable:true}):s,r));var __toCommonJS=r=>__copyProps(l({},"__esModule",{value:true}),r);var A={};__export(A,{RequestError:()=>b});r.exports=__toCommonJS(A);var h=s(58932);var g=__toESM(s(1223));var E=(0,g.default)((r=>console.warn(r)));var y=(0,g.default)((r=>console.warn(r)));var b=class extends Error{constructor(r,i,s){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let a;if("headers"in s&&typeof s.headers!=="undefined"){a=s.headers}if("response"in s){this.response=s.response;a=s.response.headers}const l=Object.assign({},s.request);if(s.request.headers.authorization){l.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}l.url=l.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=l;Object.defineProperty(this,"code",{get(){E(new h.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){y(new h.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return a||{}}})}};0&&0},26206:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{request:()=>y});r.exports=__toCommonJS(d);var u=s(96065);var A=s(45030);var h="8.1.1";var g=s(63287);var E=s(96239);function getBufferResponse(r){return r.arrayBuffer()}function fetchWrapper(r){var i,s,a;const l=r.request&&r.request.log?r.request.log:console;const c=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==false;if((0,g.isPlainObject)(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let p={};let d;let u;let{fetch:A}=globalThis;if((s=r.request)==null?void 0:s.fetch){A=r.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(r.url,{method:r.method,body:r.body,headers:r.headers,signal:(a=r.request)==null?void 0:a.signal,...r.body&&{duplex:"half"}}).then((async i=>{u=i.url;d=i.status;for(const r of i.headers){p[r[0]]=r[1]}if("deprecation"in p){const i=p.link&&p.link.match(/<([^>]+)>; rel="deprecation"/);const s=i&&i.pop();l.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${p.sunset}${s?`. See ${s}`:""}`)}if(d===204||d===205){return}if(r.method==="HEAD"){if(d<400){return}throw new E.RequestError(i.statusText,d,{response:{url:u,status:d,headers:p,data:void 0},request:r})}if(d===304){throw new E.RequestError("Not modified",d,{response:{url:u,status:d,headers:p,data:await getResponseData(i)},request:r})}if(d>=400){const s=await getResponseData(i);const a=new E.RequestError(toErrorMessage(s),d,{response:{url:u,status:d,headers:p,data:s},request:r});throw a}return c?await getResponseData(i):i.body})).then((r=>({status:d,url:u,headers:p,data:r}))).catch((i=>{if(i instanceof E.RequestError)throw i;else if(i.name==="AbortError")throw i;throw new E.RequestError(i.message,500,{request:r})}))}async function getResponseData(r){const i=r.headers.get("content-type");if(/application\/json/.test(i)){return r.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return r.text()}return getBufferResponse(r)}function toErrorMessage(r){if(typeof r==="string")return r;if("message"in r){if(Array.isArray(r.errors)){return`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}`}return r.message}return`Unknown error: ${JSON.stringify(r)}`}function withDefaults(r,i){const s=r.defaults(i);const newApi=function(r,i){const a=s.merge(r,i);if(!a.request||!a.request.hook){return fetchWrapper(s.parse(a))}const request2=(r,i)=>fetchWrapper(s.parse(s.merge(r,i)));Object.assign(request2,{endpoint:s,defaults:withDefaults.bind(null,s)});return a.request.hook(request2,a)};return Object.assign(newApi,{endpoint:s,defaults:withDefaults.bind(null,s)})}var y=withDefaults(u.endpoint,{headers:{"user-agent":`octokit-request.js/${h} ${(0,A.getUserAgent)()}`}});0&&0},57171:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ContextAPI=void 0;const a=s(54118);const l=s(85135);const c=s(11877);const p="context";const d=new a.NoopContextManager;class ContextAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new ContextAPI}return this._instance}setGlobalContextManager(r){return(0,l.registerGlobal)(p,r,c.DiagAPI.instance())}active(){return this._getContextManager().active()}with(r,i,s,...a){return this._getContextManager().with(r,i,s,...a)}bind(r,i){return this._getContextManager().bind(r,i)}_getContextManager(){return(0,l.getGlobal)(p)||d}disable(){this._getContextManager().disable();(0,l.unregisterGlobal)(p,c.DiagAPI.instance())}}i.ContextAPI=ContextAPI},11877:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagAPI=void 0;const a=s(17978);const l=s(99639);const c=s(78077);const p=s(85135);const d="diag";class DiagAPI{constructor(){function _logProxy(r){return function(...i){const s=(0,p.getGlobal)("diag");if(!s)return;return s[r](...i)}}const r=this;const setLogger=(i,s={logLevel:c.DiagLogLevel.INFO})=>{var a,d,u;if(i===r){const i=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");r.error((a=i.stack)!==null&&a!==void 0?a:i.message);return false}if(typeof s==="number"){s={logLevel:s}}const A=(0,p.getGlobal)("diag");const h=(0,l.createLogLevelDiagLogger)((d=s.logLevel)!==null&&d!==void 0?d:c.DiagLogLevel.INFO,i);if(A&&!s.suppressOverrideMessage){const r=(u=(new Error).stack)!==null&&u!==void 0?u:"";A.warn(`Current logger will be overwritten from ${r}`);h.warn(`Current logger will overwrite one already registered from ${r}`)}return(0,p.registerGlobal)("diag",h,r,true)};r.setLogger=setLogger;r.disable=()=>{(0,p.unregisterGlobal)(d,r)};r.createComponentLogger=r=>new a.DiagComponentLogger(r);r.verbose=_logProxy("verbose");r.debug=_logProxy("debug");r.info=_logProxy("info");r.warn=_logProxy("warn");r.error=_logProxy("error")}static instance(){if(!this._instance){this._instance=new DiagAPI}return this._instance}}i.DiagAPI=DiagAPI},17696:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MetricsAPI=void 0;const a=s(72647);const l=s(85135);const c=s(11877);const p="metrics";class MetricsAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new MetricsAPI}return this._instance}setGlobalMeterProvider(r){return(0,l.registerGlobal)(p,r,c.DiagAPI.instance())}getMeterProvider(){return(0,l.getGlobal)(p)||a.NOOP_METER_PROVIDER}getMeter(r,i,s){return this.getMeterProvider().getMeter(r,i,s)}disable(){(0,l.unregisterGlobal)(p,c.DiagAPI.instance())}}i.MetricsAPI=MetricsAPI},89909:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PropagationAPI=void 0;const a=s(85135);const l=s(72368);const c=s(80865);const p=s(37682);const d=s(28136);const u=s(11877);const A="propagation";const h=new l.NoopTextMapPropagator;class PropagationAPI{constructor(){this.createBaggage=d.createBaggage;this.getBaggage=p.getBaggage;this.getActiveBaggage=p.getActiveBaggage;this.setBaggage=p.setBaggage;this.deleteBaggage=p.deleteBaggage}static getInstance(){if(!this._instance){this._instance=new PropagationAPI}return this._instance}setGlobalPropagator(r){return(0,a.registerGlobal)(A,r,u.DiagAPI.instance())}inject(r,i,s=c.defaultTextMapSetter){return this._getGlobalPropagator().inject(r,i,s)}extract(r,i,s=c.defaultTextMapGetter){return this._getGlobalPropagator().extract(r,i,s)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,a.unregisterGlobal)(A,u.DiagAPI.instance())}_getGlobalPropagator(){return(0,a.getGlobal)(A)||h}}i.PropagationAPI=PropagationAPI},81539:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceAPI=void 0;const a=s(85135);const l=s(2285);const c=s(49745);const p=s(23326);const d=s(11877);const u="trace";class TraceAPI{constructor(){this._proxyTracerProvider=new l.ProxyTracerProvider;this.wrapSpanContext=c.wrapSpanContext;this.isSpanContextValid=c.isSpanContextValid;this.deleteSpan=p.deleteSpan;this.getSpan=p.getSpan;this.getActiveSpan=p.getActiveSpan;this.getSpanContext=p.getSpanContext;this.setSpan=p.setSpan;this.setSpanContext=p.setSpanContext}static getInstance(){if(!this._instance){this._instance=new TraceAPI}return this._instance}setGlobalTracerProvider(r){const i=(0,a.registerGlobal)(u,this._proxyTracerProvider,d.DiagAPI.instance());if(i){this._proxyTracerProvider.setDelegate(r)}return i}getTracerProvider(){return(0,a.getGlobal)(u)||this._proxyTracerProvider}getTracer(r,i){return this.getTracerProvider().getTracer(r,i)}disable(){(0,a.unregisterGlobal)(u,d.DiagAPI.instance());this._proxyTracerProvider=new l.ProxyTracerProvider}}i.TraceAPI=TraceAPI},37682:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.deleteBaggage=i.setBaggage=i.getActiveBaggage=i.getBaggage=void 0;const a=s(57171);const l=s(78242);const c=(0,l.createContextKey)("OpenTelemetry Baggage Key");function getBaggage(r){return r.getValue(c)||undefined}i.getBaggage=getBaggage;function getActiveBaggage(){return getBaggage(a.ContextAPI.getInstance().active())}i.getActiveBaggage=getActiveBaggage;function setBaggage(r,i){return r.setValue(c,i)}i.setBaggage=setBaggage;function deleteBaggage(r){return r.deleteValue(c)}i.deleteBaggage=deleteBaggage},84811:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BaggageImpl=void 0;class BaggageImpl{constructor(r){this._entries=r?new Map(r):new Map}getEntry(r){const i=this._entries.get(r);if(!i){return undefined}return Object.assign({},i)}getAllEntries(){return Array.from(this._entries.entries()).map((([r,i])=>[r,i]))}setEntry(r,i){const s=new BaggageImpl(this._entries);s._entries.set(r,i);return s}removeEntry(r){const i=new BaggageImpl(this._entries);i._entries.delete(r);return i}removeEntries(...r){const i=new BaggageImpl(this._entries);for(const s of r){i._entries.delete(s)}return i}clear(){return new BaggageImpl}}i.BaggageImpl=BaggageImpl},23542:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataSymbol=void 0;i.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},28136:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataFromString=i.createBaggage=void 0;const a=s(11877);const l=s(84811);const c=s(23542);const p=a.DiagAPI.instance();function createBaggage(r={}){return new l.BaggageImpl(new Map(Object.entries(r)))}i.createBaggage=createBaggage;function baggageEntryMetadataFromString(r){if(typeof r!=="string"){p.error(`Cannot create baggage metadata from unknown type: ${typeof r}`);r=""}return{__TYPE__:c.baggageEntryMetadataSymbol,toString(){return r}}}i.baggageEntryMetadataFromString=baggageEntryMetadataFromString},7393:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.context=void 0;const a=s(57171);i.context=a.ContextAPI.getInstance()},54118:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopContextManager=void 0;const a=s(78242);class NoopContextManager{active(){return a.ROOT_CONTEXT}with(r,i,s,...a){return i.call(s,...a)}bind(r,i){return i}enable(){return this}disable(){return this}}i.NoopContextManager=NoopContextManager},78242:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ROOT_CONTEXT=i.createContextKey=void 0;function createContextKey(r){return Symbol.for(r)}i.createContextKey=createContextKey;class BaseContext{constructor(r){const i=this;i._currentContext=r?new Map(r):new Map;i.getValue=r=>i._currentContext.get(r);i.setValue=(r,s)=>{const a=new BaseContext(i._currentContext);a._currentContext.set(r,s);return a};i.deleteValue=r=>{const s=new BaseContext(i._currentContext);s._currentContext.delete(r);return s}}}i.ROOT_CONTEXT=new BaseContext},39721:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.diag=void 0;const a=s(11877);i.diag=a.DiagAPI.instance()},17978:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagComponentLogger=void 0;const a=s(85135);class DiagComponentLogger{constructor(r){this._namespace=r.namespace||"DiagComponentLogger"}debug(...r){return logProxy("debug",this._namespace,r)}error(...r){return logProxy("error",this._namespace,r)}info(...r){return logProxy("info",this._namespace,r)}warn(...r){return logProxy("warn",this._namespace,r)}verbose(...r){return logProxy("verbose",this._namespace,r)}}i.DiagComponentLogger=DiagComponentLogger;function logProxy(r,i,s){const l=(0,a.getGlobal)("diag");if(!l){return}s.unshift(i);return l[r](...s)}},3041:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagConsoleLogger=void 0;const s=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class DiagConsoleLogger{constructor(){function _consoleFunc(r){return function(...i){if(console){let s=console[r];if(typeof s!=="function"){s=console.log}if(typeof s==="function"){return s.apply(console,i)}}}}for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createLogLevelDiagLogger=void 0;const a=s(78077);function createLogLevelDiagLogger(r,i){if(ra.DiagLogLevel.ALL){r=a.DiagLogLevel.ALL}i=i||{};function _filterFunc(s,a){const l=i[s];if(typeof l==="function"&&r>=a){return l.bind(i)}return function(){}}return{error:_filterFunc("error",a.DiagLogLevel.ERROR),warn:_filterFunc("warn",a.DiagLogLevel.WARN),info:_filterFunc("info",a.DiagLogLevel.INFO),debug:_filterFunc("debug",a.DiagLogLevel.DEBUG),verbose:_filterFunc("verbose",a.DiagLogLevel.VERBOSE)}}i.createLogLevelDiagLogger=createLogLevelDiagLogger},78077:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagLogLevel=void 0;var s;(function(r){r[r["NONE"]=0]="NONE";r[r["ERROR"]=30]="ERROR";r[r["WARN"]=50]="WARN";r[r["INFO"]=60]="INFO";r[r["DEBUG"]=70]="DEBUG";r[r["VERBOSE"]=80]="VERBOSE";r[r["ALL"]=9999]="ALL"})(s=i.DiagLogLevel||(i.DiagLogLevel={}))},65163:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.trace=i.propagation=i.metrics=i.diag=i.context=i.INVALID_SPAN_CONTEXT=i.INVALID_TRACEID=i.INVALID_SPANID=i.isValidSpanId=i.isValidTraceId=i.isSpanContextValid=i.createTraceState=i.TraceFlags=i.SpanStatusCode=i.SpanKind=i.SamplingDecision=i.ProxyTracerProvider=i.ProxyTracer=i.defaultTextMapSetter=i.defaultTextMapGetter=i.ValueType=i.createNoopMeter=i.DiagLogLevel=i.DiagConsoleLogger=i.ROOT_CONTEXT=i.createContextKey=i.baggageEntryMetadataFromString=void 0;var a=s(28136);Object.defineProperty(i,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return a.baggageEntryMetadataFromString}});var l=s(78242);Object.defineProperty(i,"createContextKey",{enumerable:true,get:function(){return l.createContextKey}});Object.defineProperty(i,"ROOT_CONTEXT",{enumerable:true,get:function(){return l.ROOT_CONTEXT}});var c=s(3041);Object.defineProperty(i,"DiagConsoleLogger",{enumerable:true,get:function(){return c.DiagConsoleLogger}});var p=s(78077);Object.defineProperty(i,"DiagLogLevel",{enumerable:true,get:function(){return p.DiagLogLevel}});var d=s(4837);Object.defineProperty(i,"createNoopMeter",{enumerable:true,get:function(){return d.createNoopMeter}});var u=s(89999);Object.defineProperty(i,"ValueType",{enumerable:true,get:function(){return u.ValueType}});var A=s(80865);Object.defineProperty(i,"defaultTextMapGetter",{enumerable:true,get:function(){return A.defaultTextMapGetter}});Object.defineProperty(i,"defaultTextMapSetter",{enumerable:true,get:function(){return A.defaultTextMapSetter}});var h=s(43503);Object.defineProperty(i,"ProxyTracer",{enumerable:true,get:function(){return h.ProxyTracer}});var g=s(2285);Object.defineProperty(i,"ProxyTracerProvider",{enumerable:true,get:function(){return g.ProxyTracerProvider}});var E=s(33209);Object.defineProperty(i,"SamplingDecision",{enumerable:true,get:function(){return E.SamplingDecision}});var y=s(31424);Object.defineProperty(i,"SpanKind",{enumerable:true,get:function(){return y.SpanKind}});var b=s(48845);Object.defineProperty(i,"SpanStatusCode",{enumerable:true,get:function(){return b.SpanStatusCode}});var C=s(26905);Object.defineProperty(i,"TraceFlags",{enumerable:true,get:function(){return C.TraceFlags}});var v=s(32615);Object.defineProperty(i,"createTraceState",{enumerable:true,get:function(){return v.createTraceState}});var w=s(49745);Object.defineProperty(i,"isSpanContextValid",{enumerable:true,get:function(){return w.isSpanContextValid}});Object.defineProperty(i,"isValidTraceId",{enumerable:true,get:function(){return w.isValidTraceId}});Object.defineProperty(i,"isValidSpanId",{enumerable:true,get:function(){return w.isValidSpanId}});var I=s(91760);Object.defineProperty(i,"INVALID_SPANID",{enumerable:true,get:function(){return I.INVALID_SPANID}});Object.defineProperty(i,"INVALID_TRACEID",{enumerable:true,get:function(){return I.INVALID_TRACEID}});Object.defineProperty(i,"INVALID_SPAN_CONTEXT",{enumerable:true,get:function(){return I.INVALID_SPAN_CONTEXT}});const B=s(7393);Object.defineProperty(i,"context",{enumerable:true,get:function(){return B.context}});const S=s(39721);Object.defineProperty(i,"diag",{enumerable:true,get:function(){return S.diag}});const Q=s(72601);Object.defineProperty(i,"metrics",{enumerable:true,get:function(){return Q.metrics}});const x=s(17591);Object.defineProperty(i,"propagation",{enumerable:true,get:function(){return x.propagation}});const R=s(98989);Object.defineProperty(i,"trace",{enumerable:true,get:function(){return R.trace}});i["default"]={context:B.context,diag:S.diag,metrics:Q.metrics,propagation:x.propagation,trace:R.trace}},85135:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.unregisterGlobal=i.getGlobal=i.registerGlobal=void 0;const a=s(99957);const l=s(98996);const c=s(81522);const p=l.VERSION.split(".")[0];const d=Symbol.for(`opentelemetry.js.api.${p}`);const u=a._globalThis;function registerGlobal(r,i,s,a=false){var c;const p=u[d]=(c=u[d])!==null&&c!==void 0?c:{version:l.VERSION};if(!a&&p[r]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${r}`);s.error(i.stack||i.message);return false}if(p.version!==l.VERSION){const i=new Error(`@opentelemetry/api: Registration of version v${p.version} for ${r} does not match previously registered API v${l.VERSION}`);s.error(i.stack||i.message);return false}p[r]=i;s.debug(`@opentelemetry/api: Registered a global for ${r} v${l.VERSION}.`);return true}i.registerGlobal=registerGlobal;function getGlobal(r){var i,s;const a=(i=u[d])===null||i===void 0?void 0:i.version;if(!a||!(0,c.isCompatible)(a)){return}return(s=u[d])===null||s===void 0?void 0:s[r]}i.getGlobal=getGlobal;function unregisterGlobal(r,i){i.debug(`@opentelemetry/api: Unregistering a global for ${r} v${l.VERSION}.`);const s=u[d];if(s){delete s[r]}}i.unregisterGlobal=unregisterGlobal},81522:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isCompatible=i._makeCompatibilityCheck=void 0;const a=s(98996);const l=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(r){const i=new Set([r]);const s=new Set;const a=r.match(l);if(!a){return()=>false}const c={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(c.prerelease!=null){return function isExactmatch(i){return i===r}}function _reject(r){s.add(r);return false}function _accept(r){i.add(r);return true}return function isCompatible(r){if(i.has(r)){return true}if(s.has(r)){return false}const a=r.match(l);if(!a){return _reject(r)}const p={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(p.prerelease!=null){return _reject(r)}if(c.major!==p.major){return _reject(r)}if(c.major===0){if(c.minor===p.minor&&c.patch<=p.patch){return _accept(r)}return _reject(r)}if(c.minor<=p.minor){return _accept(r)}return _reject(r)}}i._makeCompatibilityCheck=_makeCompatibilityCheck;i.isCompatible=_makeCompatibilityCheck(a.VERSION)},72601:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.metrics=void 0;const a=s(17696);i.metrics=a.MetricsAPI.getInstance()},89999:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ValueType=void 0;var s;(function(r){r[r["INT"]=0]="INT";r[r["DOUBLE"]=1]="DOUBLE"})(s=i.ValueType||(i.ValueType={}))},4837:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createNoopMeter=i.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=i.NOOP_OBSERVABLE_GAUGE_METRIC=i.NOOP_OBSERVABLE_COUNTER_METRIC=i.NOOP_UP_DOWN_COUNTER_METRIC=i.NOOP_HISTOGRAM_METRIC=i.NOOP_COUNTER_METRIC=i.NOOP_METER=i.NoopObservableUpDownCounterMetric=i.NoopObservableGaugeMetric=i.NoopObservableCounterMetric=i.NoopObservableMetric=i.NoopHistogramMetric=i.NoopUpDownCounterMetric=i.NoopCounterMetric=i.NoopMetric=i.NoopMeter=void 0;class NoopMeter{constructor(){}createHistogram(r,s){return i.NOOP_HISTOGRAM_METRIC}createCounter(r,s){return i.NOOP_COUNTER_METRIC}createUpDownCounter(r,s){return i.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(r,s){return i.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(r,s){return i.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(r,s){return i.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(r,i){}removeBatchObservableCallback(r){}}i.NoopMeter=NoopMeter;class NoopMetric{}i.NoopMetric=NoopMetric;class NoopCounterMetric extends NoopMetric{add(r,i){}}i.NoopCounterMetric=NoopCounterMetric;class NoopUpDownCounterMetric extends NoopMetric{add(r,i){}}i.NoopUpDownCounterMetric=NoopUpDownCounterMetric;class NoopHistogramMetric extends NoopMetric{record(r,i){}}i.NoopHistogramMetric=NoopHistogramMetric;class NoopObservableMetric{addCallback(r){}removeCallback(r){}}i.NoopObservableMetric=NoopObservableMetric;class NoopObservableCounterMetric extends NoopObservableMetric{}i.NoopObservableCounterMetric=NoopObservableCounterMetric;class NoopObservableGaugeMetric extends NoopObservableMetric{}i.NoopObservableGaugeMetric=NoopObservableGaugeMetric;class NoopObservableUpDownCounterMetric extends NoopObservableMetric{}i.NoopObservableUpDownCounterMetric=NoopObservableUpDownCounterMetric;i.NOOP_METER=new NoopMeter;i.NOOP_COUNTER_METRIC=new NoopCounterMetric;i.NOOP_HISTOGRAM_METRIC=new NoopHistogramMetric;i.NOOP_UP_DOWN_COUNTER_METRIC=new NoopUpDownCounterMetric;i.NOOP_OBSERVABLE_COUNTER_METRIC=new NoopObservableCounterMetric;i.NOOP_OBSERVABLE_GAUGE_METRIC=new NoopObservableGaugeMetric;i.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new NoopObservableUpDownCounterMetric;function createNoopMeter(){return i.NOOP_METER}i.createNoopMeter=createNoopMeter},72647:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NOOP_METER_PROVIDER=i.NoopMeterProvider=void 0;const a=s(4837);class NoopMeterProvider{getMeter(r,i,s){return a.NOOP_METER}}i.NoopMeterProvider=NoopMeterProvider;i.NOOP_METER_PROVIDER=new NoopMeterProvider},99957:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});l(s(87200),i)},89406:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i._globalThis=void 0;i._globalThis=typeof globalThis==="object"?globalThis:global},87200:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});l(s(89406),i)},17591:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.propagation=void 0;const a=s(89909);i.propagation=a.PropagationAPI.getInstance()},72368:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTextMapPropagator=void 0;class NoopTextMapPropagator{inject(r,i){}extract(r,i){return r}fields(){return[]}}i.NoopTextMapPropagator=NoopTextMapPropagator},80865:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.defaultTextMapSetter=i.defaultTextMapGetter=void 0;i.defaultTextMapGetter={get(r,i){if(r==null){return undefined}return r[i]},keys(r){if(r==null){return[]}return Object.keys(r)}};i.defaultTextMapSetter={set(r,i,s){if(r==null){return}r[i]=s}}},98989:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.trace=void 0;const a=s(81539);i.trace=a.TraceAPI.getInstance()},81462:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NonRecordingSpan=void 0;const a=s(91760);class NonRecordingSpan{constructor(r=a.INVALID_SPAN_CONTEXT){this._spanContext=r}spanContext(){return this._spanContext}setAttribute(r,i){return this}setAttributes(r){return this}addEvent(r,i){return this}setStatus(r){return this}updateName(r){return this}end(r){}isRecording(){return false}recordException(r,i){}}i.NonRecordingSpan=NonRecordingSpan},17606:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracer=void 0;const a=s(57171);const l=s(23326);const c=s(81462);const p=s(49745);const d=a.ContextAPI.getInstance();class NoopTracer{startSpan(r,i,s=d.active()){const a=Boolean(i===null||i===void 0?void 0:i.root);if(a){return new c.NonRecordingSpan}const u=s&&(0,l.getSpanContext)(s);if(isSpanContext(u)&&(0,p.isSpanContextValid)(u)){return new c.NonRecordingSpan(u)}else{return new c.NonRecordingSpan}}startActiveSpan(r,i,s,a){let c;let p;let u;if(arguments.length<2){return}else if(arguments.length===2){u=i}else if(arguments.length===3){c=i;u=s}else{c=i;p=s;u=a}const A=p!==null&&p!==void 0?p:d.active();const h=this.startSpan(r,c,A);const g=(0,l.setSpan)(A,h);return d.with(g,u,undefined,h)}}i.NoopTracer=NoopTracer;function isSpanContext(r){return typeof r==="object"&&typeof r["spanId"]==="string"&&typeof r["traceId"]==="string"&&typeof r["traceFlags"]==="number"}},23259:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracerProvider=void 0;const a=s(17606);class NoopTracerProvider{getTracer(r,i,s){return new a.NoopTracer}}i.NoopTracerProvider=NoopTracerProvider},43503:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracer=void 0;const a=s(17606);const l=new a.NoopTracer;class ProxyTracer{constructor(r,i,s,a){this._provider=r;this.name=i;this.version=s;this.options=a}startSpan(r,i,s){return this._getTracer().startSpan(r,i,s)}startActiveSpan(r,i,s,a){const l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)}_getTracer(){if(this._delegate){return this._delegate}const r=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!r){return l}this._delegate=r;return this._delegate}}i.ProxyTracer=ProxyTracer},2285:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracerProvider=void 0;const a=s(43503);const l=s(23259);const c=new l.NoopTracerProvider;class ProxyTracerProvider{getTracer(r,i,s){var l;return(l=this.getDelegateTracer(r,i,s))!==null&&l!==void 0?l:new a.ProxyTracer(this,r,i,s)}getDelegate(){var r;return(r=this._delegate)!==null&&r!==void 0?r:c}setDelegate(r){this._delegate=r}getDelegateTracer(r,i,s){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,i,s)}}i.ProxyTracerProvider=ProxyTracerProvider},33209:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SamplingDecision=void 0;var s;(function(r){r[r["NOT_RECORD"]=0]="NOT_RECORD";r[r["RECORD"]=1]="RECORD";r[r["RECORD_AND_SAMPLED"]=2]="RECORD_AND_SAMPLED"})(s=i.SamplingDecision||(i.SamplingDecision={}))},23326:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getSpanContext=i.setSpanContext=i.deleteSpan=i.setSpan=i.getActiveSpan=i.getSpan=void 0;const a=s(78242);const l=s(81462);const c=s(57171);const p=(0,a.createContextKey)("OpenTelemetry Context Key SPAN");function getSpan(r){return r.getValue(p)||undefined}i.getSpan=getSpan;function getActiveSpan(){return getSpan(c.ContextAPI.getInstance().active())}i.getActiveSpan=getActiveSpan;function setSpan(r,i){return r.setValue(p,i)}i.setSpan=setSpan;function deleteSpan(r){return r.deleteValue(p)}i.deleteSpan=deleteSpan;function setSpanContext(r,i){return setSpan(r,new l.NonRecordingSpan(i))}i.setSpanContext=setSpanContext;function getSpanContext(r){var i;return(i=getSpan(r))===null||i===void 0?void 0:i.spanContext()}i.getSpanContext=getSpanContext},62110:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceStateImpl=void 0;const a=s(54864);const l=32;const c=512;const p=",";const d="=";class TraceStateImpl{constructor(r){this._internalState=new Map;if(r)this._parse(r)}set(r,i){const s=this._clone();if(s._internalState.has(r)){s._internalState.delete(r)}s._internalState.set(r,i);return s}unset(r){const i=this._clone();i._internalState.delete(r);return i}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce(((r,i)=>{r.push(i+d+this.get(i));return r}),[]).join(p)}_parse(r){if(r.length>c)return;this._internalState=r.split(p).reverse().reduce(((r,i)=>{const s=i.trim();const l=s.indexOf(d);if(l!==-1){const c=s.slice(0,l);const p=s.slice(l+1,i.length);if((0,a.validateKey)(c)&&(0,a.validateValue)(p)){r.set(c,p)}else{}}return r}),new Map);if(this._internalState.size>l){this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,l))}}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const r=new TraceStateImpl;r._internalState=new Map(this._internalState);return r}}i.TraceStateImpl=TraceStateImpl},54864:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateValue=i.validateKey=void 0;const s="[_0-9a-z-*/]";const a=`[a-z]${s}{0,255}`;const l=`[a-z0-9]${s}{0,240}@[a-z]${s}{0,13}`;const c=new RegExp(`^(?:${a}|${l})$`);const p=/^[ -~]{0,255}[!-~]$/;const d=/,|=/;function validateKey(r){return c.test(r)}i.validateKey=validateKey;function validateValue(r){return p.test(r)&&!d.test(r)}i.validateValue=validateValue},32615:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createTraceState=void 0;const a=s(62110);function createTraceState(r){return new a.TraceStateImpl(r)}i.createTraceState=createTraceState},91760:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.INVALID_SPAN_CONTEXT=i.INVALID_TRACEID=i.INVALID_SPANID=void 0;const a=s(26905);i.INVALID_SPANID="0000000000000000";i.INVALID_TRACEID="00000000000000000000000000000000";i.INVALID_SPAN_CONTEXT={traceId:i.INVALID_TRACEID,spanId:i.INVALID_SPANID,traceFlags:a.TraceFlags.NONE}},31424:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SpanKind=void 0;var s;(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(s=i.SpanKind||(i.SpanKind={}))},49745:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.wrapSpanContext=i.isSpanContextValid=i.isValidSpanId=i.isValidTraceId=void 0;const a=s(91760);const l=s(81462);const c=/^([0-9a-f]{32})$/i;const p=/^[0-9a-f]{16}$/i;function isValidTraceId(r){return c.test(r)&&r!==a.INVALID_TRACEID}i.isValidTraceId=isValidTraceId;function isValidSpanId(r){return p.test(r)&&r!==a.INVALID_SPANID}i.isValidSpanId=isValidSpanId;function isSpanContextValid(r){return isValidTraceId(r.traceId)&&isValidSpanId(r.spanId)}i.isSpanContextValid=isSpanContextValid;function wrapSpanContext(r){return new l.NonRecordingSpan(r)}i.wrapSpanContext=wrapSpanContext},48845:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SpanStatusCode=void 0;var s;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(s=i.SpanStatusCode||(i.SpanStatusCode={}))},26905:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceFlags=void 0;var s;(function(r){r[r["NONE"]=0]="NONE";r[r["SAMPLED"]=1]="SAMPLED"})(s=i.TraceFlags||(i.TraceFlags={}))},98996:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.VERSION=void 0;i.VERSION="1.7.0"},29912:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.requests=s;this.headers=a;this.response=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:i,status:s,trailers:a}}))}}i.ClientStreamingCall=ClientStreamingCall},85702:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Deferred=i.DeferredState=void 0;var s;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(s=i.DeferredState||(i.DeferredState={}));class Deferred{constructor(r=true){this._state=s.PENDING;this._promise=new Promise(((r,i)=>{this._resolve=r;this._reject=i}));if(r){this._promise.catch((r=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(r){if(this.state!==s.PENDING)throw new Error(`cannot resolve ${s[this.state].toLowerCase()}`);this._resolve(r);this._state=s.RESOLVED}reject(r){if(this.state!==s.PENDING)throw new Error(`cannot reject ${s[this.state].toLowerCase()}`);this._reject(r);this._state=s.REJECTED}resolvePending(r){if(this._state===s.PENDING)this.resolve(r)}rejectPending(r){if(this._state===s.PENDING)this.reject(r)}}i.Deferred=Deferred},17042:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.requests=s;this.headers=a;this.responses=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:i,trailers:s}}))}}i.DuplexStreamingCall=DuplexStreamingCall},60012:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(14107);Object.defineProperty(i,"ServiceType",{enumerable:true,get:function(){return a.ServiceType}});var l=s(44331);Object.defineProperty(i,"readMethodOptions",{enumerable:true,get:function(){return l.readMethodOptions}});Object.defineProperty(i,"readMethodOption",{enumerable:true,get:function(){return l.readMethodOption}});Object.defineProperty(i,"readServiceOption",{enumerable:true,get:function(){return l.readServiceOption}});var c=s(63159);Object.defineProperty(i,"RpcError",{enumerable:true,get:function(){return c.RpcError}});var p=s(67386);Object.defineProperty(i,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var d=s(76637);Object.defineProperty(i,"RpcOutputStreamController",{enumerable:true,get:function(){return d.RpcOutputStreamController}});var u=s(87008);Object.defineProperty(i,"TestTransport",{enumerable:true,get:function(){return u.TestTransport}});var A=s(85702);Object.defineProperty(i,"Deferred",{enumerable:true,get:function(){return A.Deferred}});Object.defineProperty(i,"DeferredState",{enumerable:true,get:function(){return A.DeferredState}});var h=s(17042);Object.defineProperty(i,"DuplexStreamingCall",{enumerable:true,get:function(){return h.DuplexStreamingCall}});var g=s(29912);Object.defineProperty(i,"ClientStreamingCall",{enumerable:true,get:function(){return g.ClientStreamingCall}});var E=s(30066);Object.defineProperty(i,"ServerStreamingCall",{enumerable:true,get:function(){return E.ServerStreamingCall}});var y=s(84175);Object.defineProperty(i,"UnaryCall",{enumerable:true,get:function(){return y.UnaryCall}});var b=s(51680);Object.defineProperty(i,"stackIntercept",{enumerable:true,get:function(){return b.stackIntercept}});Object.defineProperty(i,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return b.stackDuplexStreamingInterceptors}});Object.defineProperty(i,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return b.stackClientStreamingInterceptors}});Object.defineProperty(i,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return b.stackServerStreamingInterceptors}});Object.defineProperty(i,"stackUnaryInterceptors",{enumerable:true,get:function(){return b.stackUnaryInterceptors}});var C=s(25320);Object.defineProperty(i,"ServerCallContextController",{enumerable:true,get:function(){return C.ServerCallContextController}})},44331:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.readServiceOption=i.readMethodOption=i.readMethodOptions=i.normalizeMethodInfo=void 0;const a=s(4061);function normalizeMethodInfo(r,i){var s,l,c;let p=r;p.service=i;p.localName=(s=p.localName)!==null&&s!==void 0?s:a.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(l=p.options)!==null&&l!==void 0?l:{};p.idempotency=(c=p.idempotency)!==null&&c!==void 0?c:undefined;return p}i.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,i,s,a){var l;const c=(l=r.methods.find(((r,s)=>r.localName===i||s===i)))===null||l===void 0?void 0:l.options;return c&&c[s]?a.fromJson(c[s]):undefined}i.readMethodOptions=readMethodOptions;function readMethodOption(r,i,s,a){var l;const c=(l=r.methods.find(((r,s)=>r.localName===i||s===i)))===null||l===void 0?void 0:l.options;if(!c){return undefined}const p=c[s];if(p===undefined){return p}return a?a.fromJson(p):p}i.readMethodOption=readMethodOption;function readServiceOption(r,i,s){const a=r.options;if(!a){return undefined}const l=a[i];if(l===undefined){return l}return s?s.fromJson(l):l}i.readServiceOption=readServiceOption},63159:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcError=void 0;class RpcError extends Error{constructor(r,i="UNKNOWN",s){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=i;this.meta=s!==null&&s!==void 0?s:{}}toString(){const r=[this.name+": "+this.message];if(this.code){r.push("");r.push("Code: "+this.code)}if(this.serviceName&&this.methodName){r.push("Method: "+this.serviceName+"/"+this.methodName)}let i=Object.entries(this.meta);if(i.length){r.push("");r.push("Meta:");for(let[s,a]of i){r.push(` ${s}: ${a}`)}}return r.join("\n")}}i.RpcError=RpcError},51680:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.stackDuplexStreamingInterceptors=i.stackClientStreamingInterceptors=i.stackServerStreamingInterceptors=i.stackUnaryInterceptors=i.stackIntercept=void 0;const a=s(4061);function stackIntercept(r,i,s,l,c){var p,d,u,A;if(r=="unary"){let tail=(r,s,a)=>i.unary(r,s,a);for(const r of((p=l.interceptors)!==null&&p!==void 0?p:[]).filter((r=>r.interceptUnary)).reverse()){const i=tail;tail=(s,a,l)=>r.interceptUnary(i,s,a,l)}return tail(s,c,l)}if(r=="serverStreaming"){let tail=(r,s,a)=>i.serverStreaming(r,s,a);for(const r of((d=l.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptServerStreaming)).reverse()){const i=tail;tail=(s,a,l)=>r.interceptServerStreaming(i,s,a,l)}return tail(s,c,l)}if(r=="clientStreaming"){let tail=(r,s)=>i.clientStreaming(r,s);for(const r of((u=l.interceptors)!==null&&u!==void 0?u:[]).filter((r=>r.interceptClientStreaming)).reverse()){const i=tail;tail=(s,a)=>r.interceptClientStreaming(i,s,a)}return tail(s,l)}if(r=="duplex"){let tail=(r,s)=>i.duplex(r,s);for(const r of((A=l.interceptors)!==null&&A!==void 0?A:[]).filter((r=>r.interceptDuplex)).reverse()){const i=tail;tail=(s,a)=>r.interceptDuplex(i,s,a)}return tail(s,l)}a.assertNever(r)}i.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,i,s,a){return stackIntercept("unary",r,i,a,s)}i.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,i,s,a){return stackIntercept("serverStreaming",r,i,a,s)}i.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,i,s){return stackIntercept("clientStreaming",r,i,s)}i.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,i,s){return stackIntercept("duplex",r,i,s)}i.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},67386:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeRpcOptions=void 0;const a=s(4061);function mergeRpcOptions(r,i){if(!i)return r;let s={};copy(r,s);copy(i,s);for(let l of Object.keys(i)){let c=i[l];switch(l){case"jsonOptions":s.jsonOptions=a.mergeJsonOptions(r.jsonOptions,s.jsonOptions);break;case"binaryOptions":s.binaryOptions=a.mergeBinaryOptions(r.binaryOptions,s.binaryOptions);break;case"meta":s.meta={};copy(r.meta,s.meta);copy(i.meta,s.meta);break;case"interceptors":s.interceptors=r.interceptors?r.interceptors.concat(c):c.concat();break}}return s}i.mergeRpcOptions=mergeRpcOptions;function copy(r,i){if(!r)return;let s=i;for(let[i,a]of Object.entries(r)){if(a instanceof Date)s[i]=new Date(a.getTime());else if(Array.isArray(a))s[i]=a.concat();else s[i]=a}}},76637:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcOutputStreamController=void 0;const a=s(85702);const l=s(4061);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false}onNext(r){return this.addLis(r,this._lis.nxt)}onMessage(r){return this.addLis(r,this._lis.msg)}onError(r){return this.addLis(r,this._lis.err)}onComplete(r){return this.addLis(r,this._lis.cmp)}addLis(r,i){i.push(r);return()=>{let s=i.indexOf(r);if(s>=0)i.splice(s,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,i,s){l.assert((r?1:0)+(i?1:0)+(s?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(i)this.notifyError(i);if(s)this.notifyComplete()}notifyMessage(r){l.assert(!this.closed,"stream is closed");this.pushIt({value:r,done:false});this._lis.msg.forEach((i=>i(r)));this._lis.nxt.forEach((i=>i(r,undefined,false)))}notifyError(r){l.assert(!this.closed,"stream is closed");this._closed=r;this.pushIt(r);this._lis.err.forEach((i=>i(r)));this._lis.nxt.forEach((i=>i(undefined,r,false)));this.clearLis()}notifyComplete(){l.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((r=>r()));this._lis.nxt.forEach((r=>r(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(!this._itState){this._itState={q:[]}}if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let r=this._itState;l.assert(r,"bad state");l.assert(!r.p,"iterator contract broken");let i=r.q.shift();if(i)return"value"in i?Promise.resolve(i):Promise.reject(i);r.p=new a.Deferred;return r.p.promise}}}pushIt(r){let i=this._itState;if(!i)return;if(i.p){const s=i.p;l.assert(s.state==a.DeferredState.PENDING,"iterator contract broken");"value"in r?s.resolve(r):s.reject(r);delete i.p}else{i.q.push(r)}}}i.RpcOutputStreamController=RpcOutputStreamController},25320:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,i,s,a,l={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=i;this.deadline=s;this.trailers={};this._sendRH=a;this.status=l}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let r of this._listeners){r()}}}sendResponseHeaders(r){this._sendRH(r)}get cancelled(){return this._cancelled}onCancel(r){const i=this._listeners;i.push(r);return()=>{let s=i.indexOf(r);if(s>=0)i.splice(s,1)}}}i.ServerCallContextController=ServerCallContextController},30066:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.request=s;this.headers=a;this.responses=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:i,trailers:s}}))}}i.ServerStreamingCall=ServerStreamingCall},14107:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServiceType=void 0;const a=s(44331);class ServiceType{constructor(r,i,s){this.typeName=r;this.methods=i.map((r=>a.normalizeMethodInfo(r,this)));this.options=s!==null&&s!==void 0?s:{}}}i.ServiceType=ServiceType},87008:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.TestTransport=void 0;const l=s(63159);const c=s(4061);const p=s(76637);const d=s(67386);const u=s(84175);const A=s(30066);const h=s(29912);const g=s(17042);class TestTransport{constructor(r){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=r!==null&&r!==void 0?r:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var r;const i=(r=this.data.headers)!==null&&r!==void 0?r:TestTransport.defaultHeaders;return i instanceof l.RpcError?Promise.reject(i):Promise.resolve(i)}promiseSingleResponse(r){if(this.data.response instanceof l.RpcError){return Promise.reject(this.data.response)}let i;if(Array.isArray(this.data.response)){c.assert(this.data.response.length>0);i=this.data.response[0]}else if(this.data.response!==undefined){i=this.data.response}else{i=r.O.create()}c.assert(r.O.is(i));return Promise.resolve(i)}streamResponses(r,i,s){return a(this,void 0,void 0,(function*(){const a=[];if(this.data.response===undefined){a.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let i of this.data.response){c.assert(r.O.is(i));a.push(i)}}else if(!(this.data.response instanceof l.RpcError)){c.assert(r.O.is(this.data.response));a.push(this.data.response)}try{yield delay(this.responseDelay,s)(undefined)}catch(r){i.notifyError(r);return}if(this.data.response instanceof l.RpcError){i.notifyError(this.data.response);return}for(let r of a){i.notifyMessage(r);try{yield delay(this.betweenResponseDelay,s)(undefined)}catch(r){i.notifyError(r);return}}if(this.data.status instanceof l.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof l.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()}))}promiseStatus(){var r;const i=(r=this.data.status)!==null&&r!==void 0?r:TestTransport.defaultStatus;return i instanceof l.RpcError?Promise.reject(i):Promise.resolve(i)}promiseTrailers(){var r;const i=(r=this.data.trailers)!==null&&r!==void 0?r:TestTransport.defaultTrailers;return i instanceof l.RpcError?Promise.reject(i):Promise.resolve(i)}maybeSuppressUncaught(...r){if(this.suppressUncaughtRejections){for(let i of r){i.catch((()=>{}))}}}mergeOptions(r){return d.mergeRpcOptions({},r)}unary(r,i,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),p=c.catch((r=>{})).then(delay(this.responseDelay,s.abort)).then((i=>this.promiseSingleResponse(r))),d=p.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseStatus())),A=p.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,A);this.lastInput={single:i};return new u.UnaryCall(r,l,i,c,p,d,A)}serverStreaming(r,i,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),d=new p.RpcOutputStreamController,u=c.then(delay(this.responseDelay,s.abort)).catch((()=>{})).then((()=>this.streamResponses(r,d,s.abort))).then(delay(this.afterResponseDelay,s.abort)),h=u.then((()=>this.promiseStatus())),g=u.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(h,g);this.lastInput={single:i};return new A.ServerStreamingCall(r,l,i,c,d,h,g)}clientStreaming(r,i){var s;const a=(s=i.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),c=l.catch((r=>{})).then(delay(this.responseDelay,i.abort)).then((i=>this.promiseSingleResponse(r))),p=c.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseStatus())),d=c.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(p,d);this.lastInput=new TestInputStream(this.data,i.abort);return new h.ClientStreamingCall(r,a,this.lastInput,l,c,p,d)}duplex(r,i){var s;const a=(s=i.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),c=new p.RpcOutputStreamController,d=l.then(delay(this.responseDelay,i.abort)).catch((()=>{})).then((()=>this.streamResponses(r,c,i.abort))).then(delay(this.afterResponseDelay,i.abort)),u=d.then((()=>this.promiseStatus())),A=d.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(u,A);this.lastInput=new TestInputStream(this.data,i.abort);return new g.DuplexStreamingCall(r,a,this.lastInput,l,c,u,A)}}i.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,i){return s=>new Promise(((a,c)=>{if(i===null||i===void 0?void 0:i.aborted){c(new l.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>a(s)),r);if(i){i.addEventListener("abort",(r=>{clearTimeout(p);c(new l.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(r,i){this._completed=false;this._sent=[];this.data=r;this.abort=i}get sent(){return this._sent}get completed(){return this._completed}send(r){if(this.data.inputMessage instanceof l.RpcError){return Promise.reject(this.data.inputMessage)}const i=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(r)})).then(delay(i,this.abort))}complete(){if(this.data.inputComplete instanceof l.RpcError){return Promise.reject(this.data.inputComplete)}const r=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(r,this.abort))}}},84175:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.UnaryCall=void 0;class UnaryCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.request=s;this.headers=a;this.response=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,response:i,status:s,trailers:a}}))}}i.UnaryCall=UnaryCall},54253:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.assertFloat32=i.assertUInt32=i.assertInt32=i.assertNever=i.assert=void 0;function assert(r,i){if(!r){throw new Error(i)}}i.assert=assert;function assertNever(r,i){throw new Error(i!==null&&i!==void 0?i:"Unexpected object: "+r)}i.assertNever=assertNever;const s=34028234663852886e22,a=-34028234663852886e22,l=4294967295,c=2147483647,p=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>c||rl||r<0)throw new Error("invalid uint 32: "+r)}i.assertUInt32=assertUInt32;function assertFloat32(r){if(typeof r!=="number")throw new Error("invalid float 32: "+typeof r);if(!Number.isFinite(r))return;if(r>s||r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.base64encode=i.base64decode=void 0;let s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let a=[];for(let r=0;r>4;d=p;c=2;break;case 2:s[l++]=(d&15)<<4|(p&60)>>2;d=p;c=3;break;case 3:s[l++]=(d&3)<<6|p;c=0;break}}if(c==1)throw Error(`invalid base64 string.`);return s.subarray(0,l)}i.base64decode=base64decode;function base64encode(r){let i="",a=0,l,c=0;for(let p=0;p>2];c=(l&3)<<4;a=1;break;case 1:i+=s[c|l>>4];c=(l&15)<<2;a=2;break;case 2:i+=s[c|l>>6];i+=s[l&63];a=0;break}}if(a){i+=s[c];i+="=";if(a==1)i+="="}return i}i.base64encode=base64encode},84921:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.WireType=i.mergeBinaryOptions=i.UnknownFieldHandler=void 0;var s;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(i,s,a,l,c)=>{let p=is(s)?s[r.symbol]:s[r.symbol]=[];p.push({no:a,wireType:l,data:c})};r.onWrite=(i,s,a)=>{for(let{no:i,wireType:l,data:c}of r.list(s))a.tag(i,l).raw(c)};r.list=(i,s)=>{if(is(i)){let a=i[r.symbol];return s?a.filter((r=>r.no==s)):a}return[]};r.last=(i,s)=>r.list(i,s).slice(-1)[0];const is=i=>i&&Array.isArray(i[r.symbol])})(s=i.UnknownFieldHandler||(i.UnknownFieldHandler={}));function mergeBinaryOptions(r,i){return Object.assign(Object.assign({},r),i)}i.mergeBinaryOptions=mergeBinaryOptions;var a;(function(r){r[r["Varint"]=0]="Varint";r[r["Bit64"]=1]="Bit64";r[r["LengthDelimited"]=2]="LengthDelimited";r[r["StartGroup"]=3]="StartGroup";r[r["EndGroup"]=4]="EndGroup";r[r["Bit32"]=5]="Bit32"})(a=i.WireType||(i.WireType={}))},65210:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryReader=i.binaryReadOptions=void 0;const a=s(84921);const l=s(47777);const c=s(30433);const p={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},p),r):p}i.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,i){this.varint64=c.varint64read;this.uint32=c.varint32read;this.buf=r;this.len=r.length;this.pos=0;this.view=new DataView(r.buffer,r.byteOffset,r.byteLength);this.textDecoder=i!==null&&i!==void 0?i:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let r=this.uint32(),i=r>>>3,s=r&7;if(i<=0||s<0||s>5)throw new Error("illegal tag: field no "+i+" wire type "+s);return[i,s]}skip(r){let i=this.pos;switch(r){case a.WireType.Varint:while(this.buf[this.pos++]&128){}break;case a.WireType.Bit64:this.pos+=4;case a.WireType.Bit32:this.pos+=4;break;case a.WireType.LengthDelimited:let i=this.uint32();this.pos+=i;break;case a.WireType.StartGroup:let s;while((s=this.tag()[1])!==a.WireType.EndGroup){this.skip(s)}break;default:throw new Error("cant skip wire type "+r)}this.assertBounds();return this.buf.subarray(i,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let r=this.uint32();return r>>>1^-(r&1)}int64(){return new l.PbLong(...this.varint64())}uint64(){return new l.PbULong(...this.varint64())}sint64(){let[r,i]=this.varint64();let s=-(r&1);r=(r>>>1|(i&1)<<31)^s;i=i>>>1^s;return new l.PbLong(r,i)}bool(){let[r,i]=this.varint64();return r!==0||i!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new l.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new l.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let r=this.uint32();let i=this.pos;this.pos+=r;this.assertBounds();return this.buf.subarray(i,i+r)}string(){return this.textDecoder.decode(this.bytes())}}i.BinaryReader=BinaryReader},44354:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryWriter=i.binaryWriteOptions=void 0;const a=s(47777);const l=s(30433);const c=s(54253);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},p),r):p}i.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(r){this.stack=[];this.textEncoder=r!==null&&r!==void 0?r:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let r=0;for(let i=0;i>>0)}raw(r){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(r);return this}uint32(r){c.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){c.assertInt32(r);l.varint32write(r,this.buf);return this}bool(r){this.buf.push(r?1:0);return this}bytes(r){this.uint32(r.byteLength);return this.raw(r)}string(r){let i=this.textEncoder.encode(r);this.uint32(i.byteLength);return this.raw(i)}float(r){c.assertFloat32(r);let i=new Uint8Array(4);new DataView(i.buffer).setFloat32(0,r,true);return this.raw(i)}double(r){let i=new Uint8Array(8);new DataView(i.buffer).setFloat64(0,r,true);return this.raw(i)}fixed32(r){c.assertUInt32(r);let i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r,true);return this.raw(i)}sfixed32(r){c.assertInt32(r);let i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,r,true);return this.raw(i)}sint32(r){c.assertInt32(r);r=(r<<1^r>>31)>>>0;l.varint32write(r,this.buf);return this}sfixed64(r){let i=new Uint8Array(8);let s=new DataView(i.buffer);let l=a.PbLong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(i)}fixed64(r){let i=new Uint8Array(8);let s=new DataView(i.buffer);let l=a.PbULong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(i)}int64(r){let i=a.PbLong.from(r);l.varint64write(i.lo,i.hi,this.buf);return this}sint64(r){let i=a.PbLong.from(r),s=i.hi>>31,c=i.lo<<1^s,p=(i.hi<<1|i.lo>>>31)^s;l.varint64write(c,p,this.buf);return this}uint64(r){let i=a.PbULong.from(r);l.varint64write(i.lo,i.hi,this.buf);return this}}i.BinaryWriter=BinaryWriter},20085:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.listEnumNumbers=i.listEnumNames=i.listEnumValues=i.isEnumObject=void 0;function isEnumObject(r){if(typeof r!="object"||r===null){return false}if(!r.hasOwnProperty(0)){return false}for(let i of Object.keys(r)){let s=parseInt(i);if(!Number.isNaN(s)){let i=r[s];if(i===undefined)return false;if(r[i]!==s)return false}else{let s=r[i];if(s===undefined)return false;if(typeof s!=="number")return false;if(r[s]===undefined)return false}}return true}i.isEnumObject=isEnumObject;function listEnumValues(r){if(!isEnumObject(r))throw new Error("not a typescript enum object");let i=[];for(let[s,a]of Object.entries(r))if(typeof a=="number")i.push({name:s,number:a});return i}i.listEnumValues=listEnumValues;function listEnumNames(r){return listEnumValues(r).map((r=>r.name))}i.listEnumNames=listEnumNames;function listEnumNumbers(r){return listEnumValues(r).map((r=>r.number)).filter(((r,i,s)=>s.indexOf(r)==i))}i.listEnumNumbers=listEnumNumbers},30433:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.varint32read=i.varint32write=i.int64toString=i.int64fromString=i.varint64write=i.varint64read=void 0;function varint64read(){let r=0;let i=0;for(let s=0;s<28;s+=7){let a=this.buf[this.pos++];r|=(a&127)<>4;if((s&128)==0){this.assertBounds();return[r,i]}for(let s=3;s<=31;s+=7){let a=this.buf[this.pos++];i|=(a&127)<>>a;const c=!(l>>>7==0&&i==0);const p=(c?l|128:l)&255;s.push(p);if(!c){return}}const a=r>>>28&15|(i&7)<<4;const l=!(i>>3==0);s.push((l?a|128:a)&255);if(!l){return}for(let r=3;r<31;r=r+7){const a=i>>>r;const l=!(a>>>7==0);const c=(l?a|128:a)&255;s.push(c);if(!l){return}}s.push(i>>>31&1)}i.varint64write=varint64write;const s=(1<<16)*(1<<16);function int64fromString(r){let i=r[0]=="-";if(i)r=r.slice(1);const a=1e6;let l=0;let c=0;function add1e6digit(i,p){const d=Number(r.slice(i,p));c*=a;l=l*a+d;if(l>=s){c=c+(l/s|0);l=l%s}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[i,l,c]}i.int64fromString=int64fromString;function int64toString(r,i){if(i>>>0<=2097151){return""+(s*i+(r>>>0))}let a=r&16777215;let l=(r>>>24|i<<8)>>>0&16777215;let c=i>>16&65535;let p=a+l*6777216+c*6710656;let d=l+c*8147497;let u=c*2;let A=1e7;if(p>=A){d+=Math.floor(p/A);p%=A}if(d>=A){u+=Math.floor(d/A);d%=A}function decimalFrom1e7(r,i){let s=r?String(r):"";if(i){return"0000000".slice(s.length)+s}return s}return decimalFrom1e7(u,0)+decimalFrom1e7(d,u)+decimalFrom1e7(p,1)}i.int64toString=int64toString;function varint32write(r,i){if(r>=0){while(r>127){i.push(r&127|128);r=r>>>7}i.push(r)}else{for(let s=0;s<9;s++){i.push(r&127|128);r=r>>7}i.push(1)}}i.varint32write=varint32write;function varint32read(){let r=this.buf[this.pos++];let i=r&127;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&127)<<7;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&127)<<14;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&127)<<21;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&15)<<28;for(let i=5;(r&128)!==0&&i<10;i++)r=this.buf[this.pos++];if((r&128)!=0)throw new Error("invalid varint");this.assertBounds();return i>>>0}i.varint32read=varint32read},4061:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(70661);Object.defineProperty(i,"typeofJsonValue",{enumerable:true,get:function(){return a.typeofJsonValue}});Object.defineProperty(i,"isJsonObject",{enumerable:true,get:function(){return a.isJsonObject}});var l=s(20196);Object.defineProperty(i,"base64decode",{enumerable:true,get:function(){return l.base64decode}});Object.defineProperty(i,"base64encode",{enumerable:true,get:function(){return l.base64encode}});var c=s(95290);Object.defineProperty(i,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var p=s(84921);Object.defineProperty(i,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(i,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(i,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var d=s(65210);Object.defineProperty(i,"BinaryReader",{enumerable:true,get:function(){return d.BinaryReader}});Object.defineProperty(i,"binaryReadOptions",{enumerable:true,get:function(){return d.binaryReadOptions}});var u=s(44354);Object.defineProperty(i,"BinaryWriter",{enumerable:true,get:function(){return u.BinaryWriter}});Object.defineProperty(i,"binaryWriteOptions",{enumerable:true,get:function(){return u.binaryWriteOptions}});var A=s(47777);Object.defineProperty(i,"PbLong",{enumerable:true,get:function(){return A.PbLong}});Object.defineProperty(i,"PbULong",{enumerable:true,get:function(){return A.PbULong}});var h=s(48139);Object.defineProperty(i,"jsonReadOptions",{enumerable:true,get:function(){return h.jsonReadOptions}});Object.defineProperty(i,"jsonWriteOptions",{enumerable:true,get:function(){return h.jsonWriteOptions}});Object.defineProperty(i,"mergeJsonOptions",{enumerable:true,get:function(){return h.mergeJsonOptions}});var g=s(1682);Object.defineProperty(i,"MESSAGE_TYPE",{enumerable:true,get:function(){return g.MESSAGE_TYPE}});var E=s(63664);Object.defineProperty(i,"MessageType",{enumerable:true,get:function(){return E.MessageType}});var y=s(21370);Object.defineProperty(i,"ScalarType",{enumerable:true,get:function(){return y.ScalarType}});Object.defineProperty(i,"LongType",{enumerable:true,get:function(){return y.LongType}});Object.defineProperty(i,"RepeatType",{enumerable:true,get:function(){return y.RepeatType}});Object.defineProperty(i,"normalizeFieldInfo",{enumerable:true,get:function(){return y.normalizeFieldInfo}});Object.defineProperty(i,"readFieldOptions",{enumerable:true,get:function(){return y.readFieldOptions}});Object.defineProperty(i,"readFieldOption",{enumerable:true,get:function(){return y.readFieldOption}});Object.defineProperty(i,"readMessageOption",{enumerable:true,get:function(){return y.readMessageOption}});var b=s(20903);Object.defineProperty(i,"ReflectionTypeCheck",{enumerable:true,get:function(){return b.ReflectionTypeCheck}});var C=s(60390);Object.defineProperty(i,"reflectionCreate",{enumerable:true,get:function(){return C.reflectionCreate}});var v=s(74863);Object.defineProperty(i,"reflectionScalarDefault",{enumerable:true,get:function(){return v.reflectionScalarDefault}});var w=s(7869);Object.defineProperty(i,"reflectionMergePartial",{enumerable:true,get:function(){return w.reflectionMergePartial}});var I=s(39473);Object.defineProperty(i,"reflectionEquals",{enumerable:true,get:function(){return I.reflectionEquals}});var B=s(91593);Object.defineProperty(i,"ReflectionBinaryReader",{enumerable:true,get:function(){return B.ReflectionBinaryReader}});var S=s(57170);Object.defineProperty(i,"ReflectionBinaryWriter",{enumerable:true,get:function(){return S.ReflectionBinaryWriter}});var Q=s(229);Object.defineProperty(i,"ReflectionJsonReader",{enumerable:true,get:function(){return Q.ReflectionJsonReader}});var x=s(68980);Object.defineProperty(i,"ReflectionJsonWriter",{enumerable:true,get:function(){return x.ReflectionJsonWriter}});var R=s(67317);Object.defineProperty(i,"containsMessageType",{enumerable:true,get:function(){return R.containsMessageType}});var T=s(78531);Object.defineProperty(i,"isOneofGroup",{enumerable:true,get:function(){return T.isOneofGroup}});Object.defineProperty(i,"setOneofValue",{enumerable:true,get:function(){return T.setOneofValue}});Object.defineProperty(i,"getOneofValue",{enumerable:true,get:function(){return T.getOneofValue}});Object.defineProperty(i,"clearOneofValue",{enumerable:true,get:function(){return T.clearOneofValue}});Object.defineProperty(i,"getSelectedOneofValue",{enumerable:true,get:function(){return T.getSelectedOneofValue}});var N=s(20085);Object.defineProperty(i,"listEnumValues",{enumerable:true,get:function(){return N.listEnumValues}});Object.defineProperty(i,"listEnumNames",{enumerable:true,get:function(){return N.listEnumNames}});Object.defineProperty(i,"listEnumNumbers",{enumerable:true,get:function(){return N.listEnumNumbers}});Object.defineProperty(i,"isEnumObject",{enumerable:true,get:function(){return N.isEnumObject}});var _=s(34772);Object.defineProperty(i,"lowerCamelCase",{enumerable:true,get:function(){return _.lowerCamelCase}});var k=s(54253);Object.defineProperty(i,"assert",{enumerable:true,get:function(){return k.assert}});Object.defineProperty(i,"assertNever",{enumerable:true,get:function(){return k.assertNever}});Object.defineProperty(i,"assertInt32",{enumerable:true,get:function(){return k.assertInt32}});Object.defineProperty(i,"assertUInt32",{enumerable:true,get:function(){return k.assertUInt32}});Object.defineProperty(i,"assertFloat32",{enumerable:true,get:function(){return k.assertFloat32}})},48139:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeJsonOptions=i.jsonWriteOptions=i.jsonReadOptions=void 0;const s={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},a={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},a),r):a}i.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},s),r):s}i.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,i){var s,a;let l=Object.assign(Object.assign({},r),i);l.typeRegistry=[...(s=r===null||r===void 0?void 0:r.typeRegistry)!==null&&s!==void 0?s:[],...(a=i===null||i===void 0?void 0:i.typeRegistry)!==null&&a!==void 0?a:[]];return l}i.mergeJsonOptions=mergeJsonOptions},70661:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isJsonObject=i.typeofJsonValue=void 0;function typeofJsonValue(r){let i=typeof r;if(i=="object"){if(Array.isArray(r))return"array";if(r===null)return"null"}return i}i.typeofJsonValue=typeofJsonValue;function isJsonObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}i.isJsonObject=isJsonObject},34772:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.lowerCamelCase=void 0;function lowerCamelCase(r){let i=false;const s=[];for(let a=0;a{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MESSAGE_TYPE=void 0;i.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},63664:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MessageType=void 0;const a=s(1682);const l=s(21370);const c=s(20903);const p=s(229);const d=s(68980);const u=s(91593);const A=s(57170);const h=s(60390);const g=s(7869);const E=s(70661);const y=s(48139);const b=s(39473);const C=s(44354);const v=s(65210);class MessageType{constructor(r,i,s){this.defaultCheckDepth=16;this.typeName=r;this.fields=i.map(l.normalizeFieldInfo);this.options=s!==null&&s!==void 0?s:{};this.messagePrototype=Object.defineProperty({},a.MESSAGE_TYPE,{value:this});this.refTypeCheck=new c.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new d.ReflectionJsonWriter(this);this.refBinReader=new u.ReflectionBinaryReader(this);this.refBinWriter=new A.ReflectionBinaryWriter(this)}create(r){let i=h.reflectionCreate(this);if(r!==undefined){g.reflectionMergePartial(this,i,r)}return i}clone(r){let i=this.create();g.reflectionMergePartial(this,i,r);return i}equals(r,i){return b.reflectionEquals(this,r,i)}is(r,i=this.defaultCheckDepth){return this.refTypeCheck.is(r,i,false)}isAssignable(r,i=this.defaultCheckDepth){return this.refTypeCheck.is(r,i,true)}mergePartial(r,i){g.reflectionMergePartial(this,r,i)}fromBinary(r,i){let s=v.binaryReadOptions(i);return this.internalBinaryRead(s.readerFactory(r),r.byteLength,s)}fromJson(r,i){return this.internalJsonRead(r,y.jsonReadOptions(i))}fromJsonString(r,i){let s=JSON.parse(r);return this.fromJson(s,i)}toJson(r,i){return this.internalJsonWrite(r,y.jsonWriteOptions(i))}toJsonString(r,i){var s;let a=this.toJson(r,i);return JSON.stringify(a,null,(s=i===null||i===void 0?void 0:i.prettySpaces)!==null&&s!==void 0?s:0)}toBinary(r,i){let s=C.binaryWriteOptions(i);return this.internalBinaryWrite(r,s.writerFactory(),s).finish()}internalJsonRead(r,i,s){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let a=s!==null&&s!==void 0?s:this.create();this.refJsonReader.read(r,a,i);return a}throw new Error(`Unable to parse message ${this.typeName} from JSON ${E.typeofJsonValue(r)}.`)}internalJsonWrite(r,i){return this.refJsonWriter.write(r,i)}internalBinaryWrite(r,i,s){this.refBinWriter.write(r,i,s);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create();this.refBinReader.read(r,l,s,i);return l}}i.MessageType=MessageType},78531:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getSelectedOneofValue=i.clearOneofValue=i.setUnknownOneofValue=i.setOneofValue=i.getOneofValue=i.isOneofGroup=void 0;function isOneofGroup(r){if(typeof r!="object"||r===null||!r.hasOwnProperty("oneofKind")){return false}switch(typeof r.oneofKind){case"string":if(r[r.oneofKind]===undefined)return false;return Object.keys(r).length==2;case"undefined":return Object.keys(r).length==1;default:return false}}i.isOneofGroup=isOneofGroup;function getOneofValue(r,i){return r[i]}i.getOneofValue=getOneofValue;function setOneofValue(r,i,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=i;if(s!==undefined){r[i]=s}}i.setOneofValue=setOneofValue;function setUnknownOneofValue(r,i,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=i;if(s!==undefined&&i!==undefined){r[i]=s}}i.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(r){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=undefined}i.clearOneofValue=clearOneofValue;function getSelectedOneofValue(r){if(r.oneofKind===undefined){return undefined}return r[r.oneofKind]}i.getSelectedOneofValue=getSelectedOneofValue},47777:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PbLong=i.PbULong=i.detectBi=void 0;const a=s(30433);let l;function detectBi(){const r=new DataView(new ArrayBuffer(8));const i=globalThis.BigInt!==undefined&&typeof r.getBigInt64==="function"&&typeof r.getBigUint64==="function"&&typeof r.setBigInt64==="function"&&typeof r.setBigUint64==="function";l=i?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:r}:undefined}i.detectBi=detectBi;detectBi();function assertBi(r){if(!r)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const c=/^-?[0-9]+$/;const p=4294967296;const d=2147483648;class SharedPbLong{constructor(r,i){this.lo=r|0;this.hi=i|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let r=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(r))throw new Error("cannot convert to safe number");return r}}class PbULong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.UMAX)throw new Error("ulong too large");l.V.setBigUint64(0,r,true);return new PbULong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[i,s,l]=a.int64fromString(r);if(i)throw new Error("signed value for ulong");return new PbULong(s,l);case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");if(r<0)throw new Error("signed value for ulong");return new PbULong(r,r/p)}throw new Error("unknown value "+typeof r)}toString(){return l?this.toBigInt().toString():a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigUint64(0,true)}}i.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.MAX)throw new Error("signed long too large");l.V.setBigInt64(0,r,true);return new PbLong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[i,s,l]=a.int64fromString(r);if(i){if(l>d||l==d&&s!=0)throw new Error("signed long too small")}else if(l>=d)throw new Error("signed long too large");let u=new PbLong(s,l);return i?u.negate():u;case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");return r>0?new PbLong(r,r/p):new PbLong(-r,-r/p).negate()}throw new Error("unknown value "+typeof r)}isNegative(){return(this.hi&d)!==0}negate(){let r=~this.hi,i=this.lo;if(i)i=~i+1;else r+=1;return new PbLong(i,r)}toString(){if(l)return this.toBigInt().toString();if(this.isNegative()){let r=this.negate();return"-"+a.int64toString(r.lo,r.hi)}return a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigInt64(0,true)}}i.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},95290:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.utf8read=void 0;const fromCharCodes=r=>String.fromCharCode.apply(String,r);function utf8read(r){if(r.length<1)return"";let i=0,s=[],a=[],l=0,c;let p=r.length;while(i191&&c<224)a[l++]=(c&31)<<6|r[i++]&63;else if(c>239&&c<365){c=((c&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536;a[l++]=55296+(c>>10);a[l++]=56320+(c&1023)}else a[l++]=(c&15)<<12|(r[i++]&63)<<6|r[i++]&63;if(l>8191){s.push(fromCharCodes(a));l=0}}if(s.length){if(l)s.push(fromCharCodes(a.slice(0,l)));return s.join("")}return fromCharCodes(a.slice(0,l))}i.utf8read=utf8read},91593:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryReader=void 0;const a=s(84921);const l=s(21370);const c=s(24612);const p=s(74863);class ReflectionBinaryReader{constructor(r){this.info=r}prepare(){var r;if(!this.fieldNoToField){const i=(r=this.info.fields)!==null&&r!==void 0?r:[];this.fieldNoToField=new Map(i.map((r=>[r.no,r])))}}read(r,i,s,c){this.prepare();const p=c===undefined?r.len:r.pos+c;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryWriter=void 0;const a=s(84921);const l=s(21370);const c=s(54253);const p=s(47777);class ReflectionBinaryWriter{constructor(r){this.info=r}prepare(){if(!this.fields){const r=this.info.fields?this.info.fields.concat():[];this.fields=r.sort(((r,i)=>r.no-i.no))}}write(r,i,s){this.prepare();for(const a of this.fields){let p,d,u=a.repeat,A=a.localName;if(a.oneof){const i=r[a.oneof];if(i.oneofKind!==A)continue;p=i[A];d=true}else{p=r[A];d=false}switch(a.kind){case"scalar":case"enum":let r=a.kind=="enum"?l.ScalarType.INT32:a.T;if(u){c.assert(Array.isArray(p));if(u==l.RepeatType.PACKED)this.packed(i,r,a.no,p);else for(const s of p)this.scalar(i,r,a.no,s,true)}else if(p===undefined)c.assert(a.opt);else this.scalar(i,r,a.no,p,d||a.opt);break;case"message":if(u){c.assert(Array.isArray(p));for(const r of p)this.message(i,s,a.T(),a.no,r)}else{this.message(i,s,a.T(),a.no,p)}break;case"map":c.assert(typeof p=="object"&&p!==null);for(const[r,l]of Object.entries(p))this.mapEntry(i,s,a,r,l);break}}let p=s.writeUnknownFields;if(p!==false)(p===true?a.UnknownFieldHandler.onWrite:p)(this.info.typeName,r,i)}mapEntry(r,i,s,p,d){r.tag(s.no,a.WireType.LengthDelimited);r.fork();let u=p;switch(s.K){case l.ScalarType.INT32:case l.ScalarType.FIXED32:case l.ScalarType.UINT32:case l.ScalarType.SFIXED32:case l.ScalarType.SINT32:u=Number.parseInt(p);break;case l.ScalarType.BOOL:c.assert(p=="true"||p=="false");u=p=="true";break}this.scalar(r,s.K,1,u,true);switch(s.V.kind){case"scalar":this.scalar(r,s.V.T,2,d,true);break;case"enum":this.scalar(r,l.ScalarType.INT32,2,d,true);break;case"message":this.message(r,i,s.V.T(),2,d);break}r.join()}message(r,i,s,l,c){if(c===undefined)return;s.internalBinaryWrite(c,r.tag(l,a.WireType.LengthDelimited).fork(),i);r.join()}scalar(r,i,s,a,l){let[c,p,d]=this.scalarInfo(i,a);if(!d||l){r.tag(s,c);r[p](a)}}packed(r,i,s,p){if(!p.length)return;c.assert(i!==l.ScalarType.BYTES&&i!==l.ScalarType.STRING);r.tag(s,a.WireType.LengthDelimited);r.fork();let[,d]=this.scalarInfo(i);for(let i=0;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.containsMessageType=void 0;const a=s(1682);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}i.containsMessageType=containsMessageType},60390:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionCreate=void 0;const a=s(74863);const l=s(1682);function reflectionCreate(r){const i=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},l.MESSAGE_TYPE,{value:r});for(let s of r.fields){let r=s.localName;if(s.opt)continue;if(s.oneof)i[s.oneof]={oneofKind:undefined};else if(s.repeat)i[r]=[];else switch(s.kind){case"scalar":i[r]=a.reflectionScalarDefault(s.T,s.L);break;case"enum":i[r]=0;break;case"map":i[r]={};break}}return i}i.reflectionCreate=reflectionCreate},39473:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionEquals=void 0;const a=s(21370);function reflectionEquals(r,i,s){if(i===s)return true;if(!i||!s)return false;for(let c of r.fields){let r=c.localName;let p=c.oneof?i[c.oneof][r]:i[r];let d=c.oneof?s[c.oneof][r]:s[r];switch(c.kind){case"enum":case"scalar":let r=c.kind=="enum"?a.ScalarType.INT32:c.T;if(!(c.repeat?repeatedPrimitiveEq(r,p,d):primitiveEq(r,p,d)))return false;break;case"map":if(!(c.V.kind=="message"?repeatedMsgEq(c.V.T(),l(p),l(d)):repeatedPrimitiveEq(c.V.kind=="enum"?a.ScalarType.INT32:c.V.T,l(p),l(d))))return false;break;case"message":let i=c.T();if(!(c.repeat?repeatedMsgEq(i,p,d):i.equals(p,d)))return false;break}}return true}i.reflectionEquals=reflectionEquals;const l=Object.values;function primitiveEq(r,i,s){if(i===s)return true;if(r!==a.ScalarType.BYTES)return false;let l=i;let c=s;if(l.length!==c.length)return false;for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.readMessageOption=i.readFieldOption=i.readFieldOptions=i.normalizeFieldInfo=i.RepeatType=i.LongType=i.ScalarType=void 0;const a=s(34772);var l;(function(r){r[r["DOUBLE"]=1]="DOUBLE";r[r["FLOAT"]=2]="FLOAT";r[r["INT64"]=3]="INT64";r[r["UINT64"]=4]="UINT64";r[r["INT32"]=5]="INT32";r[r["FIXED64"]=6]="FIXED64";r[r["FIXED32"]=7]="FIXED32";r[r["BOOL"]=8]="BOOL";r[r["STRING"]=9]="STRING";r[r["BYTES"]=12]="BYTES";r[r["UINT32"]=13]="UINT32";r[r["SFIXED32"]=15]="SFIXED32";r[r["SFIXED64"]=16]="SFIXED64";r[r["SINT32"]=17]="SINT32";r[r["SINT64"]=18]="SINT64"})(l=i.ScalarType||(i.ScalarType={}));var c;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(c=i.LongType||(i.LongType={}));var p;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(p=i.RepeatType||(i.RepeatType={}));function normalizeFieldInfo(r){var i,s,l,c;r.localName=(i=r.localName)!==null&&i!==void 0?i:a.lowerCamelCase(r.name);r.jsonName=(s=r.jsonName)!==null&&s!==void 0?s:a.lowerCamelCase(r.name);r.repeat=(l=r.repeat)!==null&&l!==void 0?l:p.NO;r.opt=(c=r.opt)!==null&&c!==void 0?c:r.repeat?false:r.oneof?false:r.kind=="message";return r}i.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,i,s,a){var l;const c=(l=r.fields.find(((r,s)=>r.localName==i||s==i)))===null||l===void 0?void 0:l.options;return c&&c[s]?a.fromJson(c[s]):undefined}i.readFieldOptions=readFieldOptions;function readFieldOption(r,i,s,a){var l;const c=(l=r.fields.find(((r,s)=>r.localName==i||s==i)))===null||l===void 0?void 0:l.options;if(!c){return undefined}const p=c[s];if(p===undefined){return p}return a?a.fromJson(p):p}i.readFieldOption=readFieldOption;function readMessageOption(r,i,s){const a=r.options;const l=a[i];if(l===undefined){return l}return s?s.fromJson(l):l}i.readMessageOption=readMessageOption},229:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonReader=void 0;const a=s(70661);const l=s(20196);const c=s(21370);const p=s(47777);const d=s(54253);const u=s(24612);class ReflectionJsonReader{constructor(r){this.info=r}prepare(){var r;if(this.fMap===undefined){this.fMap={};const i=(r=this.info.fields)!==null&&r!==void 0?r:[];for(const r of i){this.fMap[r.name]=r;this.fMap[r.jsonName]=r;this.fMap[r.localName]=r}}}assert(r,i,s){if(!r){let r=a.typeofJsonValue(s);if(r=="number"||r=="boolean")r=s.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${i}`)}}read(r,i,s){this.prepare();const l=[];for(const[p,d]of Object.entries(r)){const r=this.fMap[p];if(!r){if(!s.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const u=r.localName;let A;if(r.oneof){if(d===null&&(r.kind!=="enum"||r.T()[0]!=="google.protobuf.NullValue")){continue}if(l.includes(r.oneof))throw new Error(`Multiple members of the oneof group "${r.oneof}" of ${this.info.typeName} are present in JSON.`);l.push(r.oneof);A=i[r.oneof]={oneofKind:u}}else{A=i}if(r.kind=="map"){if(d===null){continue}this.assert(a.isJsonObject(d),r.name,d);const i=A[u];for(const[a,l]of Object.entries(d)){this.assert(l!==null,r.name+" map value",null);let p;switch(r.V.kind){case"message":p=r.V.T().internalJsonRead(l,s);break;case"enum":p=this.enum(r.V.T(),l,r.name,s.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(l,r.V.T,r.V.L,r.name);break}this.assert(p!==undefined,r.name+" map value",l);let d=a;if(r.K==c.ScalarType.BOOL)d=d=="true"?true:d=="false"?false:d;d=this.scalar(d,r.K,c.LongType.STRING,r.name).toString();i[d]=p}}else if(r.repeat){if(d===null)continue;this.assert(Array.isArray(d),r.name,d);const i=A[u];for(const a of d){this.assert(a!==null,r.name,null);let l;switch(r.kind){case"message":l=r.T().internalJsonRead(a,s);break;case"enum":l=this.enum(r.T(),a,r.name,s.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(a,r.T,r.L,r.name);break}this.assert(l!==undefined,r.name,d);i.push(l)}}else{switch(r.kind){case"message":if(d===null&&r.T().typeName!="google.protobuf.Value"){this.assert(r.oneof===undefined,r.name+" (oneof member)",null);continue}A[u]=r.T().internalJsonRead(d,s,A[u]);break;case"enum":let i=this.enum(r.T(),d,r.name,s.ignoreUnknownFields);if(i===false)continue;A[u]=i;break;case"scalar":A[u]=this.scalar(d,r.T,r.L,r.name);break}}}}enum(r,i,s,a){if(r[0]=="google.protobuf.NullValue")d.assert(i===null||i==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} only accepts null.`);if(i===null)return 0;switch(typeof i){case"number":d.assert(Number.isInteger(i),`Unable to parse field ${this.info.typeName}#${s}, enum can only be integral number, got ${i}.`);return i;case"string":let l=i;if(r[2]&&i.substring(0,r[2].length)===r[2])l=i.substring(r[2].length);let c=r[1][l];if(typeof c==="undefined"&&a){return false}d.assert(typeof c=="number",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} has no value for "${i}".`);return c}d.assert(false,`Unable to parse field ${this.info.typeName}#${s}, cannot parse enum value from ${typeof i}".`)}scalar(r,i,s,a){let A;try{switch(i){case c.ScalarType.DOUBLE:case c.ScalarType.FLOAT:if(r===null)return 0;if(r==="NaN")return Number.NaN;if(r==="Infinity")return Number.POSITIVE_INFINITY;if(r==="-Infinity")return Number.NEGATIVE_INFINITY;if(r===""){A="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){A="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let a=Number(r);if(Number.isNaN(a)){A="not a number";break}if(!Number.isFinite(a)){A="too large or small";break}if(i==c.ScalarType.FLOAT)d.assertFloat32(a);return a;case c.ScalarType.INT32:case c.ScalarType.FIXED32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:case c.ScalarType.UINT32:if(r===null)return 0;let h;if(typeof r=="number")h=r;else if(r==="")A="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)A="extra whitespace";else h=Number(r)}if(h===undefined)break;if(i==c.ScalarType.UINT32)d.assertUInt32(h);else d.assertInt32(h);return h;case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:if(r===null)return u.reflectionLongConvert(p.PbLong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(p.PbLong.from(r),s);case c.ScalarType.FIXED64:case c.ScalarType.UINT64:if(r===null)return u.reflectionLongConvert(p.PbULong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(p.PbULong.from(r),s);case c.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case c.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){A="extra whitespace";break}try{encodeURIComponent(r)}catch(A){A="invalid UTF8";break}return r;case c.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return l.base64decode(r)}}catch(r){A=r.message}this.assert(false,a+(A?" - "+A:""),r)}}i.ReflectionJsonReader=ReflectionJsonReader},68980:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonWriter=void 0;const a=s(20196);const l=s(47777);const c=s(21370);const p=s(54253);class ReflectionJsonWriter{constructor(r){var i;this.fields=(i=r.fields)!==null&&i!==void 0?i:[]}write(r,i){const s={},a=r;for(const r of this.fields){if(!r.oneof){let l=this.field(r,a[r.localName],i);if(l!==undefined)s[i.useProtoFieldName?r.name:r.jsonName]=l;continue}const l=a[r.oneof];if(l.oneofKind!==r.localName)continue;const c=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},i),{emitDefaultValues:true}):i;let d=this.field(r,l[r.localName],c);p.assert(d!==undefined);s[i.useProtoFieldName?r.name:r.jsonName]=d}return s}field(r,i,s){let a=undefined;if(r.kind=="map"){p.assert(typeof i=="object"&&i!==null);const l={};switch(r.V.kind){case"scalar":for(const[s,a]of Object.entries(i)){const i=this.scalar(r.V.T,a,r.name,false,true);p.assert(i!==undefined);l[s.toString()]=i}break;case"message":const a=r.V.T();for(const[c,d]of Object.entries(i)){const i=this.message(a,d,r.name,s);p.assert(i!==undefined);l[c.toString()]=i}break;case"enum":const c=r.V.T();for(const[a,d]of Object.entries(i)){p.assert(d===undefined||typeof d=="number");const i=this.enum(c,d,r.name,false,true,s.enumAsInteger);p.assert(i!==undefined);l[a.toString()]=i}break}if(s.emitDefaultValues||Object.keys(l).length>0)a=l}else if(r.repeat){p.assert(Array.isArray(i));const l=[];switch(r.kind){case"scalar":for(let s=0;s0||s.emitDefaultValues)a=l}else{switch(r.kind){case"scalar":a=this.scalar(r.T,i,r.name,r.opt,s.emitDefaultValues);break;case"enum":a=this.enum(r.T(),i,r.name,r.opt,s.emitDefaultValues,s.enumAsInteger);break;case"message":a=this.message(r.T(),i,r.name,s);break}}return a}enum(r,i,s,a,l,c){if(r[0]=="google.protobuf.NullValue")return!l&&!a?undefined:null;if(i===undefined){p.assert(a);return undefined}if(i===0&&!l&&!a)return undefined;p.assert(typeof i=="number");p.assert(Number.isInteger(i));if(c||!r[1].hasOwnProperty(i))return i;if(r[2])return r[2]+r[1][i];return r[1][i]}message(r,i,s,a){if(i===undefined)return a.emitDefaultValues?null:undefined;return r.internalJsonWrite(i,a)}scalar(r,i,s,d,u){if(i===undefined){p.assert(d);return undefined}const A=u||d;switch(r){case c.ScalarType.INT32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:if(i===0)return A?0:undefined;p.assertInt32(i);return i;case c.ScalarType.FIXED32:case c.ScalarType.UINT32:if(i===0)return A?0:undefined;p.assertUInt32(i);return i;case c.ScalarType.FLOAT:p.assertFloat32(i);case c.ScalarType.DOUBLE:if(i===0)return A?0:undefined;p.assert(typeof i=="number");if(Number.isNaN(i))return"NaN";if(i===Number.POSITIVE_INFINITY)return"Infinity";if(i===Number.NEGATIVE_INFINITY)return"-Infinity";return i;case c.ScalarType.STRING:if(i==="")return A?"":undefined;p.assert(typeof i=="string");return i;case c.ScalarType.BOOL:if(i===false)return A?false:undefined;p.assert(typeof i=="boolean");return i;case c.ScalarType.UINT64:case c.ScalarType.FIXED64:p.assert(typeof i=="number"||typeof i=="string"||typeof i=="bigint");let r=l.PbULong.from(i);if(r.isZero()&&!A)return undefined;return r.toString();case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:p.assert(typeof i=="number"||typeof i=="string"||typeof i=="bigint");let s=l.PbLong.from(i);if(s.isZero()&&!A)return undefined;return s.toString();case c.ScalarType.BYTES:p.assert(i instanceof Uint8Array);if(!i.byteLength)return A?"":undefined;return a.base64encode(i)}}}i.ReflectionJsonWriter=ReflectionJsonWriter},24612:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionLongConvert=void 0;const a=s(21370);function reflectionLongConvert(r,i){switch(i){case a.LongType.BIGINT:return r.toBigInt();case a.LongType.NUMBER:return r.toNumber();default:return r.toString()}}i.reflectionLongConvert=reflectionLongConvert},7869:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionMergePartial=void 0;function reflectionMergePartial(r,i,s){let a,l=s,c;for(let s of r.fields){let r=s.localName;if(s.oneof){const p=l[s.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}a=p[r];c=i[s.oneof];c.oneofKind=p.oneofKind;if(a==undefined){delete c[r];continue}}else{a=l[r];c=i;if(a==undefined){continue}}if(s.repeat)c[r].length=a.length;switch(s.kind){case"scalar":case"enum":if(s.repeat)for(let i=0;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionScalarDefault=void 0;const a=s(21370);const l=s(24612);const c=s(47777);function reflectionScalarDefault(r,i=a.LongType.STRING){switch(r){case a.ScalarType.BOOL:return false;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:return l.reflectionLongConvert(c.PbULong.ZERO,i);case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:return l.reflectionLongConvert(c.PbLong.ZERO,i);case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:return 0;case a.ScalarType.BYTES:return new Uint8Array(0);case a.ScalarType.STRING:return"";default:return 0}}i.reflectionScalarDefault=reflectionScalarDefault},20903:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionTypeCheck=void 0;const a=s(21370);const l=s(78531);class ReflectionTypeCheck{constructor(r){var i;this.fields=(i=r.fields)!==null&&i!==void 0?i:[]}prepare(){if(this.data)return;const r=[],i=[],s=[];for(let a of this.fields){if(a.oneof){if(!s.includes(a.oneof)){s.push(a.oneof);r.push(a.oneof);i.push(a.oneof)}}else{i.push(a.localName);switch(a.kind){case"scalar":case"enum":if(!a.opt||a.repeat)r.push(a.localName);break;case"message":if(a.repeat)r.push(a.localName);break;case"map":r.push(a.localName);break}}}this.data={req:r,known:i,oneofs:Object.values(s)}}is(r,i,s=false){if(i<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let a=Object.keys(r),c=this.data;if(a.length!a.includes(r))))return false;if(!s){if(a.some((r=>!c.known.includes(r))))return false}if(i<1){return true}for(const a of c.oneofs){const c=r[a];if(!l.isOneofGroup(c))return false;if(c.oneofKind===undefined)continue;const p=this.fields.find((r=>r.localName===c.oneofKind));if(!p)return false;if(!this.field(c[c.oneofKind],p,s,i))return false}for(const a of this.fields){if(a.oneof!==undefined)continue;if(!this.field(r[a.localName],a,s,i))return false}return true}field(r,i,s,l){let c=i.repeat;switch(i.kind){case"scalar":if(r===undefined)return i.opt;if(c)return this.scalars(r,i.T,l,i.L);return this.scalar(r,i.T,i.L);case"enum":if(r===undefined)return i.opt;if(c)return this.scalars(r,a.ScalarType.INT32,l);return this.scalar(r,a.ScalarType.INT32);case"message":if(r===undefined)return true;if(c)return this.messages(r,i.T(),s,l);return this.message(r,i.T(),s,l);case"map":if(typeof r!="object"||r===null)return false;if(l<2)return true;if(!this.mapKeys(r,i.K,l))return false;switch(i.V.kind){case"scalar":return this.scalars(Object.values(r),i.V.T,l,i.V.L);case"enum":return this.scalars(Object.values(r),a.ScalarType.INT32,l);case"message":return this.messages(Object.values(r),i.V.T(),s,l)}break}return true}message(r,i,s,a){if(s){return i.isAssignable(r,a)}return i.is(r,a)}messages(r,i,s,a){if(!Array.isArray(r))return false;if(a<2)return true;if(s){for(let s=0;sparseInt(r))),i,s);case a.ScalarType.BOOL:return this.scalars(l.slice(0,s).map((r=>r=="true"?true:r=="false"?false:r)),i,s);default:return this.scalars(l,i,s,a.LongType.STRING)}}}i.ReflectionTypeCheck=ReflectionTypeCheck},81231:(r,i,s)=>{var a=s(77758);var l=s(71017);var c=s(48919);var p=s(89764);var d=s(28651);var u=s(25723);var A=s(91957);var h=r.exports={};var g=/[\/\\]/g;var processPatterns=function(r,i){var s=[];c(r).forEach((function(r){var a=r.indexOf("!")===0;if(a){r=r.slice(1)}var l=i(r);if(a){s=p(s,l)}else{s=d(s,l)}}));return s};h.exists=function(){var r=l.join.apply(l,arguments);return a.existsSync(r)};h.expand=function(...r){var i=u(r[0])?r.shift():{};var s=Array.isArray(r[0])?r[0]:r;if(s.length===0){return[]}var c=processPatterns(s,(function(r){return A.sync(r,i)}));if(i.filter){c=c.filter((function(r){r=l.join(i.cwd||"",r);try{if(typeof i.filter==="function"){return i.filter(r)}else{return a.statSync(r)[i.filter]()}}catch(r){return false}}))}return c};h.expandMapping=function(r,i,s){s=Object.assign({rename:function(r,i){return l.join(r||"",i)}},s);var a=[];var c={};h.expand(s,r).forEach((function(r){var p=r;if(s.flatten){p=l.basename(p)}if(s.ext){p=p.replace(/(\.[^\/]*)?$/,s.ext)}var d=s.rename(i,p,s);if(s.cwd){r=l.join(s.cwd,r)}d=d.replace(g,"/");r=r.replace(g,"/");if(c[d]){c[d].src.push(r)}else{a.push({src:[r],dest:d});c[d]=a[a.length-1]}}));return a};h.normalizeFilesArray=function(r){var i=[];r.forEach((function(r){var s;if("src"in r||"dest"in r){i.push(r)}}));if(i.length===0){return[]}i=_(i).chain().forEach((function(r){if(!("src"in r)||!r.src){return}if(Array.isArray(r.src)){r.src=c(r.src)}else{r.src=[r.src]}})).map((function(r){var i=Object.assign({},r);delete i.src;delete i.dest;if(r.expand){return h.expandMapping(r.src,r.dest,i).map((function(i){var s=Object.assign({},r);s.orig=Object.assign({},r);s.src=i.src;s.dest=i.dest;["expand","cwd","flatten","rename","ext"].forEach((function(r){delete s[r]}));return s}))}var s=Object.assign({},r);s.orig=Object.assign({},r);if("src"in s){Object.defineProperty(s,"src",{enumerable:true,get:function fn(){var s;if(!("result"in fn)){s=r.src;s=Array.isArray(s)?c(s):[s];fn.result=h.expand(i,s)}return fn.result}})}if("dest"in s){s.dest=r.dest}return s})).flatten().value();return i}},82072:(r,i,s)=>{var a=s(77758);var l=s(71017);var c=s(73837);var p=s(12084);var d=s(55388);var u=s(11289);var A=s(12781).Stream;var h=s(44785).PassThrough;var g=r.exports={};g.file=s(81231);function assertPath(r){if(typeof r!=="string"){throw new TypeError("Path must be a string. Received "+nutils.inspect(r))}}g.collectStream=function(r,i){var s=[];var a=0;r.on("error",i);r.on("data",(function(r){s.push(r);a+=r.length}));r.on("end",(function(){var r=new Buffer(a);var l=0;s.forEach((function(i){i.copy(r,l);l+=i.length}));i(null,r)}))};g.dateify=function(r){r=r||new Date;if(r instanceof Date){r=r}else if(typeof r==="string"){r=new Date(r)}else{r=new Date}return r};g.defaults=function(r,i,s){var a=arguments;a[0]=a[0]||{};return u(...a)};g.isStream=function(r){return r instanceof A};g.lazyReadStream=function(r){return new p.Readable((function(){return a.createReadStream(r)}))};g.normalizeInputSource=function(r){if(r===null){return new Buffer(0)}else if(typeof r==="string"){return new Buffer(r)}else if(g.isStream(r)&&!r._readableState){var i=new h;r.pipe(i);return i}return r};g.sanitizePath=function(r){return d(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};g.trailingSlashIt=function(r){return r.slice(-1)!=="/"?r+"/":r};g.unixifyPath=function(r){return d(r,false).replace(/^\w+:/,"")};g.walkdir=function(r,i,s){var c=[];if(typeof i==="function"){s=i;i=r}a.readdir(r,(function(p,d){var u=0;var A;var h;if(p){return s(p)}(function next(){A=d[u++];if(!A){return s(null,c)}h=l.join(r,A);a.stat(h,(function(r,s){c.push({path:h,relative:l.relative(i,h).replace(/\\/g,"/"),stats:s});if(s&&s.isDirectory()){g.walkdir(h,i,(function(r,i){i.forEach((function(r){c.push(r)}));next()}))}else{next()}}))})()}))}},5364:(r,i,s)=>{"use strict";var a=s(47810);var l=Object.keys||function(r){var i=[];for(var s in r){i.push(s)}return i};r.exports=Duplex;var c=Object.create(s(95898));c.inherits=s(44124);var p=s(19647);var d=s(33369);c.inherits(Duplex,p);{var u=l(d.prototype);for(var A=0;A{"use strict";r.exports=PassThrough;var a=s(95401);var l=Object.create(s(95898));l.inherits=s(44124);l.inherits(PassThrough,a);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);a.call(this,r)}PassThrough.prototype._transform=function(r,i,s){s(null,r)}},19647:(r,i,s)=>{"use strict";var a=s(47810);r.exports=Readable;var l=s(20893);var c;Readable.ReadableState=ReadableState;var p=s(82361).EventEmitter;var EElistenerCount=function(r,i){return r.listeners(i).length};var d=s(41715);var u=s(36476).Buffer;var A=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return u.from(r)}function _isUint8Array(r){return u.isBuffer(r)||r instanceof A}var h=Object.create(s(95898));h.inherits=s(44124);var g=s(73837);var E=void 0;if(g&&g.debuglog){E=g.debuglog("stream")}else{E=function(){}}var y=s(37898);var b=s(71890);var C;h.inherits(Readable,d);var v=["error","close","destroy","pause","resume"];function prependListener(r,i,s){if(typeof r.prependListener==="function")return r.prependListener(i,s);if(!r._events||!r._events[i])r.on(i,s);else if(l(r._events[i]))r._events[i].unshift(s);else r._events[i]=[s,r._events[i]]}function ReadableState(r,i){c=c||s(5364);r=r||{};var a=i instanceof c;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.readableObjectMode;var l=r.highWaterMark;var p=r.readableHighWaterMark;var d=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(p||p===0))this.highWaterMark=p;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=r.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(r.encoding){if(!C)C=s(99708).s;this.decoder=new C(r.encoding);this.encoding=r.encoding}}function Readable(r){c=c||s(5364);if(!(this instanceof Readable))return new Readable(r);this._readableState=new ReadableState(r,this);this.readable=true;if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy}d.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(r){if(!this._readableState){return}this._readableState.destroyed=r}});Readable.prototype.destroy=b.destroy;Readable.prototype._undestroy=b.undestroy;Readable.prototype._destroy=function(r,i){this.push(null);i(r)};Readable.prototype.push=function(r,i){var s=this._readableState;var a;if(!s.objectMode){if(typeof r==="string"){i=i||s.defaultEncoding;if(i!==s.encoding){r=u.from(r,i);i=""}a=true}}else{a=true}return readableAddChunk(this,r,i,false,a)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,i,s,a,l){var c=r._readableState;if(i===null){c.reading=false;onEofChunk(r,c)}else{var p;if(!l)p=chunkInvalid(c,i);if(p){r.emit("error",p)}else if(c.objectMode||i&&i.length>0){if(typeof i!=="string"&&!c.objectMode&&Object.getPrototypeOf(i)!==u.prototype){i=_uint8ArrayToBuffer(i)}if(a){if(c.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,c,i,true)}else if(c.ended){r.emit("error",new Error("stream.push() after EOF"))}else{c.reading=false;if(c.decoder&&!s){i=c.decoder.write(i);if(c.objectMode||i.length!==0)addChunk(r,c,i,false);else maybeReadMore(r,c)}else{addChunk(r,c,i,false)}}}else if(!a){c.reading=false}}return needMoreData(c)}function addChunk(r,i,s,a){if(i.flowing&&i.length===0&&!i.sync){r.emit("data",s);r.read(0)}else{i.length+=i.objectMode?1:s.length;if(a)i.buffer.unshift(s);else i.buffer.push(s);if(i.needReadable)emitReadable(r)}maybeReadMore(r,i)}function chunkInvalid(r,i){var s;if(!_isUint8Array(i)&&typeof i!=="string"&&i!==undefined&&!r.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(r){return!r.ended&&(r.needReadable||r.length=w){r=w}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,i){if(r<=0||i.length===0&&i.ended)return 0;if(i.objectMode)return 1;if(r!==r){if(i.flowing&&i.length)return i.buffer.head.data.length;else return i.length}if(r>i.highWaterMark)i.highWaterMark=computeNewHighWaterMark(r);if(r<=i.length)return r;if(!i.ended){i.needReadable=true;return 0}return i.length}Readable.prototype.read=function(r){E("read",r);r=parseInt(r,10);var i=this._readableState;var s=r;if(r!==0)i.emittedReadable=false;if(r===0&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)){E("read: emitReadable",i.length,i.ended);if(i.length===0&&i.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,i);if(r===0&&i.ended){if(i.length===0)endReadable(this);return null}var a=i.needReadable;E("need readable",a);if(i.length===0||i.length-r0)l=fromList(r,i);else l=null;if(l===null){i.needReadable=true;r=0}else{i.length-=r}if(i.length===0){if(!i.ended)i.needReadable=true;if(s!==r&&i.ended)endReadable(this)}if(l!==null)this.emit("data",l);return l};function onEofChunk(r,i){if(i.ended)return;if(i.decoder){var s=i.decoder.end();if(s&&s.length){i.buffer.push(s);i.length+=i.objectMode?1:s.length}}i.ended=true;emitReadable(r)}function emitReadable(r){var i=r._readableState;i.needReadable=false;if(!i.emittedReadable){E("emitReadable",i.flowing);i.emittedReadable=true;if(i.sync)a.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){E("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,i){if(!i.readingMore){i.readingMore=true;a.nextTick(maybeReadMore_,r,i)}}function maybeReadMore_(r,i){var s=i.length;while(!i.reading&&!i.flowing&&!i.ended&&i.length1&&indexOf(l.pipes,r)!==-1)&&!u){E("false write response, pause",l.awaitDrain);l.awaitDrain++;A=true}s.pause()}}function onerror(i){E("onerror",i);unpipe();r.removeListener("error",onerror);if(EElistenerCount(r,"error")===0)r.emit("error",i)}prependListener(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){E("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){E("unpipe");s.unpipe(r)}r.emit("pipe",s);if(!l.flowing){E("pipe resume");s.resume()}return r};function pipeOnDrain(r){return function(){var i=r._readableState;E("pipeOnDrain",i.awaitDrain);if(i.awaitDrain)i.awaitDrain--;if(i.awaitDrain===0&&EElistenerCount(r,"data")){i.flowing=true;flow(r)}}}Readable.prototype.unpipe=function(r){var i=this._readableState;var s={hasUnpiped:false};if(i.pipesCount===0)return this;if(i.pipesCount===1){if(r&&r!==i.pipes)return this;if(!r)r=i.pipes;i.pipes=null;i.pipesCount=0;i.flowing=false;if(r)r.emit("unpipe",this,s);return this}if(!r){var a=i.pipes;var l=i.pipesCount;i.pipes=null;i.pipesCount=0;i.flowing=false;for(var c=0;c=i.length){if(i.decoder)s=i.buffer.join("");else if(i.buffer.length===1)s=i.buffer.head.data;else s=i.buffer.concat(i.length);i.buffer.clear()}else{s=fromListPartial(r,i.buffer,i.decoder)}return s}function fromListPartial(r,i,s){var a;if(rc.length?c.length:r;if(p===c.length)l+=c;else l+=c.slice(0,r);r-=p;if(r===0){if(p===c.length){++a;if(s.next)i.head=s.next;else i.head=i.tail=null}else{i.head=s;s.data=c.slice(p)}break}++a}i.length-=a;return l}function copyFromBuffer(r,i){var s=u.allocUnsafe(r);var a=i.head;var l=1;a.data.copy(s);r-=a.data.length;while(a=a.next){var c=a.data;var p=r>c.length?c.length:r;c.copy(s,s.length-r,0,p);r-=p;if(r===0){if(p===c.length){++l;if(a.next)i.head=a.next;else i.head=i.tail=null}else{i.head=a;a.data=c.slice(p)}break}++l}i.length-=l;return s}function endReadable(r){var i=r._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!i.endEmitted){i.ended=true;a.nextTick(endReadableNT,i,r)}}function endReadableNT(r,i){if(!r.endEmitted&&r.length===0){r.endEmitted=true;i.readable=false;i.emit("end")}}function indexOf(r,i){for(var s=0,a=r.length;s{"use strict";r.exports=Transform;var a=s(5364);var l=Object.create(s(95898));l.inherits=s(44124);l.inherits(Transform,a);function afterTransform(r,i){var s=this._transformState;s.transforming=false;var a=s.writecb;if(!a){return this.emit("error",new Error("write callback called multiple times"))}s.writechunk=null;s.writecb=null;if(i!=null)this.push(i);a(r);var l=this._readableState;l.reading=false;if(l.needReadable||l.length{"use strict";var a=s(47810);r.exports=Writable;function WriteReq(r,i,s){this.chunk=r;this.encoding=i;this.callback=s;this.next=null}function CorkedRequest(r){var i=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(i,r)}}var l=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;var c;Writable.WritableState=WritableState;var p=Object.create(s(95898));p.inherits=s(44124);var d={deprecate:s(65278)};var u=s(41715);var A=s(36476).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return A.from(r)}function _isUint8Array(r){return A.isBuffer(r)||r instanceof h}var g=s(71890);p.inherits(Writable,u);function nop(){}function WritableState(r,i){c=c||s(5364);r=r||{};var a=i instanceof c;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.writableObjectMode;var l=r.highWaterMark;var p=r.writableHighWaterMark;var d=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(p||p===0))this.highWaterMark=p;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=r.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(r){onwrite(i,r)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var r=this.bufferedRequest;var i=[];while(r){i.push(r);r=r.next}return i};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(r){}})();var E;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){E=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(E.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{E=function(r){return r instanceof this}}function Writable(r){c=c||s(5364);if(!E.call(Writable,this)&&!(this instanceof c)){return new Writable(r)}this._writableState=new WritableState(r,this);this.writable=true;if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(r,i){var s=new Error("write after end");r.emit("error",s);a.nextTick(i,s)}function validChunk(r,i,s,l){var c=true;var p=false;if(s===null){p=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!i.objectMode){p=new TypeError("Invalid non-string/buffer chunk")}if(p){r.emit("error",p);a.nextTick(l,p);c=false}return c}Writable.prototype.write=function(r,i,s){var a=this._writableState;var l=false;var c=!a.objectMode&&_isUint8Array(r);if(c&&!A.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof i==="function"){s=i;i=null}if(c)i="buffer";else if(!i)i=a.defaultEncoding;if(typeof s!=="function")s=nop;if(a.ended)writeAfterEnd(this,s);else if(c||validChunk(this,a,r,s)){a.pendingcb++;l=writeOrBuffer(this,a,c,r,i,s)}return l};Writable.prototype.cork=function(){var r=this._writableState;r.corked++};Writable.prototype.uncork=function(){var r=this._writableState;if(r.corked){r.corked--;if(!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=r.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);this._writableState.defaultEncoding=r;return this};function decodeChunk(r,i,s){if(!r.objectMode&&r.decodeStrings!==false&&typeof i==="string"){i=A.from(i,s)}return i}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,i,s,a,l,c){if(!s){var p=decodeChunk(i,a,l);if(a!==p){s=true;l="buffer";a=p}}var d=i.objectMode?1:a.length;i.length+=d;var u=i.length{"use strict";function _classCallCheck(r,i){if(!(r instanceof i)){throw new TypeError("Cannot call a class as a function")}}var a=s(36476).Buffer;var l=s(73837);function copyBuffer(r,i,s){r.copy(i,s)}r.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(r){var i={data:r,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i;++this.length};BufferList.prototype.unshift=function unshift(r){var i={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(r){if(this.length===0)return"";var i=this.head;var s=""+i.data;while(i=i.next){s+=r+i.data}return s};BufferList.prototype.concat=function concat(r){if(this.length===0)return a.alloc(0);var i=a.allocUnsafe(r>>>0);var s=this.head;var l=0;while(s){copyBuffer(s.data,i,l);l+=s.data.length;s=s.next}return i};return BufferList}();if(l&&l.inspect&&l.inspect.custom){r.exports.prototype[l.inspect.custom]=function(){var r=l.inspect({length:this.length});return this.constructor.name+" "+r}}},71890:(r,i,s)=>{"use strict";var a=s(47810);function destroy(r,i){var s=this;var l=this._readableState&&this._readableState.destroyed;var c=this._writableState&&this._writableState.destroyed;if(l||c){if(i){i(r)}else if(r){if(!this._writableState){a.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;a.nextTick(emitErrorNT,this,r)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(r||null,(function(r){if(!i&&r){if(!s._writableState){a.nextTick(emitErrorNT,s,r)}else if(!s._writableState.errorEmitted){s._writableState.errorEmitted=true;a.nextTick(emitErrorNT,s,r)}}else if(i){i(r)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(r,i){r.emit("error",i)}r.exports={destroy:destroy,undestroy:undestroy}},41715:(r,i,s)=>{r.exports=s(12781)},44785:(r,i,s)=>{var a=s(12781);if(process.env.READABLE_STREAM==="disable"&&a){r.exports=a;i=r.exports=a.Readable;i.Readable=a.Readable;i.Writable=a.Writable;i.Duplex=a.Duplex;i.Transform=a.Transform;i.PassThrough=a.PassThrough;i.Stream=a}else{i=r.exports=s(19647);i.Stream=a||i;i.Readable=i;i.Writable=s(33369);i.Duplex=s(5364);i.Transform=s(95401);i.PassThrough=s(47905)}},36476:(r,i,s)=>{var a=s(14300);var l=a.Buffer;function copyProps(r,i){for(var s in r){i[s]=r[s]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=a}else{copyProps(a,i);i.Buffer=SafeBuffer}function SafeBuffer(r,i,s){return l(r,i,s)}copyProps(l,SafeBuffer);SafeBuffer.from=function(r,i,s){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,i,s)};SafeBuffer.alloc=function(r,i,s){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=l(r);if(i!==undefined){if(typeof s==="string"){a.fill(i,s)}else{a.fill(i)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return l(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},99708:(r,i,s)=>{"use strict";var a=s(36476).Buffer;var l=a.isEncoding||function(r){r=""+r;switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var i;while(true){switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(i)return;r=(""+r).toLowerCase();i=true}}}function normalizeEncoding(r){var i=_normalizeEncoding(r);if(typeof i!=="string"&&(a.isEncoding===l||!l(r)))throw new Error("Unknown encoding: "+r);return i||r}i.s=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var i;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;i=4;break;case"utf8":this.fillLast=utf8FillLast;i=4;break;case"base64":this.text=base64Text;this.end=base64End;i=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(i)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var i;var s;if(this.lastNeed){i=this.fillLast(r);if(i===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,i,s){var a=i.length-1;if(a=0){if(l>0)r.lastNeed=l-1;return l}if(--a=0){if(l>0)r.lastNeed=l-2;return l}if(--a=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,i,s){if((i[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&i.length>1){if((i[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&i.length>2){if((i[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var i=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,r,i);if(s!==undefined)return s;if(this.lastNeed<=r.length){r.copy(this.lastChar,i,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,i,0,r.length);this.lastNeed-=r.length}function utf8Text(r,i){var s=utf8CheckIncomplete(this,r,i);if(!this.lastNeed)return r.toString("utf8",i);this.lastTotal=s;var a=r.length-(s-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",i,a)}function utf8End(r){var i=r&&r.length?this.write(r):"";if(this.lastNeed)return i+"�";return i}function utf16Text(r,i){if((r.length-i)%2===0){var s=r.toString("utf16le",i);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",i,r.length-1)}function utf16End(r){var i=r&&r.length?this.write(r):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,s)}return i}function base64Text(r,i){var s=(r.length-i)%3;if(s===0)return r.toString("base64",i);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",i,r.length-s)}function base64End(r){var i=r&&r.length?this.write(r):"";if(this.lastNeed)return i+this.lastChar.toString("base64",0,3-this.lastNeed);return i}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},43084:(r,i,s)=>{ +(()=>{var __webpack_modules__={35598:(r,i,s)=>{const a=s(42186);const processSarifReport=function(r){if(!r){return}const i=r.runs[0].tool.driver.rules;const s=r.runs[0].results;a.startGroup("PMD Results");a.debug(`processing sarif report`);a.debug(`rules: ${i.length}`);a.debug(`results: ${s.length}`);s.forEach((r=>{const s=i[r.ruleIndex];const l=mapPriority(s.properties.priority);r.locations.forEach((i=>{const c=createAnnotation(i.physicalLocation,r.message.text);a.info(`\n${c.file}:${c.startLine}:${s.id} (Priority: ${s.properties.priority}):${r.message.text}`);l(createDescription(s),c)}))}));a.endGroup()};function mapPriority(r){switch(r){case 1:case 2:return a.error;case 3:case 4:return a.warning;default:return a.notice}}function createAnnotation(r,i){return{title:i,file:r.artifactLocation.uri,startLine:r.region.startLine,endLine:r.region.endLine}}function createDescription(r){const i=r.fullDescription.text!==undefined?r.fullDescription.text.split(/\n|\r\n/):[""];if(i.length>1&&i[0]===""){i.splice(0,1)}let s="";const a=i[0].match(/^([ \t]+).*$/);if(a!==null){s=a[1]}for(let r=0;r0&&i[i.length-1].trim()===""){i.splice(i.length-1,1)}const l=i.join("\n");const c=`${l}\n\n${r.id} (Priority: ${r.properties.priority}, Ruleset: ${r.properties.ruleset})\n${r.helpUri.trim()}`;return c}r.exports.processSarifReport=processSarifReport},70929:(r,i,s)=>{const a=s(57147);const l=s(71017);const c=s(42186);const p=s(11383);const countViolations=function(r){let i=0;const s=loadReport(r);if(s!==null){i=s.runs[0].results.length}return i};const loadReport=function(r){if(!a.existsSync(r)){return null}return JSON.parse(a.readFileSync(r))};const relativizeReport=function(r){const i=loadReport(r);if(i===null){return}const s=l.normalize(`${process.env["GITHUB_WORKSPACE"]}/`);const p=new URL(`file://${s}`).href;c.debug(`Relativizing sarif report '${r}' against '${s}'`);i.runs[0].results.forEach((r=>{r.locations.forEach((r=>{const i=r.physicalLocation.artifactLocation;let s=i.uri;if(s.startsWith("file://")){s=s.substring("file://".length)}s=new URL(`file://${s}`).href;if(s.startsWith(p)){i.uri=s.substring(p.length)}else{i.uri=s.substring("file://".length)}}))}));a.writeFileSync(r,JSON.stringify(i))};const fixResults=function(r){const i=loadReport(r);if(i===null){return}const s=i.runs[0].tool.driver.version;c.debug(`Sarif Report was created by PMD version ${s}`);if(p.gte(s,"6.43.0")){c.debug(`Sarif Report fix is not needed for PMD version ${s}`);return}const l=i.runs[0].results;const d=[];c.debug(`Fixing Sarif Report results: count before: ${l.length}`);l.forEach((r=>{const i=r.locations;delete r.locations;i.forEach((i=>{const s=Object.assign({},r);s.locations=[i];d.push(s)}))}));c.debug(`Fixing Sarif Report results: count after: ${d.length}`);i.runs[0].results=d;a.writeFileSync(r,JSON.stringify(i))};r.exports.countViolations=countViolations;r.exports.loadReport=loadReport;r.exports.relativizeReport=relativizeReport;r.exports.fixResults=fixResults},64024:(r,i,s)=>{const a=s(42186);const l=s(95438);const c=s(73030).defaults;const p=s(27784);const d=s(71514);const u=s(11383);const A=s(22037);const h=s(57147).promises;const g=s(71017);const{Octokit:E}=s(55375);const y=10;async function downloadPmdRelease(r,i){let s=r;let l=p.find("pmd",r);a.debug(`cached path result: ${l}`);if(l===""){const a=await determinePmdRelease(r,i);s=getPmdVersionFromRelease(a);const c=await p.downloadTool(getDownloadURL(a));const d=await p.extractZip(c);l=await p.cacheDir(d,"pmd",s)}a.info(`Using PMD ${s} from cached path ${l}`);return{version:s,path:g.join(l,`pmd-bin-${s}`)}}async function downloadPmdUrl(r,i){let s=r;const l=await p.downloadTool(i);const c=await p.extractZip(l);a.info(`Downloaded PMD ${s} from ${i} to ${c}`);const d=await h.readdir(c);a.debug(`ZIP archive content: ${d}`);let u=d[0];a.debug(`Using the first entry as basepath for PMD: ${u}`);return{version:s,path:g.join(c,u)}}const downloadPmd=async function(r,i,s){if(r==="latest"&&s!==undefined&&s!=="")throw`Can't combine version=${r} with custom downloadUrl=${s}`;if(s===undefined||s===""){return downloadPmdRelease(r,i)}else{return downloadPmdUrl(r,s)}};const executePmd=async function(r,i,s,l,c){let p="/bin/run.sh pmd";if(isPmd7Cli(r.version)){p="/bin/pmd"}if(A.platform()==="win32"){p="\\bin\\pmd.bat"}if(isPmd7Cli(r.version)){p+=" check --no-progress"}let u=["-d",i];if(Array.isArray(i)){await writeFileList(i);u=[useNewArgsFormat(r.version)?"--file-list":"-filelist","pmd.filelist"];a.info(`Running PMD ${r.version} on ${i.length} modified files...`)}else{a.info(`Running PMD ${r.version} on all files in path ${i}...`)}const h=await d.getExecOutput(`${r.path}${p}`,[useNewArgsFormat(r.version)?"--no-cache":"-no-cache",...u,"-f",l,"-R",s,"-r",c],{ignoreReturnCode:true});a.debug(`stdout: ${h.stdout}`);a.debug(`stderr: ${h.stderr}`);a.debug(`exitCode: ${h.exitCode}`);return h};function useNewArgsFormat(r){return u.gte(r,"6.41.0")}function isPmd7Cli(r){return u.major(r)>=7}async function determinePmdRelease(r,i){a.debug(`determine release info for ${r}`);const s="https://api.github.com";let p;if(c.baseUrl===s){p=l.getOctokit(i);a.debug(`Using token to access repos/pmd/pmd/releases/latest on ${c.baseUrl}`)}else{p=new E({baseUrl:s});a.debug(`Not using token to access repos/pmd/pmd/releases/latest on ${s}, as token is for ${c.baseUrl}`)}let d;if(r==="latest"){d=await p.rest.repos.getLatestRelease({owner:"pmd",repo:"pmd"})}else{d=await p.rest.repos.getReleaseByTag({owner:"pmd",repo:"pmd",tag:`pmd_releases/${r}`})}a.debug(`found release: ${d.data.name}`);return d}function getPmdVersionFromRelease(r){return r.data.tag_name.replace("pmd_releases/","")}function getDownloadURL(r){const i=r.data.assets.filter((i=>{const s=getPmdVersionFromRelease(r);return i.name===`pmd-bin-${s}.zip`||i.name===`pmd-dist-${s}-bin.zip`}))[0];a.debug(`url: ${i.browser_download_url}`);return i.browser_download_url}async function writeFileList(r){await h.writeFile(g.join(".","pmd.filelist"),r.join(","),"utf8")}const determineModifiedFiles=async function(r,i){const s=new l.context.constructor;const c=s.payload;const p=l.getOctokit(r);if(s.eventName==="pull_request"){a.debug(`Pull request ${c.number}: ${c.pull_request.html_url}`);let r=new Set;let l;for(l=1;l<=y;l++){const a=await p.rest.pulls.listFiles({...s.repo,pull_number:c.number,per_page:30,page:l});const d=a.data;if(d.length==0){break}const u=extractFilenames(d,l,i);u.forEach((i=>r.add(i)))}if(l>=y){a.warning(`The pull request ${c.number} is too big - not all changed files will be analyzed!`)}return[...r]}else if(s.eventName==="push"){a.debug(`Push on ${c.ref}: ${c.before}...${c.after}`);let r=new Set;let l;for(l=1;l<=y;l++){const a=await p.rest.repos.compareCommitsWithBasehead({...s.repo,basehead:`${c.before}...${c.after}`,per_page:30,page:l});const d=a.data.files;if(d===undefined||d.length==0){break}const u=extractFilenames(d,l,i);u.forEach((i=>r.add(i)))}if(l>=y){a.warning(`The push on ${c.ref} is too big - not all changed files will be analyzed!`)}return[...r]}else{a.warning(`Unsupported github action event '${s.eventName}' - cannot determine modified files. All files will be analyzed.`);return undefined}};function extractFilenames(r,i,s){a.debug(` got ${r.length} entries from page ${i} to check...`);if(a.isDebug()){for(let i=0;ir.status==="added"||r.status==="changed"||r.status==="modified")).map((r=>g.normalize(r.filename))).filter((r=>s==="."||r.startsWith(s)));if(a.isDebug()){a.debug(` after filtering by status and with '${s}' ${l.length} files remain:`);a.debug(` ${l.join(", ")}`)}return l}r.exports.downloadPmd=downloadPmd;r.exports.executePmd=executePmd;r.exports.determineModifiedFiles=determineModifiedFiles},94618:(r,i,s)=>{const a=s(71017);const l=s(11383);const validateVersion=function(r){if(typeof r==="string"&&(r==="latest"||l.valid(r)===r)){return r}throw"Invalid version"};const validateSourcePath=function(r){const i=a.normalize(r);if(a.isAbsolute(i)||typeof i!=="string"||i.match(/[ ;:"'$]/)){throw"Invalid sourcePath"}return i};const validateRulesets=function(r){if(typeof r!=="string"||r.match(/[;:"'$"]/))throw"Invalid rulesets";const i=r.replace(/ /g,"");return i};const validateDownloadUrl=function(r){if(typeof r==="string"&&(r===""||r.match(/^https?:\/\//)))return r;throw"Invalid downloadUrl"};r.exports.validateVersion=validateVersion;r.exports.validateSourcePath=validateSourcePath;r.exports.validateRulesets=validateRulesets;r.exports.validateDownloadUrl=validateDownloadUrl},79450:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});const c=s(46190);l(s(15769),i);l(s(38182),i);l(s(46190),i);const p=new c.DefaultArtifactClient;i["default"]=p},54622:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const a=s(4061);const l=s(4061);const c=s(4061);const p=s(4061);const d=s(4061);const u=s(4061);const A=s(4061);class Timestamp$Type extends A.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const i=Date.now();r.seconds=u.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;return r}toDate(r){return new Date(u.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const i=this.create();const s=r.getTime();i.seconds=u.PbLong.from(Math.floor(s/1e3)).toString();i.nanos=s%1e3*1e6;return i}internalJsonWrite(r,i){let s=u.PbLong.from(r.seconds).toNumber()*1e3;if(sDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")a="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")a="."+i.substring(0,6)+"Z";else a="."+i+"Z"}return new Date(s).toISOString().replace(".000Z",a)}internalJsonRead(r,i,s){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,d.typeofJsonValue)(r)+".");let a=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(l))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(lDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=u.PbLong.from(l/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;return s}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,p.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let c=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void 0;const a=s(4061);const l=s(4061);const c=s(4061);const p=s(4061);const d=s(4061);const u=s(4061);const A=s(4061);class DoubleValue$Type extends A.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,s){if(!s)s=this.create();s.value=this.refJsonReader.scalar(r,1,undefined,"value");return s}create(r){const i={value:0};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),c=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ArtifactService=i.GetSignedArtifactURLResponse=i.GetSignedArtifactURLRequest=i.ListArtifactsResponse_MonolithArtifact=i.ListArtifactsResponse=i.ListArtifactsRequest=i.FinalizeArtifactResponse=i.FinalizeArtifactRequest=i.CreateArtifactResponse=i.CreateArtifactRequest=void 0;const a=s(60012);const l=s(4061);const c=s(4061);const p=s(4061);const d=s(4061);const u=s(4061);const A=s(8626);const h=s(8626);const g=s(54622);class CreateArtifactRequest$Type extends u.MessageType{constructor(){super("github.actions.results.api.v1.CreateArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"expires_at",kind:"message",T:()=>g.Timestamp},{no:5,name:"version",kind:"scalar",T:5}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posh.StringValue}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posh.StringValue},{no:4,name:"id_filter",kind:"message",T:()=>A.Int64Value}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posi.ListArtifactsResponse_MonolithArtifact}])}create(r){const i={artifacts:[]};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,s,a,l){let p=l!==null&&l!==void 0?l:this.create(),d=r.pos+s;while(r.posg.Timestamp}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),p=r.pos+i;while(r.posc.CreateArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const i=c.FinalizeArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",i);return s.then((r=>c.FinalizeArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const i=c.ListArtifactsRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",i);return s.then((r=>c.ListArtifactsResponse.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const i=c.GetSignedArtifactURLRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",i);return s.then((r=>c.GetSignedArtifactURLResponse.fromJson(r,{ignoreUnknownFields:true})))}}i.ArtifactServiceClientJSON=ArtifactServiceClientJSON;class ArtifactServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this)}CreateArtifact(r){const i=c.CreateArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",i);return s.then((r=>c.CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const i=c.FinalizeArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",i);return s.then((r=>c.FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const i=c.ListArtifactsRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",i);return s.then((r=>c.ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const i=c.GetSignedArtifactURLRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",i);return s.then((r=>c.GetSignedArtifactURLResponse.fromBinary(r)))}}i.ArtifactServiceClientProtobuf=ArtifactServiceClientProtobuf;var p;(function(r){r["CreateArtifact"]="CreateArtifact";r["FinalizeArtifact"]="FinalizeArtifact";r["ListArtifacts"]="ListArtifacts";r["GetSignedArtifactURL"]="GetSignedArtifactURL"})(p||(i.ArtifactServiceMethod=p={}));i.ArtifactServiceMethodList=[p.CreateArtifact,p.FinalizeArtifact,p.ListArtifacts,p.GetSignedArtifactURL];function createArtifactServiceServer(r){return new l.TwirpServer({service:r,packageName:"github.actions.results.api.v1",serviceName:"ArtifactService",methodList:i.ArtifactServiceMethodList,matchRoute:matchArtifactServiceRoute})}i.createArtifactServiceServer=createArtifactServiceServer;function matchArtifactServiceRoute(r,i){switch(r){case"CreateArtifact":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"CreateArtifact"});yield i.onMatch(r);return handleArtifactServiceCreateArtifactRequest(r,s,l,c)}));case"FinalizeArtifact":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"FinalizeArtifact"});yield i.onMatch(r);return handleArtifactServiceFinalizeArtifactRequest(r,s,l,c)}));case"ListArtifacts":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"ListArtifacts"});yield i.onMatch(r);return handleArtifactServiceListArtifactsRequest(r,s,l,c)}));case"GetSignedArtifactURL":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"GetSignedArtifactURL"});yield i.onMatch(r);return handleArtifactServiceGetSignedArtifactURLRequest(r,s,l,c)}));default:i.onNotFound();const r=`no handler found`;throw new l.TwirpError(l.TwirpErrorCode.BadRoute,r)}}function handleArtifactServiceCreateArtifactRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceCreateArtifactJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceCreateArtifactProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceFinalizeArtifactRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceFinalizeArtifactJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceFinalizeArtifactProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceListArtifactsRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceListArtifactsJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceListArtifactsProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceGetSignedArtifactURLRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceGetSignedArtifactURLJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,s,a);default:const c="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,c)}}function handleArtifactServiceCreateArtifactJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.CreateArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.CreateArtifact(r,s)))}else{d=yield i.CreateArtifact(r,a)}return JSON.stringify(c.CreateArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceFinalizeArtifactJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.FinalizeArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.FinalizeArtifact(r,s)))}else{d=yield i.FinalizeArtifact(r,a)}return JSON.stringify(c.FinalizeArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceListArtifactsJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.ListArtifactsRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.ListArtifacts(r,s)))}else{d=yield i.ListArtifacts(r,a)}return JSON.stringify(c.ListArtifactsResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceGetSignedArtifactURLJSON(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{const r=JSON.parse(s.toString()||"{}");a=c.GetSignedArtifactURLRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.GetSignedArtifactURL(r,s)))}else{d=yield i.GetSignedArtifactURL(r,a)}return JSON.stringify(c.GetSignedArtifactURLResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceCreateArtifactProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.CreateArtifactRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.CreateArtifact(r,s)))}else{d=yield i.CreateArtifact(r,a)}return Buffer.from(c.CreateArtifactResponse.toBinary(d))}))}function handleArtifactServiceFinalizeArtifactProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.FinalizeArtifactRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.FinalizeArtifact(r,s)))}else{d=yield i.FinalizeArtifact(r,a)}return Buffer.from(c.FinalizeArtifactResponse.toBinary(d))}))}function handleArtifactServiceListArtifactsProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.ListArtifactsRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.ListArtifacts(r,s)))}else{d=yield i.ListArtifacts(r,a)}return Buffer.from(c.ListArtifactsResponse.toBinary(d))}))}function handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.GetSignedArtifactURLRequest.fromBinary(s)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new l.TwirpError(l.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(p&&p.length>0){const s=(0,l.chainInterceptors)(...p);d=yield s(r,a,((r,s)=>i.GetSignedArtifactURL(r,s)))}else{d=yield i.GetSignedArtifactURL(r,a)}return Buffer.from(c.GetSignedArtifactURLResponse.toBinary(d))}))}},46190:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var l=this&&this.__rest||function(r,i){var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0)s[a]=r[a];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l{const i=new URL(r);i.search="";return i.toString()};function exists(r){return p(this,void 0,void 0,(function*(){try{yield u.default.access(r);return true}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}}))}function streamExtract(r,i){return p(this,void 0,void 0,(function*(){let s=0;while(s<5){try{yield streamExtractExternal(r,i);return}catch(r){s++;h.debug(`Failed to download artifact after ${s} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${s} retries.`)}))}function streamExtractExternal(r,i){return p(this,void 0,void 0,(function*(){const s=new g.HttpClient((0,y.getUserAgentString)());const a=yield s.get(r);if(a.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${a.message.statusCode} ${a.message.statusMessage}`)}const l=30*1e3;return new Promise(((r,s)=>{const timerFn=()=>{a.message.destroy(new Error(`Blob storage chunk did not respond in ${l}ms`))};const c=setTimeout(timerFn,l);a.message.on("data",(()=>{c.refresh()})).on("error",(r=>{h.debug(`response.message: Artifact download failed: ${r.message}`);clearTimeout(c);s(r)})).pipe(E.default.Extract({path:i})).on("close",(()=>{clearTimeout(c);r()})).on("error",(r=>{s(r)}))}))}))}i.streamExtractExternal=streamExtractExternal;function downloadArtifactPublic(r,i,s,a,l){return p(this,void 0,void 0,(function*(){const c=yield resolveOrCreateDirectory(l===null||l===void 0?void 0:l.path);const p=A.getOctokit(a);h.info(`Downloading artifact '${r}' from '${i}/${s}'`);const{headers:d,status:u}=yield p.rest.actions.downloadArtifact({owner:i,repo:s,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(u!==302){throw new Error(`Unable to download artifact. Unexpected status: ${u}`)}const{location:g}=d;if(!g){throw new Error(`Unable to redirect to artifact download url`)}h.info(`Redirecting to blob download url: ${scrubQueryParameters(g)}`);try{h.info(`Starting download of artifact to: ${c}`);yield streamExtract(g,c);h.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:c}}))}i.downloadArtifactPublic=downloadArtifactPublic;function downloadArtifactInternal(r,i){return p(this,void 0,void 0,(function*(){const s=yield resolveOrCreateDirectory(i===null||i===void 0?void 0:i.path);const a=(0,C.internalArtifactTwirpClient)();const{workflowRunBackendId:l,workflowJobRunBackendId:c}=(0,w.getBackendIdsFromToken)();const p={workflowRunBackendId:l,workflowJobRunBackendId:c,idFilter:v.Int64Value.create({value:r.toString()})};const{artifacts:d}=yield a.ListArtifacts(p);if(d.length===0){throw new I.ArtifactNotFoundError(`No artifacts found for ID: ${r}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`)}if(d.length>1){h.warning("Multiple artifacts found, defaulting to first.")}const u={workflowRunBackendId:d[0].workflowRunBackendId,workflowJobRunBackendId:d[0].workflowJobRunBackendId,name:d[0].name};const{signedUrl:A}=yield a.GetSignedArtifactURL(u);h.info(`Redirecting to blob download url: ${scrubQueryParameters(A)}`);try{h.info(`Starting download of artifact to: ${s}`);yield streamExtract(A,s);h.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:s}}))}i.downloadArtifactInternal=downloadArtifactInternal;function resolveOrCreateDirectory(r=(0,b.getGitHubWorkspaceDir)()){return p(this,void 0,void 0,(function*(){if(!(yield exists(r))){h.debug(`Artifact destination folder does not exist, creating: ${r}`);yield u.default.mkdir(r,{recursive:true})}else{h.debug(`Artifact destination folder already exists: ${r}`)}return r}))}},29491:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getArtifactInternal=i.getArtifactPublic=void 0;const d=s(95438);const u=s(86298);const A=c(s(42186));const h=s(73030);const g=s(64597);const E=s(68883);const y=s(63062);const b=s(85164);const C=s(12312);const v=s(49960);const w=s(38182);function getArtifactPublic(r,i,s,a,l){var c;return p(this,void 0,void 0,(function*(){const[p,y]=(0,g.getRetryOptions)(h.defaults);const C={log:undefined,userAgent:(0,b.getUserAgentString)(),previews:undefined,retry:p,request:y};const v=(0,d.getOctokit)(l,C,u.retry,E.requestLog);const I=yield v.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:s,repo:a,run_id:i,name:r});if(I.status!==200){throw new w.InvalidResponseError(`Invalid response from GitHub API: ${I.status} (${(c=I===null||I===void 0?void 0:I.headers)===null||c===void 0?void 0:c["x-github-request-id"]})`)}if(I.data.artifacts.length===0){throw new w.ArtifactNotFoundError(`Artifact not found for name: ${r}`)}let B=I.data.artifacts[0];if(I.data.artifacts.length>1){B=I.data.artifacts.sort(((r,i)=>i.id-r.id))[0];A.debug(`More than one artifact found for a single name, returning newest (id: ${B.id})`)}return{artifact:{name:B.name,id:B.id,size:B.size_in_bytes,createdAt:B.created_at?new Date(B.created_at):undefined}}}))}i.getArtifactPublic=getArtifactPublic;function getArtifactInternal(r){return p(this,void 0,void 0,(function*(){const i=(0,C.internalArtifactTwirpClient)();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=(0,y.getBackendIdsFromToken)();const l={workflowRunBackendId:s,workflowJobRunBackendId:a,nameFilter:v.StringValue.create({value:r})};const c=yield i.ListArtifacts(l);if(c.artifacts.length===0){throw new w.ArtifactNotFoundError(`Artifact not found for name: ${r}`)}let p=c.artifacts[0];if(c.artifacts.length>1){p=c.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];A.debug(`More than one artifact found for a single name, returning newest (id: ${p.databaseId})`)}return{artifact:{name:p.name,id:Number(p.databaseId),size:Number(p.size),createdAt:p.createdAt?v.Timestamp.toDate(p.createdAt):undefined}}}))}i.getArtifactInternal=getArtifactInternal},44141:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.listArtifactsInternal=i.listArtifactsPublic=void 0;const l=s(42186);const c=s(95438);const p=s(85164);const d=s(64597);const u=s(73030);const A=s(68883);const h=s(86298);const g=s(12312);const E=s(63062);const y=s(49960);const b=1e3;const C=100;const v=b/C;function listArtifactsPublic(r,i,s,g,E=false){return a(this,void 0,void 0,(function*(){(0,l.info)(`Fetching artifact list for workflow run ${r} in repository ${i}/${s}`);let a=[];const[y,w]=(0,d.getRetryOptions)(u.defaults);const I={log:undefined,userAgent:(0,p.getUserAgentString)(),previews:undefined,retry:y,request:w};const B=(0,c.getOctokit)(g,I,h.retry,A.requestLog);let S=1;const{data:Q}=yield B.rest.actions.listWorkflowRunArtifacts({owner:i,repo:s,run_id:r,per_page:C,page:S});let x=Math.ceil(Q.total_count/C);const R=Q.total_count;if(R>b){(0,l.warning)(`Workflow run ${r} has more than 1000 artifacts. Results will be incomplete as only the first ${b} artifacts will be returned`);x=v}for(const r of Q.artifacts){a.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined})}for(S;S({name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?y.Timestamp.toDate(r.createdAt):undefined})));if(r){d=filterLatest(d)}(0,l.info)(`Found ${d.length} artifact(s)`);return{artifacts:d}}))}i.listArtifactsInternal=listArtifactsInternal;function filterLatest(r){r.sort(((r,i)=>i.id-r.id));const i=[];const s=new Set;for(const a of r){if(!s.has(a.name)){i.push(a);s.add(a.name)}}return i}},64597:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getRetryOptions=void 0;const p=c(s(42186));const d=5;const u=[400,401,403,404,422];function getRetryOptions(r,i=d,s=u){var a;if(i<=0){return[{enabled:false},r.request]}const l={enabled:true};if(s.length>0){l.doNotRetry=s}const c=Object.assign(Object.assign({},r.request),{retries:i});p.debug(`GitHub client configured with: (retries: ${c.retries}, retry-exempt-status-code: ${(a=l.doNotRetry)!==null&&a!==void 0?a:"octokit default: [400, 401, 403, 404, 422]"})`);return[l,c]}i.getRetryOptions=getRetryOptions},12312:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.internalArtifactTwirpClient=void 0;const l=s(96255);const c=s(35526);const p=s(42186);const d=s(49960);const u=s(74610);const A=s(85164);const h=s(38182);class ArtifactHttpClient{constructor(r,i,s,a){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const p=(0,u.getRuntimeToken)();this.baseUrl=(0,u.getResultsServiceUrl)();if(i){this.maxAttempts=i}if(s){this.baseRetryIntervalMilliseconds=s}if(a){this.retryMultiplier=a}this.httpClient=new l.HttpClient(r,[new c.BearerCredentialHandler(p)])}request(r,i,s,l){return a(this,void 0,void 0,(function*(){const c=new URL(`/twirp/${r}/${i}`,this.baseUrl).href;(0,p.debug)(`[Request] ${i} ${c}`);const d={"Content-Type":s};try{const{body:r}=yield this.retryableRequest((()=>a(this,void 0,void 0,(function*(){return this.httpClient.post(c,JSON.stringify(l),d)}))));return r}catch(r){throw new Error(`Failed to ${i}: ${r.message}`)}}))}retryableRequest(r){return a(this,void 0,void 0,(function*(){let i=0;let s="";let a="";while(i=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const i=[l.HttpCodes.BadGateway,l.HttpCodes.GatewayTimeout,l.HttpCodes.InternalServerError,l.HttpCodes.ServiceUnavailable,l.HttpCodes.TooManyRequests];return i.includes(r)}sleep(r){return a(this,void 0,void 0,(function*(){return new Promise((i=>setTimeout(i,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const i=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const s=i*this.retryMultiplier;return Math.trunc(Math.random()*(s-i)+i)}}function internalArtifactTwirpClient(r){const i=new ArtifactHttpClient((0,A.getUserAgentString)(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new d.ArtifactServiceClientJSON(i)}i.internalArtifactTwirpClient=internalArtifactTwirpClient},74610:function(r,i,s){"use strict";var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getConcurrency=i.getGitHubWorkspaceDir=i.isGhes=i.getResultsServiceUrl=i.getRuntimeToken=i.getUploadChunkSize=void 0;const l=a(s(22037));function getUploadChunkSize(){return 8*1024*1024}i.getUploadChunkSize=getUploadChunkSize;function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}i.getRuntimeToken=getRuntimeToken;function getResultsServiceUrl(){const r=process.env["ACTIONS_RESULTS_URL"];if(!r){throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable")}return new URL(r).origin}i.getResultsServiceUrl=getResultsServiceUrl;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");return r.hostname.toUpperCase()!=="GITHUB.COM"}i.isGhes=isGhes;function getGitHubWorkspaceDir(){const r=process.env["GITHUB_WORKSPACE"];if(!r){throw new Error("Unable to get the GITHUB_WORKSPACE env variable")}return r}i.getGitHubWorkspaceDir=getGitHubWorkspaceDir;function getConcurrency(){const r=l.default.cpus().length;if(r<=4){return 32}const i=16*r;return i>300?300:i}i.getConcurrency=getConcurrency},38182:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.UsageError=i.NetworkError=i.GHESNotSupportedError=i.ArtifactNotFoundError=i.InvalidResponseError=i.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(r=[]){let i="No files were found to upload";if(r.length>0){i+=`: ${r.join(", ")}`}super(i);this.files=r;this.name="FilesNotFoundError"}}i.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}i.InvalidResponseError=InvalidResponseError;class ArtifactNotFoundError extends Error{constructor(r="Artifact not found"){super(r);this.name="ArtifactNotFoundError"}}i.ArtifactNotFoundError=ArtifactNotFoundError;class GHESNotSupportedError extends Error{constructor(r="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}i.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(r){const i=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(i);this.code=r;this.name="NetworkError"}}i.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}i.UsageError=UsageError;UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")}},15769:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},85164:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getUserAgentString=void 0;const a=s(39839);function getUserAgentString(){return`@actions/artifact-${a.version}`}i.getUserAgentString=getUserAgentString},63062:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getBackendIdsFromToken=void 0;const d=c(s(42186));const u=s(74610);const A=p(s(84329));const h=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function getBackendIdsFromToken(){const r=(0,u.getRuntimeToken)();const i=(0,A.default)(r);if(!i.scp){throw h}const s=i.scp.split(" ");if(s.length===0){throw h}for(const r of s){const i=r.split(":");if((i===null||i===void 0?void 0:i[0])!=="Actions.Results"){continue}if(i.length!==3){throw h}const s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};d.debug(`Workflow Run Backend ID: ${s.workflowRunBackendId}`);d.debug(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`);return s}throw h}i.getBackendIdsFromToken=getBackendIdsFromToken},7246:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.uploadZipToBlobStorage=void 0;const d=s(84100);const u=s(74610);const A=c(s(42186));const h=c(s(6113));const g=c(s(12781));const E=s(38182);function uploadZipToBlobStorage(r,i){return p(this,void 0,void 0,(function*(){let s=0;const a=(0,u.getConcurrency)();const l=(0,u.getUploadChunkSize)();const c=new d.BlobClient(r);const p=c.getBlockBlobClient();A.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${a}, bufferSize: ${l}`);const uploadCallback=r=>{A.info(`Uploaded bytes ${r.loadedBytes}`);s=r.loadedBytes};const y={blobHTTPHeaders:{blobContentType:"zip"},onProgress:uploadCallback};let b=undefined;const C=new g.PassThrough;const v=h.createHash("sha256");i.pipe(C);i.pipe(v).setEncoding("hex");A.info("Beginning upload of artifact content to blob storage");try{yield p.uploadStream(C,l,a,y)}catch(r){if(E.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new E.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}A.info("Finished uploading artifact content to blob storage!");v.end();b=v.read();A.info(`SHA256 hash of uploaded artifact zip is ${b}`);if(s===0){A.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:s,sha256Hash:b}}))}i.uploadZipToBlobStorage=uploadZipToBlobStorage},63219:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateFilePath=i.validateArtifactName=void 0;const a=s(42186);const l=new Map([['"',' Double quote "'],[":"," Colon :"],["<"," Less than <"],[">"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],["\n"," Line feed \\n"]]);const c=new Map([...l,["\\"," Backslash \\"],["/"," Forward slash /"]]);function validateArtifactName(r){if(!r){throw new Error(`Provided artifact name input during validation is empty`)}for(const[i,s]of c){if(r.includes(i)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(c.values()).toString()}\n \nThese characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`)}}(0,a.info)(`Artifact name is valid!`)}i.validateArtifactName=validateArtifactName;function validateFilePath(r){if(!r){throw new Error(`Provided file path input during validation is empty`)}for(const[i,s]of l){if(r.includes(i)){throw new Error(`The path for one of the files in artifact is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(l.values()).toString()}\n \nThe following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.\n `)}}}i.validateFilePath=validateFilePath},3231:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getExpiration=void 0;const p=s(49960);const d=c(s(42186));function getExpiration(r){if(!r){return undefined}const i=getRetentionDays();if(i&&ir.sourcePath?[r.sourcePath]:[])))}const c=(0,E.getBackendIdsFromToken)();const p=(0,h.internalArtifactTwirpClient)();const w={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,version:4};const I=(0,u.getExpiration)(a===null||a===void 0?void 0:a.retentionDays);if(I){w.expiresAt=I}const B=yield p.CreateArtifact(w);if(!B.ok){throw new v.InvalidResponseError("CreateArtifact: response from backend was not ok")}const S=yield(0,b.createZipUploadStream)(l,a===null||a===void 0?void 0:a.compressionLevel);const Q=yield(0,y.uploadZipToBlobStorage)(B.signedUploadUrl,S);const x={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,size:Q.uploadSize?Q.uploadSize.toString():"0"};if(Q.sha256Hash){x.hash=C.StringValue.create({value:`sha256:${Q.sha256Hash}`})}d.info(`Finalizing artifact upload`);const R=yield p.FinalizeArtifact(x);if(!R.ok){throw new v.InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const T=BigInt(R.artifactId);d.info(`Artifact ${r}.zip successfully finalized. Artifact ID ${T}`);return{size:Q.uploadSize,id:Number(T)}}))}i.uploadArtifact=uploadArtifact},17837:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getUploadZipSpecification=i.validateRootDirectory=void 0;const p=c(s(57147));const d=s(42186);const u=s(71017);const A=s(63219);function validateRootDirectory(r){if(!p.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!p.statSync(r).isDirectory()){throw new Error(`The provided rootDirectory ${r} is not a valid directory`)}(0,d.info)(`Root directory input is valid!`)}i.validateRootDirectory=validateRootDirectory;function getUploadZipSpecification(r,i){const s=[];i=(0,u.normalize)(i);i=(0,u.resolve)(i);for(let a of r){if(!p.existsSync(a)){throw new Error(`File ${a} does not exist`)}if(!p.statSync(a).isDirectory()){a=(0,u.normalize)(a);a=(0,u.resolve)(a);if(!a.startsWith(i)){throw new Error(`The rootDirectory: ${i} is not a parent directory of the file: ${a}`)}const r=a.replace(i,"");(0,A.validateFilePath)(r);s.push({sourcePath:a,destinationPath:r})}else{const r=a.replace(i,"");(0,A.validateFilePath)(r);s.push({sourcePath:null,destinationPath:r})}}return s}i.getUploadZipSpecification=getUploadZipSpecification},69186:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.createZipUploadStream=i.ZipUploadStream=i.DEFAULT_COMPRESSION_LEVEL=void 0;const d=c(s(12781));const u=c(s(43084));const A=c(s(42186));const h=s(57147);const g=s(74610);i.DEFAULT_COMPRESSION_LEVEL=6;class ZipUploadStream extends d.Transform{constructor(r){super({highWaterMark:r})}_transform(r,i,s){s(null,r)}}i.ZipUploadStream=ZipUploadStream;function createZipUploadStream(r,s=i.DEFAULT_COMPRESSION_LEVEL){return p(this,void 0,void 0,(function*(){A.debug(`Creating Artifact archive with compressionLevel: ${s}`);const i=u.create("zip",{highWaterMark:(0,g.getUploadChunkSize)(),zlib:{level:s}});i.on("error",zipErrorCallback);i.on("warning",zipWarningCallback);i.on("finish",zipFinishCallback);i.on("end",zipEndCallback);for(const s of r){if(s.sourcePath!==null){i.append((0,h.createReadStream)(s.sourcePath),{name:s.destinationPath})}else{i.append("",{name:s.destinationPath})}}const a=(0,g.getUploadChunkSize)();const l=new ZipUploadStream(a);A.debug(`Zip write high watermark value ${l.writableHighWaterMark}`);A.debug(`Zip read high watermark value ${l.readableHighWaterMark}`);i.pipe(l);i.finalize();return l}))}i.createZipUploadStream=createZipUploadStream;const zipErrorCallback=r=>{A.error("An error has occurred while creating the zip file for upload");A.info(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){A.warning("ENOENT warning during artifact zip creation. No such file or directory");A.info(r)}else{A.warning(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);A.info(r)}};const zipFinishCallback=()=>{A.debug("Zip stream for upload has finished.")};const zipEndCallback=()=>{A.debug("Zip stream for upload has ended.")}},87351:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const p=c(s(22037));const d=s(5278);function issueCommand(r,i,s){const a=new Command(r,i,s);process.stdout.write(a.toString()+p.EOL)}i.issueCommand=issueCommand;function issue(r,i=""){issueCommand(r,{},i)}i.issue=issue;const u="::";class Command{constructor(r,i,s){if(!r){r="missing.command"}this.command=r;this.properties=i;this.message=s}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let i=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const a=this.properties[s];if(a){if(i){i=false}else{r+=","}r+=`${s}=${escapeProperty(a)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const d=s(87351);const u=s(717);const A=s(5278);const h=c(s(22037));const g=c(s(71017));const E=s(98041);var y;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(y=i.ExitCode||(i.ExitCode={}));function exportVariable(r,i){const s=A.toCommandValue(i);process.env[r]=s;const a=process.env["GITHUB_ENV"]||"";if(a){return u.issueFileCommand("ENV",u.prepareKeyValueMessage(r,i))}d.issueCommand("set-env",{name:r},s)}i.exportVariable=exportVariable;function setSecret(r){d.issueCommand("add-mask",{},r)}i.setSecret=setSecret;function addPath(r){const i=process.env["GITHUB_PATH"]||"";if(i){u.issueFileCommand("PATH",r)}else{d.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${g.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(r,i){const s=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!s){throw new Error(`Input required and not supplied: ${r}`)}if(i&&i.trimWhitespace===false){return s}return s.trim()}i.getInput=getInput;function getMultilineInput(r,i){const s=getInput(r,i).split("\n").filter((r=>r!==""));if(i&&i.trimWhitespace===false){return s}return s.map((r=>r.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(r,i){const s=["true","True","TRUE"];const a=["false","False","FALSE"];const l=getInput(r,i);if(s.includes(l))return true;if(a.includes(l))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i.getBooleanInput=getBooleanInput;function setOutput(r,i){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return u.issueFileCommand("OUTPUT",u.prepareKeyValueMessage(r,i))}process.stdout.write(h.EOL);d.issueCommand("set-output",{name:r},A.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(r){d.issue("echo",r?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=y.Failure;error(r)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(r){d.issueCommand("debug",{},r)}i.debug=debug;function error(r,i={}){d.issueCommand("error",A.toCommandProperties(i),r instanceof Error?r.toString():r)}i.error=error;function warning(r,i={}){d.issueCommand("warning",A.toCommandProperties(i),r instanceof Error?r.toString():r)}i.warning=warning;function notice(r,i={}){d.issueCommand("notice",A.toCommandProperties(i),r instanceof Error?r.toString():r)}i.notice=notice;function info(r){process.stdout.write(r+h.EOL)}i.info=info;function startGroup(r){d.issue("group",r)}i.startGroup=startGroup;function endGroup(){d.issue("endgroup")}i.endGroup=endGroup;function group(r,i){return p(this,void 0,void 0,(function*(){startGroup(r);let s;try{s=yield i()}finally{endGroup()}return s}))}i.group=group;function saveState(r,i){const s=process.env["GITHUB_STATE"]||"";if(s){return u.issueFileCommand("STATE",u.prepareKeyValueMessage(r,i))}d.issueCommand("save-state",{name:r},A.toCommandValue(i))}i.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}i.getState=getState;function getIDToken(r){return p(this,void 0,void 0,(function*(){return yield E.OidcClient.getIDToken(r)}))}i.getIDToken=getIDToken;var b=s(81327);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return b.summary}});var C=s(81327);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return C.markdownSummary}});var v=s(2981);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},717:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const p=c(s(57147));const d=c(s(22037));const u=s(78974);const A=s(5278);function issueFileCommand(r,i){const s=process.env[`GITHUB_${r}`];if(!s){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!p.existsSync(s)){throw new Error(`Missing file at path: ${s}`)}p.appendFileSync(s,`${A.toCommandValue(i)}${d.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,i){const s=`ghadelimiter_${u.v4()}`;const a=A.toCommandValue(i);if(r.includes(s)){throw new Error(`Unexpected input: name should not contain the delimiter "${s}"`)}if(a.includes(s)){throw new Error(`Unexpected input: value should not contain the delimiter "${s}"`)}return`${r}<<${s}${d.EOL}${a}${d.EOL}${s}`}i.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const l=s(96255);const c=s(35526);const p=s(42186);class OidcClient{static createHttpClient(r=true,i=10){const s={allowRetries:r,maxRetries:i};return new l.HttpClient("actions/oidc-client",[new c.BearerCredentialHandler(OidcClient.getRequestToken())],s)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var i;return a(this,void 0,void 0,(function*(){const s=OidcClient.createHttpClient();const a=yield s.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const l=(i=a.result)===null||i===void 0?void 0:i.value;if(!l){throw new Error("Response json body do not have ID Token field")}return l}))}static getIDToken(r){return a(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(r){const s=encodeURIComponent(r);i=`${i}&audience=${s}`}p.debug(`ID token url is ${i}`);const s=yield OidcClient.getCall(i);p.setSecret(s);return s}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}i.OidcClient=OidcClient},2981:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const p=c(s(71017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,p.sep)}i.toPlatformPath=toPlatformPath},81327:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const l=s(22037);const c=s(57147);const{access:p,appendFile:d,writeFile:u}=c.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[i.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield p(r,c.constants.R_OK|c.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,i,s={}){const a=Object.entries(s).map((([r,i])=>` ${r}="${i}"`)).join("");if(!i){return`<${r}${a}>`}return`<${r}${a}>${i}`}write(r){return a(this,void 0,void 0,(function*(){const i=!!(r===null||r===void 0?void 0:r.overwrite);const s=yield this.filePath();const a=i?u:d;yield a(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,i=false){this._buffer+=r;return i?this.addEOL():this}addEOL(){return this.addRaw(l.EOL)}addCodeBlock(r,i){const s=Object.assign({},i&&{lang:i});const a=this.wrap("pre",this.wrap("code",r),s);return this.addRaw(a).addEOL()}addList(r,i=false){const s=i?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const l=this.wrap(s,a);return this.addRaw(l).addEOL()}addTable(r){const i=r.map((r=>{const i=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:i,data:s,colspan:a,rowspan:l}=r;const c=i?"th":"td";const p=Object.assign(Object.assign({},a&&{colspan:a}),l&&{rowspan:l});return this.wrap(c,s,p)})).join("");return this.wrap("tr",i)})).join("");const s=this.wrap("table",i);return this.addRaw(s).addEOL()}addDetails(r,i){const s=this.wrap("details",this.wrap("summary",r)+i);return this.addRaw(s).addEOL()}addImage(r,i,s){const{width:a,height:l}=s||{};const c=Object.assign(Object.assign({},a&&{width:a}),l&&{height:l});const p=this.wrap("img",null,Object.assign({src:r,alt:i},c));return this.addRaw(p).addEOL()}addHeading(r,i){const s=`h${i}`;const a=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const l=this.wrap(a,r);return this.addRaw(l).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,i){const s=Object.assign({},i&&{cite:i});const a=this.wrap("blockquote",r,s);return this.addRaw(a).addEOL()}addLink(r,i){const s=this.wrap("a",r,{href:i});return this.addRaw(s).addEOL()}}const A=new Summary;i.markdownSummary=A;i.summary=A},5278:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.toCommandProperties=i.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}i.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}i.toCommandProperties=toCommandProperties},78974:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return A.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return g.default}});var a=_interopRequireDefault(s(81595));var l=_interopRequireDefault(s(26993));var c=_interopRequireDefault(s(51472));var p=_interopRequireDefault(s(16217));var d=_interopRequireDefault(s(32381));var u=_interopRequireDefault(s(40427));var A=_interopRequireDefault(s(92609));var h=_interopRequireDefault(s(61458));var g=_interopRequireDefault(s(26385));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},5842:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("md5").update(r).digest()}var l=md5;i["default"]=l},32381:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s="00000000-0000-0000-0000-000000000000";i["default"]=s},26385:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(92609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}let i;const s=new Uint8Array(16);s[0]=(i=parseInt(r.slice(0,8),16))>>>24;s[1]=i>>>16&255;s[2]=i>>>8&255;s[3]=i&255;s[4]=(i=parseInt(r.slice(9,13),16))>>>8;s[5]=i&255;s[6]=(i=parseInt(r.slice(14,18),16))>>>8;s[7]=i&255;s[8]=(i=parseInt(r.slice(19,23),16))>>>8;s[9]=i&255;s[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;s[11]=i/4294967296&255;s[12]=i>>>24&255;s[13]=i>>>16&255;s[14]=i>>>8&255;s[15]=i&255;return s}var l=parse;i["default"]=l},86230:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=s},9784:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=new Uint8Array(256);let c=l.length;function rng(){if(c>l.length-16){a.default.randomFillSync(l);c=0}return l.slice(c,c+=16)}},38844:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("sha1").update(r).digest()}var l=sha1;i["default"]=l},61458:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(92609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=[];for(let r=0;r<256;++r){l.push((r+256).toString(16).substr(1))}function stringify(r,i=0){const s=(l[r[i+0]]+l[r[i+1]]+l[r[i+2]]+l[r[i+3]]+"-"+l[r[i+4]]+l[r[i+5]]+"-"+l[r[i+6]]+l[r[i+7]]+"-"+l[r[i+8]]+l[r[i+9]]+"-"+l[r[i+10]]+l[r[i+11]]+l[r[i+12]]+l[r[i+13]]+l[r[i+14]]+l[r[i+15]]).toLowerCase();if(!(0,a.default)(s)){throw TypeError("Stringified UUID is invalid")}return s}var c=stringify;i["default"]=c},81595:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(9784));var l=_interopRequireDefault(s(61458));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let c;let p;let d=0;let u=0;function v1(r,i,s){let A=i&&s||0;const h=i||new Array(16);r=r||{};let g=r.node||c;let E=r.clockseq!==undefined?r.clockseq:p;if(g==null||E==null){const i=r.random||(r.rng||a.default)();if(g==null){g=c=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(E==null){E=p=(i[6]<<8|i[7])&16383}}let y=r.msecs!==undefined?r.msecs:Date.now();let b=r.nsecs!==undefined?r.nsecs:u+1;const C=y-d+(b-u)/1e4;if(C<0&&r.clockseq===undefined){E=E+1&16383}if((C<0||y>d)&&r.nsecs===undefined){b=0}if(b>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=y;u=b;p=E;y+=122192928e5;const v=((y&268435455)*1e4+b)%4294967296;h[A++]=v>>>24&255;h[A++]=v>>>16&255;h[A++]=v>>>8&255;h[A++]=v&255;const w=y/4294967296*1e4&268435455;h[A++]=w>>>8&255;h[A++]=w&255;h[A++]=w>>>24&15|16;h[A++]=w>>>16&255;h[A++]=E>>>8|128;h[A++]=E&255;for(let r=0;r<6;++r){h[A+r]=g[r]}return i||(0,l.default)(h)}var A=v1;i["default"]=A},26993:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(65920));var l=_interopRequireDefault(s(5842));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v3",48,l.default);var p=c;i["default"]=p},65920:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var a=_interopRequireDefault(s(61458));var l=_interopRequireDefault(s(26385));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let s=0;s{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(9784));var l=_interopRequireDefault(s(61458));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,i,s){r=r||{};const c=r.random||(r.rng||a.default)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(i){s=s||0;for(let r=0;r<16;++r){i[s+r]=c[r]}return i}return(0,l.default)(c)}var c=v4;i["default"]=c},16217:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(65920));var l=_interopRequireDefault(s(38844));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v5",80,l.default);var p=c;i["default"]=p},92609:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(86230));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&a.default.test(r)}var l=validate;i["default"]=l},40427:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(92609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.substr(14,1),16)}var l=version;i["default"]=l},71514:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getExecOutput=i.exec=void 0;const d=s(71576);const u=c(s(88159));function exec(r,i,s){return p(this,void 0,void 0,(function*(){const a=u.argStringToArray(r);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const l=a[0];i=a.slice(1).concat(i||[]);const c=new u.ToolRunner(l,i,s);return c.exec()}))}i.exec=exec;function getExecOutput(r,i,s){var a,l;return p(this,void 0,void 0,(function*(){let c="";let p="";const u=new d.StringDecoder("utf8");const A=new d.StringDecoder("utf8");const h=(a=s===null||s===void 0?void 0:s.listeners)===null||a===void 0?void 0:a.stdout;const g=(l=s===null||s===void 0?void 0:s.listeners)===null||l===void 0?void 0:l.stderr;const stdErrListener=r=>{p+=A.write(r);if(g){g(r)}};const stdOutListener=r=>{c+=u.write(r);if(h){h(r)}};const E=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const y=yield exec(r,i,Object.assign(Object.assign({},s),{listeners:E}));c+=u.end();p+=A.end();return{exitCode:y,stdout:c,stderr:p}}))}i.getExecOutput=getExecOutput},88159:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.argStringToArray=i.ToolRunner=void 0;const d=c(s(22037));const u=c(s(82361));const A=c(s(32081));const h=c(s(71017));const g=c(s(47351));const E=c(s(81962));const y=s(39512);const b=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(r,i,s){super();if(!r){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=r;this.args=i||[];this.options=s||{}}_debug(r){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(r)}}_getCommandString(r,i){const s=this._getSpawnFileName();const a=this._getSpawnArgs(r);let l=i?"":"[command]";if(b){if(this._isCmdFile()){l+=s;for(const r of a){l+=` ${r}`}}else if(r.windowsVerbatimArguments){l+=`"${s}"`;for(const r of a){l+=` ${r}`}}else{l+=this._windowsQuoteCmdArg(s);for(const r of a){l+=` ${this._windowsQuoteCmdArg(r)}`}}}else{l+=s;for(const r of a){l+=` ${r}`}}return l}_processLineBuffer(r,i,s){try{let a=i+r.toString();let l=a.indexOf(d.EOL);while(l>-1){const r=a.substring(0,l);s(r);a=a.substring(l+d.EOL.length);l=a.indexOf(d.EOL)}return a}catch(r){this._debug(`error processing line. Failed with error ${r}`);return""}}_getSpawnFileName(){if(b){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(r){if(b){if(this._isCmdFile()){let i=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){i+=" ";i+=r.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}i+='"';return[i]}}return this.args}_endsWith(r,i){return r.endsWith(i)}_isCmdFile(){const r=this.toolPath.toUpperCase();return this._endsWith(r,".CMD")||this._endsWith(r,".BAT")}_windowsQuoteCmdArg(r){if(!this._isCmdFile()){return this._uvQuoteCmdArg(r)}if(!r){return'""'}const i=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const a of r){if(i.some((r=>r===a))){s=true;break}}if(!s){return r}let a='"';let l=true;for(let i=r.length;i>0;i--){a+=r[i-1];if(l&&r[i-1]==="\\"){a+="\\"}else if(r[i-1]==='"'){l=true;a+='"'}else{l=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(r){if(!r){return'""'}if(!r.includes(" ")&&!r.includes("\t")&&!r.includes('"')){return r}if(!r.includes('"')&&!r.includes("\\")){return`"${r}"`}let i='"';let s=true;for(let a=r.length;a>0;a--){i+=r[a-1];if(s&&r[a-1]==="\\"){i+="\\"}else if(r[a-1]==='"'){s=true;i+="\\"}else{s=false}}i+='"';return i.split("").reverse().join("")}_cloneExecOptions(r){r=r||{};const i={cwd:r.cwd||process.cwd(),env:r.env||process.env,silent:r.silent||false,windowsVerbatimArguments:r.windowsVerbatimArguments||false,failOnStdErr:r.failOnStdErr||false,ignoreReturnCode:r.ignoreReturnCode||false,delay:r.delay||1e4};i.outStream=r.outStream||process.stdout;i.errStream=r.errStream||process.stderr;return i}_getSpawnOptions(r,i){r=r||{};const s={};s.cwd=r.cwd;s.env=r.env;s["windowsVerbatimArguments"]=r.windowsVerbatimArguments||this._isCmdFile();if(r.windowsVerbatimArguments){s.argv0=`"${i}"`}return s}exec(){return p(this,void 0,void 0,(function*(){if(!E.isRooted(this.toolPath)&&(this.toolPath.includes("/")||b&&this.toolPath.includes("\\"))){this.toolPath=h.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield g.which(this.toolPath,true);return new Promise(((r,i)=>p(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const r of this.args){this._debug(` ${r}`)}const s=this._cloneExecOptions(this.options);if(!s.silent&&s.outStream){s.outStream.write(this._getCommandString(s)+d.EOL)}const a=new ExecState(s,this.toolPath);a.on("debug",(r=>{this._debug(r)}));if(this.options.cwd&&!(yield E.exists(this.options.cwd))){return i(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const l=this._getSpawnFileName();const c=A.spawn(l,this._getSpawnArgs(s),this._getSpawnOptions(this.options,l));let p="";if(c.stdout){c.stdout.on("data",(r=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(r)}if(!s.silent&&s.outStream){s.outStream.write(r)}p=this._processLineBuffer(r,p,(r=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(r)}}))}))}let u="";if(c.stderr){c.stderr.on("data",(r=>{a.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(r)}if(!s.silent&&s.errStream&&s.outStream){const i=s.failOnStdErr?s.errStream:s.outStream;i.write(r)}u=this._processLineBuffer(r,u,(r=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(r)}}))}))}c.on("error",(r=>{a.processError=r.message;a.processExited=true;a.processClosed=true;a.CheckComplete()}));c.on("exit",(r=>{a.processExitCode=r;a.processExited=true;this._debug(`Exit code ${r} received from tool '${this.toolPath}'`);a.CheckComplete()}));c.on("close",(r=>{a.processExitCode=r;a.processExited=true;a.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);a.CheckComplete()}));a.on("done",((s,a)=>{if(p.length>0){this.emit("stdline",p)}if(u.length>0){this.emit("errline",u)}c.removeAllListeners();if(s){i(s)}else{r(a)}}));if(this.options.input){if(!c.stdin){throw new Error("child process missing stdin")}c.stdin.end(this.options.input)}}))))}))}}i.ToolRunner=ToolRunner;function argStringToArray(r){const i=[];let s=false;let a=false;let l="";function append(r){if(a&&r!=='"'){l+="\\"}l+=r;a=false}for(let c=0;c0){i.push(l);l=""}continue}append(p)}if(l.length>0){i.push(l.trim())}return i}i.argStringToArray=argStringToArray;class ExecState extends u.EventEmitter{constructor(r,i){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!i){throw new Error("toolPath must not be empty")}this.options=r;this.toolPath=i;if(r.delay){this.delay=r.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=y.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(r){this.emit("debug",r)}_setResult(){let r;if(this.processExited){if(this.processError){r=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){r=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){r=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",r,this.processExitCode)}static HandleTimeout(r){if(r.done){return}if(!r.processClosed&&r.processExited){const i=`The STDIO streams did not close within ${r.delay/1e3} seconds of the exit event from process '${r.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;r._debug(i)}r._setResult()}}},74087:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const a=s(57147);const l=s(22037);class Context{constructor(){var r,i,s;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(a.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(a.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${l.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(i=process.env.GITHUB_SERVER_URL)!==null&&i!==void 0?i:`https://github.com`;this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,i]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:i}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}i.Context=Context},95438:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const p=c(s(74087));const d=s(73030);i.context=new p.Context;function getOctokit(r,i,...s){const a=d.GitHub.plugin(...s);return new a(d.getOctokitOptions(r,i))}i.getOctokit=getOctokit},47914:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyAgent=i.getAuthString=void 0;const p=c(s(96255));function getAuthString(r,i){if(!r&&!i.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&i.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof i.auth==="string"?i.auth:`token ${r}`}i.getAuthString=getAuthString;function getProxyAgent(r){const i=new p.HttpClient;return i.getAgent(r)}i.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},73030:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const p=c(s(74087));const d=c(s(47914));const u=s(76762);const A=s(83044);const h=s(64193);i.context=new p.Context;const g=d.getApiBaseUrl();i.defaults={baseUrl:g,request:{agent:d.getProxyAgent(g)}};i.GitHub=u.Octokit.plugin(A.restEndpointMethods,h.paginateRest).defaults(i.defaults);function getOctokitOptions(r,i){const s=Object.assign({},i||{});const a=d.getAuthString(r,s);if(a){s.auth=a}return s}i.getOctokitOptions=getOctokitOptions},35526:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.PersonalAccessTokenCredentialHandler=i.BearerCredentialHandler=i.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(r,i){this.username=r;this.password=i}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.HttpClient=i.isHttps=i.HttpClientResponse=i.HttpClientError=i.getProxyUrl=i.MediaTypes=i.Headers=i.HttpCodes=void 0;const d=c(s(13685));const u=c(s(95687));const A=c(s(19835));const h=c(s(74294));const g=s(41773);var E;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(E||(i.HttpCodes=E={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(i.Headers=y={}));var b;(function(r){r["ApplicationJson"]="application/json"})(b||(i.MediaTypes=b={}));function getProxyUrl(r){const i=A.getProxyUrl(new URL(r));return i?i.href:""}i.getProxyUrl=getProxyUrl;const C=[E.MovedPermanently,E.ResourceMoved,E.SeeOther,E.TemporaryRedirect,E.PermanentRedirect];const v=[E.BadGateway,E.ServiceUnavailable,E.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const I=10;const B=5;class HttpClientError extends Error{constructor(r,i){super(r);this.name="HttpClientError";this.statusCode=i;Object.setPrototypeOf(this,HttpClientError.prototype)}}i.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return p(this,void 0,void 0,(function*(){return new Promise((r=>p(this,void 0,void 0,(function*(){let i=Buffer.alloc(0);this.message.on("data",(r=>{i=Buffer.concat([i,r])}));this.message.on("end",(()=>{r(i.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((r=>p(this,void 0,void 0,(function*(){const i=[];this.message.on("data",(r=>{i.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(i))}))}))))}))}}i.HttpClientResponse=HttpClientResponse;function isHttps(r){const i=new URL(r);return i.protocol==="https:"}i.isHttps=isHttps;class HttpClient{constructor(r,i,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=r;this.handlers=i||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(r,i){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,i||{})}))}get(r,i){return p(this,void 0,void 0,(function*(){return this.request("GET",r,null,i||{})}))}del(r,i){return p(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,i||{})}))}post(r,i,s){return p(this,void 0,void 0,(function*(){return this.request("POST",r,i,s||{})}))}patch(r,i,s){return p(this,void 0,void 0,(function*(){return this.request("PATCH",r,i,s||{})}))}put(r,i,s){return p(this,void 0,void 0,(function*(){return this.request("PUT",r,i,s||{})}))}head(r,i){return p(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,i||{})}))}sendStream(r,i,s,a){return p(this,void 0,void 0,(function*(){return this.request(r,i,s,a)}))}getJson(r,i={}){return p(this,void 0,void 0,(function*(){i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,b.ApplicationJson);const s=yield this.get(r,i);return this._processResponse(s,this.requestOptions)}))}postJson(r,i,s={}){return p(this,void 0,void 0,(function*(){const a=JSON.stringify(i,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultHeader(s,y.ContentType,b.ApplicationJson);const l=yield this.post(r,a,s);return this._processResponse(l,this.requestOptions)}))}putJson(r,i,s={}){return p(this,void 0,void 0,(function*(){const a=JSON.stringify(i,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultHeader(s,y.ContentType,b.ApplicationJson);const l=yield this.put(r,a,s);return this._processResponse(l,this.requestOptions)}))}patchJson(r,i,s={}){return p(this,void 0,void 0,(function*(){const a=JSON.stringify(i,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultHeader(s,y.ContentType,b.ApplicationJson);const l=yield this.patch(r,a,s);return this._processResponse(l,this.requestOptions)}))}request(r,i,s,a){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(i);let c=this._prepareRequest(r,l,a);const p=this._allowRetries&&w.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(c,s);if(u&&u.message&&u.message.statusCode===E.Unauthorized){let r;for(const i of this.handlers){if(i.canHandleAuthentication(u)){r=i;break}}if(r){return r.handleAuthentication(this,c,s)}else{return u}}let i=this._maxRedirects;while(u.message.statusCode&&C.includes(u.message.statusCode)&&this._allowRedirects&&i>0){const p=u.message.headers["location"];if(!p){break}const d=new URL(p);if(l.protocol==="https:"&&l.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(d.hostname!==l.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}c=this._prepareRequest(r,d,a);u=yield this.requestRaw(c,s);i--}if(!u.message.statusCode||!v.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,i){if(r){a(r)}else if(!i){a(new Error("Unknown error"))}else{s(i)}}this.requestRawWithCallback(r,i,callbackForResult)}))}))}requestRawWithCallback(r,i,s){if(typeof i==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let a=false;function handleResult(r,i){if(!a){a=true;s(r,i)}}const l=r.httpModule.request(r.options,(r=>{const i=new HttpClientResponse(r);handleResult(undefined,i)}));let c;l.on("socket",(r=>{c=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(i&&typeof i==="string"){l.write(i,"utf8")}if(i&&typeof i!=="string"){i.on("close",(function(){l.end()}));i.pipe(l)}else{l.end()}}getAgent(r){const i=new URL(r);return this._getAgent(i)}getAgentDispatcher(r){const i=new URL(r);const s=A.getProxyUrl(i);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(i,s)}_prepareRequest(r,i,s){const a={};a.parsedUrl=i;const l=a.parsedUrl.protocol==="https:";a.httpModule=l?u:d;const c=l?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,i,s){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[i]}return r[i]||a||s}_getAgent(r){let i;const s=A.getProxyUrl(r);const a=s&&s.hostname;if(this._keepAlive&&a){i=this._proxyAgent}if(this._keepAlive&&!a){i=this._agent}if(i){return i}const l=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const p=s.protocol==="https:";if(l){a=p?h.httpsOverHttps:h.httpsOverHttp}else{a=p?h.httpOverHttps:h.httpOverHttp}i=a(r);this._proxyAgent=i}if(this._keepAlive&&!i){const r={keepAlive:this._keepAlive,maxSockets:c};i=l?new u.Agent(r):new d.Agent(r);this._agent=i}if(!i){i=l?u.globalAgent:d.globalAgent}if(l&&this._ignoreSslError){i.options=Object.assign(i.options||{},{rejectUnauthorized:false})}return i}_getProxyAgentDispatcher(r,i){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new g.ProxyAgent(Object.assign({uri:i.href,pipelining:!this._keepAlive?0:1},(i.username||i.password)&&{token:`${i.username}:${i.password}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(r){return p(this,void 0,void 0,(function*(){r=Math.min(I,r);const i=B*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),i)))}))}_processResponse(r,i){return p(this,void 0,void 0,(function*(){return new Promise(((s,a)=>p(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const c={statusCode:l,result:null,headers:{}};if(l===E.NotFound){s(c)}function dateTimeDeserializer(r,i){if(typeof i==="string"){const r=new Date(i);if(!isNaN(r.valueOf())){return r}}return i}let p;let d;try{d=yield r.readBody();if(d&&d.length>0){if(i&&i.deserializeDates){p=JSON.parse(d,dateTimeDeserializer)}else{p=JSON.parse(d)}c.result=p}c.headers=r.message.headers}catch(r){}if(l>299){let r;if(p&&p.message){r=p.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${l})`}const i=new HttpClientError(r,l);i.result=c.result;a(i)}else{s(c)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((i,s)=>(i[s.toLowerCase()]=r[s],i)),{})},19835:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.checkBypass=i.getProxyUrl=void 0;function getProxyUrl(r){const i=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new URL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new URL(`http://${s}`)}}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const i=r.hostname;if(isLoopbackAddress(i)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((i=>i===r||i.endsWith(`.${r}`)||r.startsWith(".")&&i.endsWith(`${r}`)))){return true}}return false}i.checkBypass=checkBypass;function isLoopbackAddress(r){const i=r.toLowerCase();return i==="localhost"||i.startsWith("127.")||i.startsWith("[::1]")||i.startsWith("[0:0:0:0:0:0:0:1]")}},81962:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var d;Object.defineProperty(i,"__esModule",{value:true});i.getCmdPath=i.tryGetExecutablePath=i.isRooted=i.isDirectory=i.exists=i.READONLY=i.UV_FS_O_EXLOCK=i.IS_WINDOWS=i.unlink=i.symlink=i.stat=i.rmdir=i.rm=i.rename=i.readlink=i.readdir=i.open=i.mkdir=i.lstat=i.copyFile=i.chmod=void 0;const u=c(s(57147));const A=c(s(71017));d=u.promises,i.chmod=d.chmod,i.copyFile=d.copyFile,i.lstat=d.lstat,i.mkdir=d.mkdir,i.open=d.open,i.readdir=d.readdir,i.readlink=d.readlink,i.rename=d.rename,i.rm=d.rm,i.rmdir=d.rmdir,i.stat=d.stat,i.symlink=d.symlink,i.unlink=d.unlink;i.IS_WINDOWS=process.platform==="win32";i.UV_FS_O_EXLOCK=268435456;i.READONLY=u.constants.O_RDONLY;function exists(r){return p(this,void 0,void 0,(function*(){try{yield i.stat(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}i.exists=exists;function isDirectory(r,s=false){return p(this,void 0,void 0,(function*(){const a=s?yield i.stat(r):yield i.lstat(r);return a.isDirectory()}))}i.isDirectory=isDirectory;function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(i.IS_WINDOWS){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}i.isRooted=isRooted;function tryGetExecutablePath(r,s){return p(this,void 0,void 0,(function*(){let a=undefined;try{a=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(a&&a.isFile()){if(i.IS_WINDOWS){const i=A.extname(r).toUpperCase();if(s.some((r=>r.toUpperCase()===i))){return r}}else{if(isUnixExecutable(a)){return r}}}const l=r;for(const c of s){r=l+c;a=undefined;try{a=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(a&&a.isFile()){if(i.IS_WINDOWS){try{const s=A.dirname(r);const a=A.basename(r).toUpperCase();for(const l of yield i.readdir(s)){if(a===l.toUpperCase()){r=A.join(s,l);break}}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${i}`)}return r}else{if(isUnixExecutable(a)){return r}}}}return""}))}i.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(r){r=r||"";if(i.IS_WINDOWS){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&r.gid===process.getgid()||(r.mode&64)>0&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}i.getCmdPath=getCmdPath},47351:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.findInPath=i.which=i.mkdirP=i.rmRF=i.mv=i.cp=void 0;const d=s(39491);const u=c(s(71017));const A=c(s(81962));function cp(r,i,s={}){return p(this,void 0,void 0,(function*(){const{force:a,recursive:l,copySourceDirectory:c}=readCopyOptions(s);const p=(yield A.exists(i))?yield A.stat(i):null;if(p&&p.isFile()&&!a){return}const d=p&&p.isDirectory()&&c?u.join(i,u.basename(r)):i;if(!(yield A.exists(r))){throw new Error(`no such file or directory: ${r}`)}const h=yield A.stat(r);if(h.isDirectory()){if(!l){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,d,0,a)}}else{if(u.relative(r,d)===""){throw new Error(`'${d}' and '${r}' are the same file`)}yield copyFile(r,d,a)}}))}i.cp=cp;function mv(r,i,s={}){return p(this,void 0,void 0,(function*(){if(yield A.exists(i)){let a=true;if(yield A.isDirectory(i)){i=u.join(i,u.basename(r));a=yield A.exists(i)}if(a){if(s.force==null||s.force){yield rmRF(i)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(i));yield A.rename(r,i)}))}i.mv=mv;function rmRF(r){return p(this,void 0,void 0,(function*(){if(A.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield A.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}i.rmRF=rmRF;function mkdirP(r){return p(this,void 0,void 0,(function*(){d.ok(r,"a path argument must be provided");yield A.mkdir(r,{recursive:true})}))}i.mkdirP=mkdirP;function which(r,i){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(i){const i=yield which(r,false);if(!i){if(A.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return i}const s=yield findInPath(r);if(s&&s.length>0){return s[0]}return""}))}i.which=which;function findInPath(r){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const i=[];if(A.IS_WINDOWS&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(u.delimiter)){if(r){i.push(r)}}}if(A.isRooted(r)){const s=yield A.tryGetExecutablePath(r,i);if(s){return[s]}return[]}if(r.includes(u.sep)){return[]}const s=[];if(process.env.PATH){for(const r of process.env.PATH.split(u.delimiter)){if(r){s.push(r)}}}const a=[];for(const l of s){const s=yield A.tryGetExecutablePath(u.join(l,r),i);if(s){a.push(s)}}return a}))}i.findInPath=findInPath;function readCopyOptions(r){const i=r.force==null?true:r.force;const s=Boolean(r.recursive);const a=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:i,recursive:s,copySourceDirectory:a}}function cpDirRecursive(r,i,s,a){return p(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(i);const l=yield A.readdir(r);for(const c of l){const l=`${r}/${c}`;const p=`${i}/${c}`;const d=yield A.lstat(l);if(d.isDirectory()){yield cpDirRecursive(l,p,s,a)}else{yield copyFile(l,p,a)}}yield A.chmod(i,(yield A.stat(r)).mode)}))}function copyFile(r,i,s){return p(this,void 0,void 0,(function*(){if((yield A.lstat(r)).isSymbolicLink()){try{yield A.lstat(i);yield A.unlink(i)}catch(r){if(r.code==="EPERM"){yield A.chmod(i,"0666");yield A.unlink(i)}}const s=yield A.readlink(r);yield A.symlink(s,i,A.IS_WINDOWS?"junction":null)}else if(!(yield A.exists(i))||s){yield A.copyFile(r,i)}}))}},32473:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i._readLinuxVersionFile=i._getOsVersion=i._findMatch=void 0;const d=c(s(70562));const u=s(42186);const A=s(22037);const h=s(32081);const g=s(57147);function _findMatch(i,s,a,l){return p(this,void 0,void 0,(function*(){const c=A.platform();let p;let h;let g;for(const p of a){const a=p.version;u.debug(`check ${a} satisfies ${i}`);if(d.satisfies(a,i)&&(!s||p.stable===s)){g=p.files.find((i=>{u.debug(`${i.arch}===${l} && ${i.platform}===${c}`);let s=i.arch===l&&i.platform===c;if(s&&i.platform_version){const a=r.exports._getOsVersion();if(a===i.platform_version){s=true}else{s=d.satisfies(a,i.platform_version)}}return s}));if(g){u.debug(`matched ${p.version}`);h=p;break}}}if(h&&g){p=Object.assign({},h);p.files=[g]}return p}))}i._findMatch=_findMatch;function _getOsVersion(){const i=A.platform();let s="";if(i==="darwin"){s=h.execSync("sw_vers -productVersion").toString()}else if(i==="linux"){const i=r.exports._readLinuxVersionFile();if(i){const r=i.split("\n");for(const i of r){const r=i.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){s=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return s}i._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const r="/etc/lsb-release";const i="/etc/os-release";let s="";if(g.existsSync(r)){s=g.readFileSync(r).toString()}else if(g.existsSync(i)){s=g.readFileSync(i).toString()}return s}i._readLinuxVersionFile=_readLinuxVersionFile},38279:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.RetryHelper=void 0;const d=c(s(42186));class RetryHelper{constructor(r,i,s){if(r<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=r;this.minSeconds=Math.floor(i);this.maxSeconds=Math.floor(s);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(r,i){return p(this,void 0,void 0,(function*(){let s=1;while(ssetTimeout(i,r*1e3)))}))}}i.RetryHelper=RetryHelper},27784:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.evaluateVersions=i.isExplicitVersion=i.findFromManifest=i.getManifestFromRepo=i.findAllVersions=i.find=i.cacheFile=i.cacheDir=i.extractZip=i.extractXar=i.extractTar=i.extract7z=i.downloadTool=i.HTTPError=void 0;const u=c(s(42186));const A=c(s(47351));const h=c(s(57147));const g=c(s(32473));const E=c(s(22037));const y=c(s(71017));const b=c(s(96255));const C=c(s(70562));const v=c(s(12781));const w=c(s(73837));const I=s(39491);const B=d(s(80824));const S=s(71514);const Q=s(38279);class HTTPError extends Error{constructor(r){super(`Unexpected HTTP response: ${r}`);this.httpStatusCode=r;Object.setPrototypeOf(this,new.target.prototype)}}i.HTTPError=HTTPError;const x=process.platform==="win32";const R=process.platform==="darwin";const T="actions/tool-cache";function downloadTool(r,i,s,a){return p(this,void 0,void 0,(function*(){i=i||y.join(_getTempDirectory(),B.default());yield A.mkdirP(y.dirname(i));u.debug(`Downloading ${r}`);u.debug(`Destination ${i}`);const l=3;const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const d=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const h=new Q.RetryHelper(l,c,d);return yield h.execute((()=>p(this,void 0,void 0,(function*(){return yield downloadToolAttempt(r,i||"",s,a)}))),(r=>{if(r instanceof HTTPError&&r.httpStatusCode){if(r.httpStatusCode<500&&r.httpStatusCode!==408&&r.httpStatusCode!==429){return false}}return true}))}))}i.downloadTool=downloadTool;function downloadToolAttempt(r,i,s,a){return p(this,void 0,void 0,(function*(){if(h.existsSync(i)){throw new Error(`Destination file path ${i} already exists`)}const l=new b.HttpClient(T,[],{allowRetries:false});if(s){u.debug("set auth");if(a===undefined){a={}}a.authorization=s}const c=yield l.get(r,a);if(c.message.statusCode!==200){const i=new HTTPError(c.message.statusCode);u.debug(`Failed to download from "${r}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`);throw i}const p=w.promisify(v.pipeline);const d=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>c.message));const g=d();let E=false;try{yield p(g,h.createWriteStream(i));u.debug("download complete");E=true;return i}finally{if(!E){u.debug("download failed");try{yield A.rmRF(i)}catch(r){u.debug(`Failed to delete '${i}'. ${r.message}`)}}}}))}function extract7z(r,i,s){return p(this,void 0,void 0,(function*(){I.ok(x,"extract7z() not supported on current OS");I.ok(r,'parameter "file" is required');i=yield _createExtractFolder(i);const a=process.cwd();process.chdir(i);if(s){try{const i=u.isDebug()?"-bb1":"-bb0";const a=["x",i,"-bd","-sccUTF-8",r];const l={silent:true};yield S.exec(`"${s}"`,a,l)}finally{process.chdir(a)}}else{const s=y.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const c=i.replace(/'/g,"''").replace(/"|\n|\r/g,"");const p=`& '${s}' -Source '${l}' -Target '${c}'`;const d=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",p];const u={silent:true};try{const r=yield A.which("powershell",true);yield S.exec(`"${r}"`,d,u)}finally{process.chdir(a)}}return i}))}i.extract7z=extract7z;function extractTar(r,i,s="xz"){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}i=yield _createExtractFolder(i);u.debug("Checking tar --version");let a="";yield S.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>a+=r.toString(),stderr:r=>a+=r.toString()}});u.debug(a.trim());const l=a.toUpperCase().includes("GNU TAR");let c;if(s instanceof Array){c=s}else{c=[s]}if(u.isDebug()&&!s.includes("v")){c.push("-v")}let p=i;let d=r;if(x&&l){c.push("--force-local");p=i.replace(/\\/g,"/");d=r.replace(/\\/g,"/")}if(l){c.push("--warning=no-unknown-keyword");c.push("--overwrite")}c.push("-C",p,"-f",d);yield S.exec(`tar`,c);return i}))}i.extractTar=extractTar;function extractXar(r,i,s=[]){return p(this,void 0,void 0,(function*(){I.ok(R,"extractXar() not supported on current OS");I.ok(r,'parameter "file" is required');i=yield _createExtractFolder(i);let a;if(s instanceof Array){a=s}else{a=[s]}a.push("-x","-C",i,"-f",r);if(u.isDebug()){a.push("-v")}const l=yield A.which("xar",true);yield S.exec(`"${l}"`,_unique(a));return i}))}i.extractXar=extractXar;function extractZip(r,i){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}i=yield _createExtractFolder(i);if(x){yield extractZipWin(r,i)}else{yield extractZipNix(r,i)}return i}))}i.extractZip=extractZip;function extractZipWin(r,i){return p(this,void 0,void 0,(function*(){const s=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=i.replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=yield A.which("pwsh",false);if(l){const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${s}', '${a}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${s}' -DestinationPath '${a}' -Force } else { throw $_ } } ;`].join(" ");const i=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];u.debug(`Using pwsh at path: ${l}`);yield S.exec(`"${l}"`,i)}else{const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${s}' -DestinationPath '${a}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${s}', '${a}', $true) }`].join(" ");const i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const l=yield A.which("powershell",true);u.debug(`Using powershell at path: ${l}`);yield S.exec(`"${l}"`,i)}}))}function extractZipNix(r,i){return p(this,void 0,void 0,(function*(){const s=yield A.which("unzip",true);const a=[r];if(!u.isDebug()){a.unshift("-q")}a.unshift("-o");yield S.exec(`"${s}"`,a,{cwd:i})}))}function cacheDir(r,i,s,a){return p(this,void 0,void 0,(function*(){s=C.clean(s)||s;a=a||E.arch();u.debug(`Caching tool ${i} ${s} ${a}`);u.debug(`source dir: ${r}`);if(!h.statSync(r).isDirectory()){throw new Error("sourceDir is not a directory")}const l=yield _createToolPath(i,s,a);for(const i of h.readdirSync(r)){const s=y.join(r,i);yield A.cp(s,l,{recursive:true})}_completeToolPath(i,s,a);return l}))}i.cacheDir=cacheDir;function cacheFile(r,i,s,a,l){return p(this,void 0,void 0,(function*(){a=C.clean(a)||a;l=l||E.arch();u.debug(`Caching tool ${s} ${a} ${l}`);u.debug(`source file: ${r}`);if(!h.statSync(r).isFile()){throw new Error("sourceFile is not a file")}const c=yield _createToolPath(s,a,l);const p=y.join(c,i);u.debug(`destination file ${p}`);yield A.cp(r,p);_completeToolPath(s,a,l);return c}))}i.cacheFile=cacheFile;function find(r,i,s){if(!r){throw new Error("toolName parameter is required")}if(!i){throw new Error("versionSpec parameter is required")}s=s||E.arch();if(!isExplicitVersion(i)){const a=findAllVersions(r,s);const l=evaluateVersions(a,i);i=l}let a="";if(i){i=C.clean(i)||"";const l=y.join(_getCacheDirectory(),r,i,s);u.debug(`checking cache: ${l}`);if(h.existsSync(l)&&h.existsSync(`${l}.complete`)){u.debug(`Found tool in cache ${r} ${i} ${s}`);a=l}else{u.debug("not found")}}return a}i.find=find;function findAllVersions(r,i){const s=[];i=i||E.arch();const a=y.join(_getCacheDirectory(),r);if(h.existsSync(a)){const r=h.readdirSync(a);for(const l of r){if(isExplicitVersion(l)){const r=y.join(a,l,i||"");if(h.existsSync(r)&&h.existsSync(`${r}.complete`)){s.push(l)}}}}return s}i.findAllVersions=findAllVersions;function getManifestFromRepo(r,i,s,a="master"){return p(this,void 0,void 0,(function*(){let l=[];const c=`https://api.github.com/repos/${r}/${i}/git/trees/${a}`;const p=new b.HttpClient("tool-cache");const d={};if(s){u.debug("set auth");d.authorization=s}const A=yield p.getJson(c,d);if(!A.result){return l}let h="";for(const r of A.result.tree){if(r.path==="versions-manifest.json"){h=r.url;break}}d["accept"]="application/vnd.github.VERSION.raw";let g=yield(yield p.get(h,d)).readBody();if(g){g=g.replace(/^\uFEFF/,"");try{l=JSON.parse(g)}catch(r){u.debug("Invalid json")}}return l}))}i.getManifestFromRepo=getManifestFromRepo;function findFromManifest(r,i,s,a=E.arch()){return p(this,void 0,void 0,(function*(){const l=yield g._findMatch(r,i,s,a);return l}))}i.findFromManifest=findFromManifest;function _createExtractFolder(r){return p(this,void 0,void 0,(function*(){if(!r){r=y.join(_getTempDirectory(),B.default())}yield A.mkdirP(r);return r}))}function _createToolPath(r,i,s){return p(this,void 0,void 0,(function*(){const a=y.join(_getCacheDirectory(),r,C.clean(i)||i,s||"");u.debug(`destination ${a}`);const l=`${a}.complete`;yield A.rmRF(a);yield A.rmRF(l);yield A.mkdirP(a);return a}))}function _completeToolPath(r,i,s){const a=y.join(_getCacheDirectory(),r,C.clean(i)||i,s||"");const l=`${a}.complete`;h.writeFileSync(l,"");u.debug("finished caching tool")}function isExplicitVersion(r){const i=C.clean(r)||"";u.debug(`isExplicit: ${i}`);const s=C.valid(i)!=null;u.debug(`explicit? ${s}`);return s}i.isExplicitVersion=isExplicitVersion;function evaluateVersions(r,i){let s="";u.debug(`evaluating ${r.length} versions`);r=r.sort(((r,i)=>{if(C.gt(r,i)){return 1}return-1}));for(let a=r.length-1;a>=0;a--){const l=r[a];const c=C.satisfies(l,i);if(c){s=l;break}}if(s){u.debug(`matched: ${s}`)}else{u.debug("match not found")}return s}i.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const r=process.env["RUNNER_TOOL_CACHE"]||"";I.ok(r,"Expected RUNNER_TOOL_CACHE to be defined");return r}function _getTempDirectory(){const r=process.env["RUNNER_TEMP"]||"";I.ok(r,"Expected RUNNER_TEMP to be defined");return r}function _getGlobal(r,i){const s=global[r];return s!==undefined?s:i}function _unique(r){return Array.from(new Set(r))}},70562:(r,i)=>{i=r.exports=SemVer;var s;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){s=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{s=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";var a=256;var l=Number.MAX_SAFE_INTEGER||9007199254740991;var c=16;var p=a-6;var d=i.re=[];var u=i.safeRe=[];var A=i.src=[];var h=i.tokens={};var g=0;function tok(r){h[r]=g++}var E="[a-zA-Z0-9-]";var y=[["\\s",1],["\\d",a],[E,p]];function makeSafeRe(r){for(var i=0;i)?=?)";tok("XRANGEIDENTIFIERLOOSE");A[h.XRANGEIDENTIFIERLOOSE]=A[h.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");A[h.XRANGEIDENTIFIER]=A[h.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");A[h.XRANGEPLAIN]="[v=\\s]*("+A[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIER]+")"+"(?:"+A[h.PRERELEASE]+")?"+A[h.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");A[h.XRANGEPLAINLOOSE]="[v=\\s]*("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+A[h.PRERELEASELOOSE]+")?"+A[h.BUILD]+"?"+")?)?";tok("XRANGE");A[h.XRANGE]="^"+A[h.GTLT]+"\\s*"+A[h.XRANGEPLAIN]+"$";tok("XRANGELOOSE");A[h.XRANGELOOSE]="^"+A[h.GTLT]+"\\s*"+A[h.XRANGEPLAINLOOSE]+"$";tok("COERCE");A[h.COERCE]="(^|[^\\d])"+"(\\d{1,"+c+"})"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");d[h.COERCERTL]=new RegExp(A[h.COERCE],"g");u[h.COERCERTL]=new RegExp(makeSafeRe(A[h.COERCE]),"g");tok("LONETILDE");A[h.LONETILDE]="(?:~>?)";tok("TILDETRIM");A[h.TILDETRIM]="(\\s*)"+A[h.LONETILDE]+"\\s+";d[h.TILDETRIM]=new RegExp(A[h.TILDETRIM],"g");u[h.TILDETRIM]=new RegExp(makeSafeRe(A[h.TILDETRIM]),"g");var b="$1~";tok("TILDE");A[h.TILDE]="^"+A[h.LONETILDE]+A[h.XRANGEPLAIN]+"$";tok("TILDELOOSE");A[h.TILDELOOSE]="^"+A[h.LONETILDE]+A[h.XRANGEPLAINLOOSE]+"$";tok("LONECARET");A[h.LONECARET]="(?:\\^)";tok("CARETTRIM");A[h.CARETTRIM]="(\\s*)"+A[h.LONECARET]+"\\s+";d[h.CARETTRIM]=new RegExp(A[h.CARETTRIM],"g");u[h.CARETTRIM]=new RegExp(makeSafeRe(A[h.CARETTRIM]),"g");var C="$1^";tok("CARET");A[h.CARET]="^"+A[h.LONECARET]+A[h.XRANGEPLAIN]+"$";tok("CARETLOOSE");A[h.CARETLOOSE]="^"+A[h.LONECARET]+A[h.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");A[h.COMPARATORLOOSE]="^"+A[h.GTLT]+"\\s*("+A[h.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");A[h.COMPARATOR]="^"+A[h.GTLT]+"\\s*("+A[h.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");A[h.COMPARATORTRIM]="(\\s*)"+A[h.GTLT]+"\\s*("+A[h.LOOSEPLAIN]+"|"+A[h.XRANGEPLAIN]+")";d[h.COMPARATORTRIM]=new RegExp(A[h.COMPARATORTRIM],"g");u[h.COMPARATORTRIM]=new RegExp(makeSafeRe(A[h.COMPARATORTRIM]),"g");var v="$1$2$3";tok("HYPHENRANGE");A[h.HYPHENRANGE]="^\\s*("+A[h.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+A[h.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");A[h.HYPHENRANGELOOSE]="^\\s*("+A[h.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+A[h.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");A[h.STAR]="(<|>)?=?\\s*\\*";for(var w=0;wa){return null}var s=i.loose?u[h.LOOSE]:u[h.FULL];if(!s.test(r)){return null}try{return new SemVer(r,i)}catch(r){return null}}i.valid=valid;function valid(r,i){var s=parse(r,i);return s?s.version:null}i.clean=clean;function clean(r,i){var s=parse(r.trim().replace(/^[=v]+/,""),i);return s?s.version:null}i.SemVer=SemVer;function SemVer(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof SemVer){if(r.loose===i.loose){return r}else{r=r.version}}else if(typeof r!=="string"){throw new TypeError("Invalid Version: "+r)}if(r.length>a){throw new TypeError("version is longer than "+a+" characters")}if(!(this instanceof SemVer)){return new SemVer(r,i)}s("SemVer",r,i);this.options=i;this.loose=!!i.loose;var c=r.trim().match(i.loose?u[h.LOOSE]:u[h.FULL]);if(!c){throw new TypeError("Invalid Version: "+r)}this.raw=r;this.major=+c[1];this.minor=+c[2];this.patch=+c[3];if(this.major>l||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>l||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>l||this.patch<0){throw new TypeError("Invalid patch version")}if(!c[4]){this.prerelease=[]}else{this.prerelease=c[4].split(".").map((function(r){if(/^[0-9]+$/.test(r)){var i=+r;if(i>=0&&i=0){if(typeof this.prerelease[s]==="number"){this.prerelease[s]++;s=-2}}if(s===-1){this.prerelease.push(0)}}if(i){if(this.prerelease[0]===i){if(isNaN(this.prerelease[1])){this.prerelease=[i,0]}}else{this.prerelease=[i,0]}}break;default:throw new Error("invalid increment argument: "+r)}this.format();this.raw=this.version;return this};i.inc=inc;function inc(r,i,s,a){if(typeof s==="string"){a=s;s=undefined}try{return new SemVer(r,s).inc(i,a).version}catch(r){return null}}i.diff=diff;function diff(r,i){if(eq(r,i)){return null}else{var s=parse(r);var a=parse(i);var l="";if(s.prerelease.length||a.prerelease.length){l="pre";var c="prerelease"}for(var p in s){if(p==="major"||p==="minor"||p==="patch"){if(s[p]!==a[p]){return l+p}}}return c}}i.compareIdentifiers=compareIdentifiers;var I=/^[0-9]+$/;function compareIdentifiers(r,i){var s=I.test(r);var a=I.test(i);if(s&&a){r=+r;i=+i}return r===i?0:s&&!a?-1:a&&!s?1:r0}i.lt=lt;function lt(r,i,s){return compare(r,i,s)<0}i.eq=eq;function eq(r,i,s){return compare(r,i,s)===0}i.neq=neq;function neq(r,i,s){return compare(r,i,s)!==0}i.gte=gte;function gte(r,i,s){return compare(r,i,s)>=0}i.lte=lte;function lte(r,i,s){return compare(r,i,s)<=0}i.cmp=cmp;function cmp(r,i,s,a){switch(i){case"===":if(typeof r==="object")r=r.version;if(typeof s==="object")s=s.version;return r===s;case"!==":if(typeof r==="object")r=r.version;if(typeof s==="object")s=s.version;return r!==s;case"":case"=":case"==":return eq(r,s,a);case"!=":return neq(r,s,a);case">":return gt(r,s,a);case">=":return gte(r,s,a);case"<":return lt(r,s,a);case"<=":return lte(r,s,a);default:throw new TypeError("Invalid operator: "+i)}}i.Comparator=Comparator;function Comparator(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}if(!(this instanceof Comparator)){return new Comparator(r,i)}r=r.trim().split(/\s+/).join(" ");s("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===B){this.value=""}else{this.value=this.operator+this.semver.version}s("comp",this)}var B={};Comparator.prototype.parse=function(r){var i=this.options.loose?u[h.COMPARATORLOOSE]:u[h.COMPARATOR];var s=r.match(i);if(!s){throw new TypeError("Invalid comparator: "+r)}this.operator=s[1]!==undefined?s[1]:"";if(this.operator==="="){this.operator=""}if(!s[2]){this.semver=B}else{this.semver=new SemVer(s[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(r){s("Comparator.test",r,this.options.loose);if(this.semver===B||r===B){return true}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}return cmp(r,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}var s;if(this.operator===""){if(this.value===""){return true}s=new Range(r.value,i);return satisfies(this.value,s,i)}else if(r.operator===""){if(r.value===""){return true}s=new Range(this.value,i);return satisfies(r.semver,s,i)}var a=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">");var l=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<");var c=this.semver.version===r.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<=");var d=cmp(this.semver,"<",r.semver,i)&&((this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"));var u=cmp(this.semver,">",r.semver,i)&&((this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">"));return a||l||c&&p||d||u};i.Range=Range;function Range(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof Comparator){return new Range(r.value,i)}if(!(this instanceof Range)){return new Range(r,i)}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(r){return this.parseRange(r.trim())}),this).filter((function(r){return r.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(r){return r.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(r){var i=this.options.loose;var a=i?u[h.HYPHENRANGELOOSE]:u[h.HYPHENRANGE];r=r.replace(a,hyphenReplace);s("hyphen replace",r);r=r.replace(u[h.COMPARATORTRIM],v);s("comparator trim",r,u[h.COMPARATORTRIM]);r=r.replace(u[h.TILDETRIM],b);r=r.replace(u[h.CARETTRIM],C);r=r.split(/\s+/).join(" ");var l=i?u[h.COMPARATORLOOSE]:u[h.COMPARATOR];var c=r.split(" ").map((function(r){return parseComparator(r,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){c=c.filter((function(r){return!!r.match(l)}))}c=c.map((function(r){return new Comparator(r,this.options)}),this);return c};Range.prototype.intersects=function(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(s){return isSatisfiable(s,i)&&r.set.some((function(r){return isSatisfiable(r,i)&&s.every((function(s){return r.every((function(r){return s.intersects(r,i)}))}))}))}))};function isSatisfiable(r,i){var s=true;var a=r.slice();var l=a.pop();while(s&&a.length){s=a.every((function(r){return l.intersects(r,i)}));l=a.pop()}return s}i.toComparators=toComparators;function toComparators(r,i){return new Range(r,i).set.map((function(r){return r.map((function(r){return r.value})).join(" ").trim().split(" ")}))}function parseComparator(r,i){s("comp",r,i);r=replaceCarets(r,i);s("caret",r);r=replaceTildes(r,i);s("tildes",r);r=replaceXRanges(r,i);s("xrange",r);r=replaceStars(r,i);s("stars",r);return r}function isX(r){return!r||r.toLowerCase()==="x"||r==="*"}function replaceTildes(r,i){return r.trim().split(/\s+/).map((function(r){return replaceTilde(r,i)})).join(" ")}function replaceTilde(r,i){var a=i.loose?u[h.TILDELOOSE]:u[h.TILDE];return r.replace(a,(function(i,a,l,c,p){s("tilde",r,i,a,l,c,p);var d;if(isX(a)){d=""}else if(isX(l)){d=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(isX(c)){d=">="+a+"."+l+".0 <"+a+"."+(+l+1)+".0"}else if(p){s("replaceTilde pr",p);d=">="+a+"."+l+"."+c+"-"+p+" <"+a+"."+(+l+1)+".0"}else{d=">="+a+"."+l+"."+c+" <"+a+"."+(+l+1)+".0"}s("tilde return",d);return d}))}function replaceCarets(r,i){return r.trim().split(/\s+/).map((function(r){return replaceCaret(r,i)})).join(" ")}function replaceCaret(r,i){s("caret",r,i);var a=i.loose?u[h.CARETLOOSE]:u[h.CARET];return r.replace(a,(function(i,a,l,c,p){s("caret",r,i,a,l,c,p);var d;if(isX(a)){d=""}else if(isX(l)){d=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(isX(c)){if(a==="0"){d=">="+a+"."+l+".0 <"+a+"."+(+l+1)+".0"}else{d=">="+a+"."+l+".0 <"+(+a+1)+".0.0"}}else if(p){s("replaceCaret pr",p);if(a==="0"){if(l==="0"){d=">="+a+"."+l+"."+c+"-"+p+" <"+a+"."+l+"."+(+c+1)}else{d=">="+a+"."+l+"."+c+"-"+p+" <"+a+"."+(+l+1)+".0"}}else{d=">="+a+"."+l+"."+c+"-"+p+" <"+(+a+1)+".0.0"}}else{s("no pr");if(a==="0"){if(l==="0"){d=">="+a+"."+l+"."+c+" <"+a+"."+l+"."+(+c+1)}else{d=">="+a+"."+l+"."+c+" <"+a+"."+(+l+1)+".0"}}else{d=">="+a+"."+l+"."+c+" <"+(+a+1)+".0.0"}}s("caret return",d);return d}))}function replaceXRanges(r,i){s("replaceXRanges",r,i);return r.split(/\s+/).map((function(r){return replaceXRange(r,i)})).join(" ")}function replaceXRange(r,i){r=r.trim();var a=i.loose?u[h.XRANGELOOSE]:u[h.XRANGE];return r.replace(a,(function(a,l,c,p,d,u){s("xRange",r,a,l,c,p,d,u);var A=isX(c);var h=A||isX(p);var g=h||isX(d);var E=g;if(l==="="&&E){l=""}u=i.includePrerelease?"-0":"";if(A){if(l===">"||l==="<"){a="<0.0.0-0"}else{a="*"}}else if(l&&E){if(h){p=0}d=0;if(l===">"){l=">=";if(h){c=+c+1;p=0;d=0}else{p=+p+1;d=0}}else if(l==="<="){l="<";if(h){c=+c+1}else{p=+p+1}}a=l+c+"."+p+"."+d+u}else if(h){a=">="+c+".0.0"+u+" <"+(+c+1)+".0.0"+u}else if(g){a=">="+c+"."+p+".0"+u+" <"+c+"."+(+p+1)+".0"+u}s("xRange return",a);return a}))}function replaceStars(r,i){s("replaceStars",r,i);return r.trim().replace(u[h.STAR],"")}function hyphenReplace(r,i,s,a,l,c,p,d,u,A,h,g,E){if(isX(s)){i=""}else if(isX(a)){i=">="+s+".0.0"}else if(isX(l)){i=">="+s+"."+a+".0"}else{i=">="+i}if(isX(u)){d=""}else if(isX(A)){d="<"+(+u+1)+".0.0"}else if(isX(h)){d="<"+u+"."+(+A+1)+".0"}else if(g){d="<="+u+"."+A+"."+h+"-"+g}else{d="<="+d}return(i+" "+d).trim()}Range.prototype.test=function(r){if(!r){return false}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}for(var i=0;i0){var c=r[l].semver;if(c.major===i.major&&c.minor===i.minor&&c.patch===i.patch){return true}}}return false}return true}i.satisfies=satisfies;function satisfies(r,i,s){try{i=new Range(i,s)}catch(r){return false}return i.test(r)}i.maxSatisfying=maxSatisfying;function maxSatisfying(r,i,s){var a=null;var l=null;try{var c=new Range(i,s)}catch(r){return null}r.forEach((function(r){if(c.test(r)){if(!a||l.compare(r)===-1){a=r;l=new SemVer(a,s)}}}));return a}i.minSatisfying=minSatisfying;function minSatisfying(r,i,s){var a=null;var l=null;try{var c=new Range(i,s)}catch(r){return null}r.forEach((function(r){if(c.test(r)){if(!a||l.compare(r)===1){a=r;l=new SemVer(a,s)}}}));return a}i.minVersion=minVersion;function minVersion(r,i){r=new Range(r,i);var s=new SemVer("0.0.0");if(r.test(s)){return s}s=new SemVer("0.0.0-0");if(r.test(s)){return s}s=null;for(var a=0;a":if(i.prerelease.length===0){i.patch++}else{i.prerelease.push(0)}i.raw=i.format();case"":case">=":if(!s||gt(s,i)){s=i}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+r.operator)}}))}if(s&&r.test(s)){return s}return null}i.validRange=validRange;function validRange(r,i){try{return new Range(r,i).range||"*"}catch(r){return null}}i.ltr=ltr;function ltr(r,i,s){return outside(r,i,"<",s)}i.gtr=gtr;function gtr(r,i,s){return outside(r,i,">",s)}i.outside=outside;function outside(r,i,s,a){r=new SemVer(r,a);i=new Range(i,a);var l,c,p,d,u;switch(s){case">":l=gt;c=lte;p=lt;d=">";u=">=";break;case"<":l=lt;c=gte;p=gt;d="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(r,i,a)){return false}for(var A=0;A=0.0.0")}g=g||r;E=E||r;if(l(r.semver,g.semver,a)){g=r}else if(p(r.semver,E.semver,a)){E=r}}));if(g.operator===d||g.operator===u){return false}if((!E.operator||E.operator===d)&&c(r,E.semver)){return false}else if(E.operator===u&&p(r,E.semver)){return false}}return true}i.prerelease=prerelease;function prerelease(r,i){var s=parse(r,i);return s&&s.prerelease.length?s.prerelease:null}i.intersects=intersects;function intersects(r,i,s){r=new Range(r,s);i=new Range(i,s);return r.intersects(i)}i.coerce=coerce;function coerce(r,i){if(r instanceof SemVer){return r}if(typeof r==="number"){r=String(r)}if(typeof r!=="string"){return null}i=i||{};var s=null;if(!i.rtl){s=r.match(u[h.COERCE])}else{var a;while((a=u[h.COERCERTL].exec(r))&&(!s||s.index+s[0].length!==r.length)){if(!s||a.index+a[0].length!==s.index+s[0].length){s=a}u[h.COERCERTL].lastIndex=a.index+a[1].length+a[2].length}u[h.COERCERTL].lastIndex=-1}if(s===null){return null}return parse(s[2]+"."+(s[3]||"0")+"."+(s[4]||"0"),i)}},52557:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s=new WeakMap;const a=new WeakMap;class AbortSignal{constructor(){this.onabort=null;s.set(this,[]);a.set(this,false)}get aborted(){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return a.get(this)}static get none(){return new AbortSignal}addEventListener(r,i){if(!s.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const a=s.get(this);a.push(i)}removeEventListener(r,i){if(!s.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const a=s.get(this);const l=a.indexOf(i);if(l>-1){a.splice(l,1)}}dispatchEvent(r){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(r){if(r.aborted){return}if(r.onabort){r.onabort.call(r)}const i=s.get(r);if(i){i.slice().forEach((i=>{i.call(r,{type:"abort"})}))}a.set(r,true)}class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}class AbortController{constructor(r){this._signal=new AbortSignal;if(!r){return}if(!Array.isArray(r)){r=arguments}for(const i of r){if(i.aborted){this.abort()}else{i.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(r){const i=new AbortSignal;const s=setTimeout(abortSignal,r,i);if(typeof s.unref==="function"){s.unref()}return i}}i.AbortController=AbortController;i.AbortError=AbortError;i.AbortSignal=AbortSignal},39645:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(51333);class AzureKeyCredential{get key(){return this._key}constructor(r){if(!r){throw new Error("key must be a non-empty string")}this._key=r}update(r){this._key=r}}class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(r,i){if(!r||!i){throw new TypeError("name and key must be non-empty strings")}this._name=r;this._key=i}update(r,i){if(!r||!i){throw new TypeError("newName and newKey must be non-empty strings")}this._name=r;this._key=i}}function isNamedKeyCredential(r){return a.isObjectWithProperties(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}class AzureSASCredential{get signature(){return this._signature}constructor(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}update(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}}function isSASCredential(r){return a.isObjectWithProperties(r,["signature"])&&typeof r.signature==="string"}function isTokenCredential(r){const i=r;return i&&typeof i.getToken==="function"&&(i.signRequest===undefined||i.getToken.length>0)}i.AzureKeyCredential=AzureKeyCredential;i.AzureNamedKeyCredential=AzureNamedKeyCredential;i.AzureSASCredential=AzureSASCredential;i.isNamedKeyCredential=isNamedKeyCredential;i.isSASCredential=isSASCredential;i.isTokenCredential=isTokenCredential},24607:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(43415);var l=s(73837);var c=s(4351);var p=s(66189);var d=s(51333);var u=s(3233);var A=s(39645);var h=s(22037);var g=s(13685);var E=s(95687);var y=s(52557);var b=s(74294);var C=s(12781);var v=s(64334);var w=s(80467);var I=s(94175);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(s){if(s!=="default"){var a=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(i,s,a.get?a:{enumerable:true,get:function(){return r[s]}})}}))}i["default"]=r;return Object.freeze(i)}var B=_interopNamespace(p);var S=_interopNamespace(h);var Q=_interopNamespace(g);var x=_interopNamespace(E);var R=_interopNamespace(b);var T=_interopDefaultLegacy(v);var N=_interopDefaultLegacy(w);function getHeaderKey(r){return r.toLowerCase()}function isHttpHeadersLike(r){if(r&&typeof r==="object"){const i=r;if(typeof i.rawHeaders==="function"&&typeof i.clone==="function"&&typeof i.get==="function"&&typeof i.set==="function"&&typeof i.contains==="function"&&typeof i.remove==="function"&&typeof i.headersArray==="function"&&typeof i.headerValues==="function"&&typeof i.headerNames==="function"&&typeof i.toJson==="function"){return true}}return false}class HttpHeaders{constructor(r){this._headersMap={};if(r){for(const i in r){this.set(i,r[i])}}}set(r,i){this._headersMap[getHeaderKey(r)]={name:r,value:i.toString().trim()}}get(r){const i=this._headersMap[getHeaderKey(r)];return!i?undefined:i.value}contains(r){return!!this._headersMap[getHeaderKey(r)]}remove(r){const i=this.contains(r);delete this._headersMap[getHeaderKey(r)];return i}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const r=[];for(const i in this._headersMap){r.push(this._headersMap[i])}return r}headerNames(){const r=[];const i=this.headersArray();for(let s=0;s{s=s.then(r)}));return s}function promiseToCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return i=>{r.then((r=>i(undefined,r))).catch((r=>{i(r)}))}}function promiseToServiceCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return i=>{r.then((r=>process.nextTick(i,undefined,r.parsedBody,r.request,r))).catch((r=>{process.nextTick(i,r)}))}}function prepareXMLRootList(r,i,s,a){if(!Array.isArray(r)){r=[r]}if(!s||!a){return{[i]:r}}const l={[i]:r};l[k]={[s]:a};return l}function applyMixins(r,i){const s=r;i.forEach((r=>{Object.getOwnPropertyNames(r.prototype).forEach((i=>{s.prototype[i]=r.prototype[i]}))}))}const P=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(r){return P.test(r)}function replaceAll(r,i,s){return!r||!i?r:r.split(i).join(s||"")}function isPrimitiveType(r){return typeof r!=="object"&&typeof r!=="function"||r===null}function getEnvironmentValue(r){if(process.env[r]){return process.env[r]}else if(process.env[r.toLowerCase()]){return process.env[r.toLowerCase()]}return undefined}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}class Serializer{constructor(r={},i){this.modelMappers=r;this.isXML=i}validateConstraints(r,i,s){const failValidation=(r,a)=>{throw new Error(`"${s}" with value "${i}" should satisfy the constraint "${r}": ${a}.`)};if(r.constraints&&i!=undefined){const s=i;const{ExclusiveMaximum:a,ExclusiveMinimum:l,InclusiveMaximum:c,InclusiveMinimum:p,MaxItems:d,MaxLength:u,MinItems:A,MinLength:h,MultipleOf:g,Pattern:E,UniqueItems:y}=r.constraints;if(a!=undefined&&s>=a){failValidation("ExclusiveMaximum",a)}if(l!=undefined&&s<=l){failValidation("ExclusiveMinimum",l)}if(c!=undefined&&s>c){failValidation("InclusiveMaximum",c)}if(p!=undefined&&sd){failValidation("MaxItems",d)}if(u!=undefined&&b.length>u){failValidation("MaxLength",u)}if(A!=undefined&&b.lengths.indexOf(r)!==i))){failValidation("UniqueItems",y)}}}serialize(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:D};let u={};const A=r.type.name;if(!s){s=r.serializedName}if(A.match(/^Sequence$/i)!==null){u=[]}if(r.isConstant){i=r.defaultValue}const{required:h,nullable:g}=r;if(h&&g&&i===undefined){throw new Error(`${s} cannot be undefined.`)}if(h&&!g&&i==undefined){throw new Error(`${s} cannot be null or undefined.`)}if(!h&&g===false&&i===null){throw new Error(`${s} cannot be null.`)}if(i==undefined){u=i}else{if(A.match(/^any$/i)!==null){u=i}else if(A.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){u=serializeBasicTypes(A,s,i)}else if(A.match(/^Enum$/i)!==null){const a=r;u=serializeEnumType(s,a.type.allowedValues,i)}else if(A.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){u=serializeDateTypes(A,i,s)}else if(A.match(/^ByteArray$/i)!==null){u=serializeByteArrayType(s,i)}else if(A.match(/^Base64Url$/i)!==null){u=serializeBase64UrlType(s,i)}else if(A.match(/^Sequence$/i)!==null){u=serializeSequenceType(this,r,i,s,Boolean(this.isXML),d)}else if(A.match(/^Dictionary$/i)!==null){u=serializeDictionaryType(this,r,i,s,Boolean(this.isXML),d)}else if(A.match(/^Composite$/i)!==null){u=serializeCompositeType(this,r,i,s,Boolean(this.isXML),d)}}return u}deserialize(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:D};if(i==undefined){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){i=[]}if(r.defaultValue!==undefined){i=r.defaultValue}return i}let u;const A=r.type.name;if(!s){s=r.serializedName}if(A.match(/^Composite$/i)!==null){u=deserializeCompositeType(this,r,i,s,d)}else{if(this.isXML){const r=d.xmlCharKey;const s=i;if(s[k]!=undefined&&s[r]!=undefined){i=s[r]}}if(A.match(/^Number$/i)!==null){u=parseFloat(i);if(isNaN(u)){u=i}}else if(A.match(/^Boolean$/i)!==null){if(i==="true"){u=true}else if(i==="false"){u=false}else{u=i}}else if(A.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){u=i}else if(A.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){u=new Date(i)}else if(A.match(/^UnixTime$/i)!==null){u=unixTimeToDate(i)}else if(A.match(/^ByteArray$/i)!==null){u=decodeString(i)}else if(A.match(/^Base64Url$/i)!==null){u=base64UrlToByteArray(i)}else if(A.match(/^Sequence$/i)!==null){u=deserializeSequenceType(this,r,i,s,d)}else if(A.match(/^Dictionary$/i)!==null){u=deserializeDictionaryType(this,r,i,s,d)}}if(r.isConstant){u=r.defaultValue}return u}}function trimEnd(r,i){let s=r.length;while(s-1>=0&&r[s-1]===i){--s}return r.substr(0,s)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const i=encodeByteArray(r);return trimEnd(i,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const i=[];let s="";if(r){const a=r.split(".");for(const r of a){if(r.charAt(r.length-1)==="\\"){s+=r.substr(0,r.length-1)+"."}else{s+=r;i.push(s);s=""}}}return i}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,i,s){if(s!==null&&s!==undefined){if(r.match(/^Number$/i)!==null){if(typeof s!=="number"){throw new Error(`${i} with value ${s} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof s.valueOf()!=="string"){throw new Error(`${i} with value "${s}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof s.valueOf()==="string"&&isValidUuid(s))){throw new Error(`${i} with value "${s}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof s!=="boolean"){throw new Error(`${i} with value ${s} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof s;if(r!=="string"&&r!=="function"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s)&&!((typeof Blob==="function"||typeof Blob==="object")&&s instanceof Blob)){throw new Error(`${i} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return s}function serializeEnumType(r,i,s){if(!i){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const a=i.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===s.toLowerCase()}return r===s}));if(!a){throw new Error(`${s} is not a valid value for ${r}. The valid values are: ${JSON.stringify(i)}.`)}return s}function serializeByteArrayType(r,i){let s="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}s=encodeByteArray(i)}return s}function serializeBase64UrlType(r,i){let s="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}s=bufferToBase64Url(i)||""}return s}function serializeDateTypes(r,i,s){if(i!=undefined){if(r.match(/^Date$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString().substring(0,10):new Date(i).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString():new Date(i).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123 format.`)}i=i instanceof Date?i.toUTCString():new Date(i).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}i=dateToUnixTime(i)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(i)){throw new Error(`${s} must be a string in ISO 8601 format. Instead was "${i}".`)}}}return i}function serializeSequenceType(r,i,s,a,l,c){if(!Array.isArray(s)){throw new Error(`${a} must be of type Array.`)}const p=i.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}const d=[];for(let i=0;ir!==l));if(d){p[l]=r.serialize(u,s[l],a+'["'+l+'"]',c)}}}return p}return s}function getXmlObjectValue(r,i,s,a){if(!s||!r.xmlNamespace){return i}const l=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const c={[l]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(i[k]){return i}else{const r=Object.assign({},i);r[k]=c;return r}}const p={};p[a.xmlCharKey]=i;p[k]=c;return p}function isSpecialXmlProperty(r,i){return[k,i.xmlCharKey].includes(r)}function deserializeCompositeType(r,i,s,a,l){var c,p;const d=(c=l.xmlCharKey)!==null&&c!==void 0?c:D;if(getPolymorphicDiscriminatorRecursively(r,i)){i=getPolymorphicMapper(r,i,s,"serializedName")}const u=resolveModelProperties(r,i,a);let A={};const h=[];for(const c of Object.keys(u)){const g=u[c];const E=splitSerializeName(u[c].serializedName);h.push(E[0]);const{serializedName:y,xmlName:b,xmlElementName:C}=g;let v=a;if(y!==""&&y!==undefined){v=a+"."+y}const w=g.headerCollectionPrefix;if(w){const i={};for(const a of Object.keys(s)){if(a.startsWith(w)){i[a.substring(w.length)]=r.deserialize(g.type.value,s[a],v,l)}h.push(a)}A[c]=i}else if(r.isXML){if(g.xmlIsAttribute&&s[k]){A[c]=r.deserialize(g,s[k][b],v,l)}else if(g.xmlIsMsText){if(s[d]!==undefined){A[c]=s[d]}else if(typeof s==="string"){A[c]=s}}else{const i=C||b||y;if(g.xmlIsWrapped){const i=s[b];const a=(p=i===null||i===void 0?void 0:i[C])!==null&&p!==void 0?p:[];A[c]=r.deserialize(g,a,v,l);h.push(b)}else{const a=s[i];A[c]=r.deserialize(g,a,v,l);h.push(i)}}}else{let a;let p=s;for(const r of E){if(!p)break;p=p[r]}a=p;const d=i.type.polymorphicDiscriminator;if(d&&c===d.clientName&&a==undefined){a=i.serializedName}let h;if(Array.isArray(s[c])&&u[c].serializedName===""){a=s[c];const i=r.deserialize(g,a,v,l);for(const[r,s]of Object.entries(A)){if(!Object.prototype.hasOwnProperty.call(i,r)){i[r]=s}}A=i}else if(a!==undefined||g.defaultValue!==undefined){h=r.deserialize(g,a,v,l);A[c]=h}}}const g=i.type.additionalProperties;if(g){const isAdditionalProperty=r=>{for(const i in u){const s=splitSerializeName(u[i].serializedName);if(s[0]===r){return false}}return true};for(const i in s){if(isAdditionalProperty(i)){A[i]=r.deserialize(g,s[i],a+'["'+i+'"]',l)}}}else if(s){for(const r of Object.keys(s)){if(A[r]===undefined&&!h.includes(r)&&!isSpecialXmlProperty(r,l)){A[r]=s[r]}}}return A}function deserializeDictionaryType(r,i,s,a,l){const c=i.type.value;if(!c||typeof c!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){const i={};for(const p of Object.keys(s)){i[p]=r.deserialize(c,s[p],a,l)}return i}return s}function deserializeSequenceType(r,i,s,a,l){const c=i.type.element;if(!c||typeof c!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){if(!Array.isArray(s)){s=[s]}const i=[];for(let p=0;p0}keys(){return Object.keys(this._rawQuery)}set(r,i){const s=i;if(r){if(s!==undefined&&s!==null){const i=Array.isArray(s)?s:s.toString();this._rawQuery[r]=i}else{delete this._rawQuery[r]}}}get(r){return r?this._rawQuery[r]:undefined}toString(){let r="";for(const i in this._rawQuery){if(r){r+="&"}const s=this._rawQuery[i];if(Array.isArray(s)){const a=[];for(const r of s){a.push(`${i}=${r}`)}r+=a.join("&")}else{r+=`${i}=${s}`}}return r}static parse(r){const i=new URLQuery;if(r){if(r.startsWith("?")){r=r.substring(1)}let s="ParameterName";let a="";let l="";for(let c=0;cisAlphaNumericCharacter(r)))}function readUntilCharacter(r,...i){return readWhile(r,(r=>i.indexOf(r)===-1))}function nextScheme(r){const i=readWhileLetterOrDigit(r);r._currentToken=URLToken.scheme(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="HOST"}}function nextSchemeOrHost(r){const i=readUntilCharacter(r,":","/","?");if(!hasCurrentCharacter(r)){r._currentToken=URLToken.host(i);r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){if(peekCharacters(r,3)==="://"){r._currentToken=URLToken.scheme(i);r._currentState="HOST"}else{r._currentToken=URLToken.host(i);r._currentState="PORT"}}else{r._currentToken=URLToken.host(i);if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}}function nextHost(r){if(peekCharacters(r,3)==="://"){nextCharacter(r,3)}const i=readUntilCharacter(r,":","/","?");r._currentToken=URLToken.host(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){r._currentState="PORT"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPort(r){if(getCurrentCharacter(r)===":"){nextCharacter(r)}const i=readUntilCharacter(r,"/","?");r._currentToken=URLToken.port(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPath(r){const i=readUntilCharacter(r,"?");r._currentToken=URLToken.path(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="QUERY"}}function nextQuery(r){if(getCurrentCharacter(r)==="?"){nextCharacter(r)}const i=readRemaining(r);r._currentToken=URLToken.query(i);r._currentState="DONE"}function createProxyAgent(r,i,s){const a=URLBuilder.parse(i.host).getHost();if(!a){throw new Error("Expecting a non-empty host in proxy settings.")}if(!isValidPort(i.port)){throw new Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.")}const l={proxy:{host:a,port:i.port,headers:s&&s.rawHeaders()||{}}};if(i.username&&i.password){l.proxy.proxyAuth=`${i.username}:${i.password}`}else if(i.username){l.proxy.proxyAuth=`${i.username}`}const c=isUrlHttps(r);const p=isUrlHttps(i.host);const d={isHttps:c,agent:createTunnel(c,p,l)};return d}function isUrlHttps(r){const i=URLBuilder.parse(r).getScheme()||"";return i.toLowerCase()==="https"}function createTunnel(r,i,s){if(r&&i){return R.httpsOverHttps(s)}else if(r&&!i){return R.httpsOverHttp(s)}else if(!r&&i){return R.httpOverHttps(s)}else{return R.httpOverHttp(s)}}function isValidPort(r){return 0<=r&&r<=65535}const M="REDACTED";const U=["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"];const G=["api-version"];class Sanitizer{constructor({allowedHeaderNames:r=[],allowedQueryParameters:i=[]}={}){r=Array.isArray(r)?U.concat(r):U;i=Array.isArray(i)?G.concat(i):G;this.allowedHeaderNames=new Set(r.map((r=>r.toLowerCase())));this.allowedQueryParameters=new Set(i.map((r=>r.toLowerCase())))}sanitize(r){const i=new Set;return JSON.stringify(r,((r,s)=>{if(s instanceof Error){return Object.assign(Object.assign({},s),{name:s.name,message:s.message})}if(r==="_headersMap"){return this.sanitizeHeaders(s)}else if(r==="url"){return this.sanitizeUrl(s)}else if(r==="query"){return this.sanitizeQuery(s)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(s)||isObject(s)){if(i.has(s)){return"[Circular]"}i.add(s)}return s}),2)}sanitizeHeaders(r){return this.sanitizeObject(r,this.allowedHeaderNames,((r,i)=>r[i].value))}sanitizeQuery(r){return this.sanitizeObject(r,this.allowedQueryParameters,((r,i)=>r[i]))}sanitizeObject(r,i,s){if(typeof r!=="object"||r===null){return r}const a={};for(const l of Object.keys(r)){if(i.has(l.toLowerCase())){a[l]=s(r,l)}else{a[l]=M}}return a}sanitizeUrl(r){if(typeof r!=="string"||r===null){return r}const i=URLBuilder.parse(r);const s=i.getQuery();if(!s){return r}const a=URLQuery.parse(s);for(const r of a.keys()){if(!this.allowedQueryParameters.has(r.toLowerCase())){a.set(r,M)}}i.setQuery(a.toString());return i.toString()}}const j=l.inspect.custom;const q=new Sanitizer;class RestError extends Error{constructor(r,i,s,a,l){super(r);this.name="RestError";this.code=i;this.statusCode=s;this.request=a;this.response=l;Object.setPrototypeOf(this,RestError.prototype)}[j](){return`RestError: ${this.message} \n ${q.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const H=u.createClientLogger("core-http");function getCachedAgent(r,i){return r?i.httpsAgent:i.httpAgent}class ReportTransform extends C.Transform{constructor(r){super();this.progressCallback=r;this.loadedBytes=0}_transform(r,i,s){this.push(r);this.loadedBytes+=r.length;this.progressCallback({loadedBytes:this.loadedBytes});s(undefined)}}function isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r,i){return new Promise((s=>{r.once("close",(()=>{i===null||i===void 0?void 0:i.abort();s()}));r.once("end",s);r.once("error",s)}))}function parseHeaders(r){const i=new HttpHeaders;r.forEach(((r,s)=>{i.set(s,r)}));return i}class NodeFetchHttpClient{constructor(){this.proxyAgentMap=new Map;this.keepAliveAgents={}}async sendRequest(r){var i;if(!r&&typeof r!=="object"){throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.")}const s=new y.AbortController;let a;if(r.abortSignal){if(r.abortSignal.aborted){throw new y.AbortError("The operation was aborted.")}a=r=>{if(r.type==="abort"){s.abort()}};r.abortSignal.addEventListener("abort",a)}if(r.timeout){setTimeout((()=>{s.abort()}),r.timeout)}if(r.formData){const i=r.formData;const s=new T["default"];const appendFormValue=(r,i)=>{if(typeof i==="function"){i=i()}if(i&&Object.prototype.hasOwnProperty.call(i,"value")&&Object.prototype.hasOwnProperty.call(i,"options")){s.append(r,i.value,i.options)}else{s.append(r,i)}};for(const r of Object.keys(i)){const s=i[r];if(Array.isArray(s)){for(let i=0;i{var i;(i=r.abortSignal)===null||i===void 0?void 0:i.removeEventListener("abort",a);return})).catch((r=>{H.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}getOrCreateAgent(r){var i;const s=isUrlHttps(r.url);if(r.proxySettings){const{host:a,port:l,username:c,password:p}=r.proxySettings;const d=`${a}:${l}:${c}:${p}`;const u=(i=this.proxyAgentMap.get(d))!==null&&i!==void 0?i:{};let A=getCachedAgent(s,u);if(A){return A}const h=createProxyAgent(r.url,r.proxySettings,r.headers);A=h.agent;if(h.isHttps){u.httpsAgent=h.agent}else{u.httpAgent=h.agent}this.proxyAgentMap.set(d,u);return A}else if(r.keepAlive){let i=getCachedAgent(s,this.keepAliveAgents);if(i){return i}const a={keepAlive:r.keepAlive};if(s){i=this.keepAliveAgents.httpsAgent=new x.Agent(a)}else{i=this.keepAliveAgents.httpAgent=new Q.Agent(a)}return i}else{return s?x.globalAgent:Q.globalAgent}}async fetch(r,i){return N["default"](r,i)}async prepareRequest(r){const i={};i.agent=this.getOrCreateAgent(r);i.compress=r.decompressResponse;return i}async processRequest(r){}}i.HttpPipelineLogLevel=void 0;(function(r){r[r["OFF"]=0]="OFF";r[r["ERROR"]=1]="ERROR";r[r["WARNING"]=2]="WARNING";r[r["INFO"]=3]="INFO"})(i.HttpPipelineLogLevel||(i.HttpPipelineLogLevel={}));function operationOptionsToRequestOptionsBase(r){const{requestOptions:i,tracingOptions:s}=r,a=c.__rest(r,["requestOptions","tracingOptions"]);let l=a;if(i){l=Object.assign(Object.assign({},l),i)}if(s){l.tracingContext=s.tracingContext;l.spanOptions=s===null||s===void 0?void 0:s.spanOptions}return l}class BaseRequestPolicy{constructor(r,i){this._nextPolicy=r;this._options=i}shouldLog(r){return this._options.shouldLog(r)}log(r,i){this._options.log(r,i)}}class RequestPolicyOptions{constructor(r){this._logger=r}shouldLog(r){return!!this._logger&&r!==i.HttpPipelineLogLevel.OFF&&r<=this._logger.minimumLogLevel}log(r,i){if(this._logger&&this.shouldLog(r)){this._logger.log(r,i)}}}const V={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:k,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:undefined,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:undefined,attrValueProcessors:undefined,tagNameProcessors:undefined,valueProcessors:undefined,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:undefined,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false};const z=Object.assign({},V);z.explicitArray=false;const Y=Object.assign({},V);Y.explicitArray=false;Y.renderOpts={pretty:false};function stringifyXML(r,i={}){var s;Y.rootName=i.rootName;Y.charkey=(s=i.xmlCharKey)!==null&&s!==void 0?s:D;const a=new B.Builder(Y);return a.buildObject(r)}function parseXML(r,i={}){var s;z.explicitRoot=!!i.includeRoot;z.charkey=(s=i.xmlCharKey)!==null&&s!==void 0?s:D;const a=new B.Parser(z);return new Promise(((i,s)=>{if(!r){s(new Error("Document is empty"))}else{a.parseString(r,((r,a)=>{if(r){s(r)}else{i(a)}}))}}))}function deserializationPolicy(r,i){return{create:(s,a)=>new DeserializationPolicy(s,a,r,i)}}const W=["application/json","text/json"];const J=["application/xml","application/atom+xml"];const X={expectedContentTypes:{json:W,xml:J}};class DeserializationPolicy extends BaseRequestPolicy{constructor(r,i,s,a={}){var l;super(r,i);this.jsonContentTypes=s&&s.json||W;this.xmlContentTypes=s&&s.xml||J;this.xmlCharKey=(l=a.xmlCharKey)!==null&&l!==void 0?l:D}async sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>deserializeResponseBody(this.jsonContentTypes,this.xmlContentTypes,r,{xmlCharKey:this.xmlCharKey})))}}function getOperationResponse(r){let i;const s=r.request;const a=s.operationSpec;if(a){const l=s.operationResponseGetter;if(!l){i=a.responses[r.status]}else{i=l(a,r)}}return i}function shouldDeserializeResponse(r){const i=r.request.shouldDeserialize;let s;if(i===undefined){s=true}else if(typeof i==="boolean"){s=i}else{s=i(r)}return s}function deserializeResponseBody(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:D};return parse(r,i,s,d).then((r=>{if(!shouldDeserializeResponse(r)){return r}const i=r.request.operationSpec;if(!i||!i.responses){return r}const l=getOperationResponse(r);const{error:c,shouldReturnResponse:p}=handleErrorResponse(r,i,l);if(c){throw c}else if(p){return r}if(l){if(l.bodyMapper){let s=r.parsedBody;if(i.isXML&&l.bodyMapper.type.name===L.Sequence){s=typeof s==="object"?s[l.bodyMapper.xmlElementName]:[]}try{r.parsedBody=i.serializer.deserialize(l.bodyMapper,s,"operationRes.parsedBody",a)}catch(i){const s=new RestError(`Error ${i} occurred in deserializing the responseBody - ${r.bodyAsText}`,undefined,r.status,r.request,r);throw s}}else if(i.httpMethod==="HEAD"){r.parsedBody=s.status>=200&&s.status<300}if(l.headersMapper){r.parsedHeaders=i.serializer.deserialize(l.headersMapper,r.headers.toJson(),"operationRes.parsedHeaders",a)}}return r}))}function isOperationSpecEmpty(r){const i=Object.keys(r.responses);return i.length===0||i.length===1&&i[0]==="default"}function handleErrorResponse(r,i,s){var a;const l=200<=r.status&&r.status<300;const c=isOperationSpecEmpty(i)?l:!!s;if(c){if(s){if(!s.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const p=s!==null&&s!==void 0?s:i.responses.default;const d=((a=r.request.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(r.status))||r.request.streamResponseBody;const u=d?`Unexpected status code: ${r.status}`:r.bodyAsText;const A=new RestError(u,undefined,r.status,r.request,r);if(!p){throw A}const h=p.bodyMapper;const g=p.headersMapper;try{if(r.parsedBody){const s=r.parsedBody;let a;if(h){let r=s;if(i.isXML&&h.type.name===L.Sequence){r=typeof s==="object"?s[h.xmlElementName]:[]}a=i.serializer.deserialize(h,r,"error.response.parsedBody")}const l=s.error||a||s;A.code=l.code;if(l.message){A.message=l.message}if(h){A.response.parsedBody=a}}if(r.headers&&g){A.response.parsedHeaders=i.serializer.deserialize(g,r.headers.toJson(),"operationRes.parsedHeaders")}}catch(i){A.message=`Error "${i.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:A,shouldReturnResponse:false}}function parse(r,i,s,a){var l;const errorHandler=r=>{const i=`Error "${r}" occurred while parsing the response body - ${s.bodyAsText}.`;const a=r.code||RestError.PARSE_ERROR;const l=new RestError(i,a,s.status,s.request,s);return Promise.reject(l)};const c=((l=s.request.streamResponseStatusCodes)===null||l===void 0?void 0:l.has(s.status))||s.request.streamResponseBody;if(!c&&s.bodyAsText){const l=s.bodyAsText;const c=s.headers.get("Content-Type")||"";const p=!c?[]:c.split(";").map((r=>r.toLowerCase()));if(p.length===0||p.some((i=>r.indexOf(i)!==-1))){return new Promise((r=>{s.parsedBody=JSON.parse(l);r(s)})).catch(errorHandler)}else if(p.some((r=>i.indexOf(r)!==-1))){return parseXML(l,a).then((r=>{s.parsedBody=r;return s})).catch(errorHandler)}}return Promise.resolve(s)}const $={enable:true};function keepAlivePolicy(r){return{create:(i,s)=>new KeepAlivePolicy(i,s,r||$)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.keepAliveOptions=s}async sendRequest(r){r.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(r)}}const K=["GET","HEAD"];const Z={handleRedirects:true,maxRetries:20};function redirectPolicy(r=20){return{create:(i,s)=>new RedirectPolicy(i,s,r)}}class RedirectPolicy extends BaseRequestPolicy{constructor(r,i,s=20){super(r,i);this.maxRetries=s}sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>handleRedirect(this,r,0)))}}function handleRedirect(r,i,s){const{request:a,status:l}=i;const c=i.headers.get("location");if(c&&(l===300||l===301&&K.includes(a.method)||l===302&&K.includes(a.method)||l===303&&a.method==="POST"||l===307)&&(!r.maxRetries||shandleRedirect(r,i,s+1)))}return Promise.resolve(i)}const ee=3;const te=1e3*30;const re=1e3*90;const ie=1e3*3;function isNumber(r){return typeof r==="number"}function shouldRetry(r,i,s,a,l){if(!i(a,l)){return false}return s.retryCountnew ExponentialRetryPolicy(a,l,r,i,s)}}i.RetryMode=void 0;(function(r){r[r["Exponential"]=0]="Exponential"})(i.RetryMode||(i.RetryMode={}));const ne={maxRetries:ee,retryDelayInMs:te,maxRetryDelayInMs:re};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(r,i,s,a,l){super(r,i);this.retryCount=isNumber(s)?s:ee;this.retryInterval=isNumber(a)?a:te;this.maxRetryInterval=isNumber(l)?l:re}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>retry$1(this,r,i))).catch((i=>retry$1(this,r,i.response,undefined,i)))}}async function retry$1(r,i,s,a,l){function shouldPolicyRetry(r){const i=r===null||r===void 0?void 0:r.status;if(i===503&&(s===null||s===void 0?void 0:s.headers.get(_.HeaderConstants.RETRY_AFTER))){return false}if(i===undefined||i<500&&i!==408||i===501||i===505){return false}return true}a=updateRetryData({retryInterval:r.retryInterval,minRetryInterval:0,maxRetryInterval:r.maxRetryInterval},a,l);const c=i.abortSignal&&i.abortSignal.aborted;if(!c&&shouldRetry(r.retryCount,shouldPolicyRetry,a,s)){H.info(`Retrying request in ${a.retryInterval}`);try{await d.delay(a.retryInterval);const s=await r._nextPolicy.sendRequest(i.clone());return retry$1(r,i,s,a)}catch(l){return retry$1(r,i,s,a,l)}}else if(c||l||!s){const r=a.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,s&&s.status,s&&s.request,s);throw r}else{return s}}function logPolicy(r={}){return{create:(i,s)=>new LogPolicy(i,s,r)}}class LogPolicy extends BaseRequestPolicy{constructor(r,i,{logger:s=H.info,allowedHeaderNames:a=[],allowedQueryParameters:l=[]}={}){super(r,i);this.logger=s;this.sanitizer=new Sanitizer({allowedHeaderNames:a,allowedQueryParameters:l})}get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(r){this.sanitizer.allowedHeaderNames=r}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(r){this.sanitizer.allowedQueryParameters=r}sendRequest(r){if(!this.logger.enabled)return this._nextPolicy.sendRequest(r);this.logRequest(r);return this._nextPolicy.sendRequest(r).then((r=>this.logResponse(r)))}logRequest(r){this.logger(`Request: ${this.sanitizer.sanitize(r)}`)}logResponse(r){this.logger(`Response status code: ${r.status}`);this.logger(`Headers: ${this.sanitizer.sanitize(r.headers)}`);return r}}function getPathStringFromParameter(r){return getPathStringFromParameterPath(r.parameterPath,r.mapper)}function getPathStringFromParameterPath(r,i){let s;if(typeof r==="string"){s=r}else if(Array.isArray(r)){s=r.join(".")}else{s=i.serializedName}return s}function getStreamResponseStatusCodes(r){const i=new Set;for(const s in r.responses){const a=r.responses[s];if(a.bodyMapper&&a.bodyMapper.type.name===L.Stream){i.add(Number(s))}}return i}function getDefaultUserAgentKey(){return _.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const r={key:"Node",value:process.version};const i={key:"OS",value:`(${S.arch()}-${S.type()}-${S.release()})`};return[r,i]}function getRuntimeInfo(){const r={key:"core-http",value:_.coreHttpVersion};return[r]}function getUserAgentString(r,i=" ",s="/"){return r.map((r=>{const i=r.value?`${s}${r.value}`:"";return`${r.key}${i}`})).join(i)}const se=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const r=getRuntimeInfo();const i=getPlatformSpecificData();const s=getUserAgentString(r.concat(i));return s}function userAgentPolicy(r){const i=!r||r.key===undefined||r.key===null?getDefaultUserAgentKey():r.key;const s=!r||r.value===undefined||r.value===null?getDefaultUserAgentValue():r.value;return{create:(r,a)=>new UserAgentPolicy(r,a,i,s)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(r,i,s,a){super(r,i);this._nextPolicy=r;this._options=i;this.headerKey=s;this.headerValue=a}sendRequest(r){this.addUserAgentHeader(r);return this._nextPolicy.sendRequest(r)}addUserAgentHeader(r){if(!r.headers){r.headers=new HttpHeaders}if(!r.headers.get(this.headerKey)&&this.headerValue){r.headers.set(this.headerKey,this.headerValue)}}}i.QueryCollectionFormat=void 0;(function(r){r["Csv"]=",";r["Ssv"]=" ";r["Tsv"]="\t";r["Pipes"]="|";r["Multi"]="Multi"})(i.QueryCollectionFormat||(i.QueryCollectionFormat={}));const ae={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,s){async function tryGetAccessToken(){if(Date.now()r.getToken(i,s);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;l=r;return l})).catch((r=>{a=null;l=null;throw r}))}return a}return async r=>{if(p.mustRefresh)return refresh(r);if(p.shouldRefresh){refresh(r)}return l}}function bearerTokenAuthenticationPolicy(r,i){const s=createTokenCycler(r,i);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:i}=await s({abortSignal:r.abortSignal,tracingOptions:{tracingContext:r.tracingContext}});r.headers.set(_.HeaderConstants.AUTHORIZATION,`Bearer ${i}`);return this._nextPolicy.sendRequest(r)}}return{create:(r,i)=>new BearerTokenAuthenticationPolicy(r,i)}}function disableResponseDecompressionPolicy(){return{create:(r,i)=>new DisableResponseDecompressionPolicy(r,i)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){r.decompressResponse=false;return this._nextPolicy.sendRequest(r)}}function generateClientRequestIdPolicy(r="x-ms-client-request-id"){return{create:(i,s)=>new GenerateClientRequestIdPolicy(i,s,r)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this._requestIdHeaderName=s}sendRequest(r){if(!r.headers.contains(this._requestIdHeaderName)){r.headers.set(this._requestIdHeaderName,r.requestId)}return this._nextPolicy.sendRequest(r)}}let oe;function getCachedDefaultHttpClient(){if(!oe){oe=new NodeFetchHttpClient}return oe}function ndJsonPolicy(){return{create:(r,i)=>new NdJsonPolicy(r,i)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(typeof r.body==="string"&&r.body.startsWith("[")){const i=JSON.parse(r.body);if(Array.isArray(i)){r.body=i.map((r=>JSON.stringify(r)+"\n")).join("")}}return this._nextPolicy.sendRequest(r)}}const le=[];let ce=false;const pe=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(_.HTTPS_PROXY);const i=getEnvironmentValue(_.ALL_PROXY);const s=getEnvironmentValue(_.HTTP_PROXY);return r||i||s}function isBypassed(r,i,s){if(i.length===0){return false}const a=URLBuilder.parse(r).getHost();if(s===null||s===void 0?void 0:s.has(a)){return s.get(a)}let l=false;for(const r of i){if(r[0]==="."){if(a.endsWith(r)){l=true}else{if(a.length===r.length-1&&a===r.slice(1)){l=true}}}else{if(a===r){l=true}}}s===null||s===void 0?void 0:s.set(a,l);return l}function loadNoProxy(){const r=getEnvironmentValue(_.NO_PROXY);ce=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const{username:i,password:s,urlWithoutAuth:a}=extractAuthFromUrl(r);const l=URLBuilder.parse(a);const c=l.getScheme()?l.getScheme()+"://":"";return{host:c+l.getHost(),port:Number.parseInt(l.getPort()||"80"),username:i,password:s}}function proxyPolicy(r,i){if(!r){r=getDefaultProxySettings()}if(!ce){le.push(...loadNoProxy())}return{create:(s,a)=>new ProxyPolicy(s,a,r,i===null||i===void 0?void 0:i.customNoProxyList)}}function extractAuthFromUrl(r){const i=r.indexOf("@");if(i===-1){return{urlWithoutAuth:r}}const s=r.indexOf("://");const a=s!==-1?s+3:0;const l=r.substring(a,i);const c=l.indexOf(":");const p=c!==-1;const d=p?l.substring(0,c):l;const u=p?l.substring(c+1):undefined;const A=r.substring(0,a)+r.substring(i+1);return{username:d,password:u,urlWithoutAuth:A}}class ProxyPolicy extends BaseRequestPolicy{constructor(r,i,s,a){super(r,i);this.proxySettings=s;this.customNoProxyList=a}sendRequest(r){var i;if(!r.proxySettings&&!isBypassed(r.url,(i=this.customNoProxyList)!==null&&i!==void 0?i:le,this.customNoProxyList?undefined:pe)){r.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(r)}}function rpRegistrationPolicy(r=30){return{create:(i,s)=>new RPRegistrationPolicy(i,s,r)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(r,i,s=30){super(r,i);this._retryTimeout=s}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>registerIfNeeded(this,r,i)))}}function registerIfNeeded(r,i,s){if(s.status===409){const a=checkRPNotRegisteredError(s.bodyAsText);if(a){const l=extractSubscriptionUrl(i.url);return registerRP(r,l,a,i).catch((()=>false)).then((a=>{if(a){i.headers.set("x-ms-client-request-id",generateUuid());return r._nextPolicy.sendRequest(i.clone())}return s}))}}return Promise.resolve(s)}function getRequestEssentials(r,i=false){const s=r.clone();if(i){s.url=r.url}s.headers.set("x-ms-client-request-id",generateUuid());s.headers.set("Content-Type","application/json; charset=utf-8");return s}function checkRPNotRegisteredError(r){let i,s;if(r){try{s=JSON.parse(r)}catch(r){}if(s&&s.error&&s.error.message&&s.error.code&&s.error.code==="MissingSubscriptionRegistration"){const r=s.error.message.match(/.*'(.*)'/i);if(r){i=r.pop()}}}return i}function extractSubscriptionUrl(r){let i;const s=r.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(s&&s[0]){i=s[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${r}.`)}return i}async function registerRP(r,i,s,a){const l=`${i}providers/${s}/register?api-version=2016-02-01`;const c=`${i}providers/${s}?api-version=2016-02-01`;const p=getRequestEssentials(a);p.method="POST";p.url=l;const d=await r._nextPolicy.sendRequest(p);if(d.status!==200){throw new Error(`Autoregistration of ${s} failed. Please try registering manually.`)}return getRegistrationStatus(r,c,a)}async function getRegistrationStatus(r,i,s){const a=getRequestEssentials(s);a.url=i;a.method="GET";const l=await r._nextPolicy.sendRequest(a);const c=l.parsedBody;if(l.parsedBody&&c.registrationState&&c.registrationState==="Registered"){return true}else{await d.delay(r._retryTimeout*1e3);return getRegistrationStatus(r,i,s)}}function signingPolicy(r){return{create:(i,s)=>new SigningPolicy(i,s,r)}}class SigningPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.authenticationProvider=s}signRequest(r){return this.authenticationProvider.signRequest(r)}sendRequest(r){return this.signRequest(r).then((r=>this._nextPolicy.sendRequest(r)))}}function systemErrorRetryPolicy(r,i,s,a){return{create:(l,c)=>new SystemErrorRetryPolicy(l,c,r,i,s,a)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(r,i,s,a,l,c){super(r,i);this.retryCount=isNumber(s)?s:ee;this.retryInterval=isNumber(a)?a:te;this.minRetryInterval=isNumber(l)?l:ie;this.maxRetryInterval=isNumber(c)?c:re}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).catch((i=>retry(this,r,i.response,i)))}}async function retry(r,i,s,a,l){l=updateRetryData(r,l,a);function shouldPolicyRetry(r,i){if(i&&i.code&&(i.code==="ETIMEDOUT"||i.code==="ESOCKETTIMEDOUT"||i.code==="ECONNREFUSED"||i.code==="ECONNRESET"||i.code==="ENOENT")){return true}return false}if(shouldRetry(r.retryCount,shouldPolicyRetry,l,s,a)){try{await d.delay(l.retryInterval);return r._nextPolicy.sendRequest(i.clone())}catch(a){return retry(r,i,s,a,l)}}else{if(a){return Promise.reject(l.error)}return s}}const de=3;const ue=_.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,i)=>new ThrottlingRetryPolicy(r,i)}}const Ae="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.numberOfRetries=0;this._handleResponse=s||this._defaultResponseHandler}async sendRequest(r){const i=await this._nextPolicy.sendRequest(r.clone());if(i.status!==ue.TooManyRequests&&i.status!==ue.ServiceUnavailable){return i}else{return this._handleResponse(r,i)}}async _defaultResponseHandler(r,i){var s;const a=i.headers.get(_.HeaderConstants.RETRY_AFTER);if(a){const i=ThrottlingRetryPolicy.parseRetryAfterHeader(a);if(i){this.numberOfRetries+=1;await d.delay(i,{abortSignal:r.abortSignal,abortErrorMsg:Ae});if((s=r.abortSignal)===null||s===void 0?void 0:s.aborted){throw new y.AbortError(Ae)}if(this.numberOfRetries{let s=undefined;const a=this;const l=i;return{create(i,c){const p=getCredentialScopes(l,a.baseUri);if(!p){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(s===undefined||s===null){s=bearerTokenAuthenticationPolicy(r,p)}return s.create(i,c)}}};a=wrappedPolicyFactory()}else if(r&&typeof r.signRequest==="function"){H.info("ServiceClient: creating signing policy from provided credentials");a=signingPolicy(r)}else if(r!==undefined&&r!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}H.info("ServiceClient: using default request policies");s=createDefaultRequestPolicyFactories(a,i);if(i.requestPolicyFactories){const r=i.requestPolicyFactories(s);if(r){s=r}}}this._requestPolicyFactories=s}sendRequest(r){if(r===null||r===undefined||typeof r!=="object"){throw new Error("options cannot be null or undefined and it must be of type object.")}let i;try{if(isWebResourceLike(r)){r.validateRequestProperties();i=r}else{i=new WebResource;i=i.prepare(r)}}catch(r){return Promise.reject(r)}let s=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let r=this._requestPolicyFactories.length-1;r>=0;--r){s=this._requestPolicyFactories[r].create(s,this._requestPolicyOptions)}}return s.sendRequest(i)}async sendOperationRequest(r,s,a){var l;if(typeof r.options==="function"){a=r.options;r.options=undefined}const c=(l=r.options)===null||l===void 0?void 0:l.serializerOptions;const p=new WebResource;let d;try{const a=s.baseUrl||this.baseUri;if(!a){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.")}p.method=s.httpMethod;p.operationSpec=s;const l=URLBuilder.parse(a);if(s.path){l.appendPath(s.path)}if(s.urlParameters&&s.urlParameters.length>0){for(const i of s.urlParameters){let a=getOperationArgumentValueFromParameter(this,r,i,s.serializer);a=s.serializer.serialize(i.mapper,a,getPathStringFromParameter(i),c);if(!i.skipEncoding){a=encodeURIComponent(a)}l.replaceAll(`{${i.mapper.serializedName||getPathStringFromParameter(i)}}`,a)}}if(s.queryParameters&&s.queryParameters.length>0){for(const a of s.queryParameters){let p=getOperationArgumentValueFromParameter(this,r,a,s.serializer);if(p!==undefined&&p!==null){p=s.serializer.serialize(a.mapper,p,getPathStringFromParameter(a),c);if(a.collectionFormat!==undefined&&a.collectionFormat!==null){if(a.collectionFormat===i.QueryCollectionFormat.Multi){if(p.length===0){continue}else{for(const r in p){const i=p[r];p[r]=i===undefined||i===null?"":i.toString()}}}else if(a.collectionFormat===i.QueryCollectionFormat.Ssv||a.collectionFormat===i.QueryCollectionFormat.Tsv){p=p.join(a.collectionFormat)}}if(!a.skipEncoding){if(Array.isArray(p)){for(const r in p){if(p[r]!==undefined&&p[r]!==null){p[r]=encodeURIComponent(p[r])}}}else{p=encodeURIComponent(p)}}if(a.collectionFormat!==undefined&&a.collectionFormat!==null&&a.collectionFormat!==i.QueryCollectionFormat.Multi&&a.collectionFormat!==i.QueryCollectionFormat.Ssv&&a.collectionFormat!==i.QueryCollectionFormat.Tsv){p=p.join(a.collectionFormat)}l.setQueryParameter(a.mapper.serializedName||getPathStringFromParameter(a),p)}}}p.url=l.toString();const u=s.contentType||this.requestContentType;if(u&&s.requestBody){p.headers.set("Content-Type",u)}if(s.headerParameters){for(const i of s.headerParameters){let a=getOperationArgumentValueFromParameter(this,r,i,s.serializer);if(a!==undefined&&a!==null){a=s.serializer.serialize(i.mapper,a,getPathStringFromParameter(i),c);const r=i.mapper.headerCollectionPrefix;if(r){for(const i of Object.keys(a)){p.headers.set(r+i,a[i])}}else{p.headers.set(i.mapper.serializedName||getPathStringFromParameter(i),a)}}}}const A=r.options;if(A){if(A.customHeaders){for(const r in A.customHeaders){p.headers.set(r,A.customHeaders[r])}}if(A.abortSignal){p.abortSignal=A.abortSignal}if(A.timeout){p.timeout=A.timeout}if(A.onUploadProgress){p.onUploadProgress=A.onUploadProgress}if(A.onDownloadProgress){p.onDownloadProgress=A.onDownloadProgress}if(A.spanOptions){p.spanOptions=A.spanOptions}if(A.tracingContext){p.tracingContext=A.tracingContext}if(A.shouldDeserialize!==undefined&&A.shouldDeserialize!==null){p.shouldDeserialize=A.shouldDeserialize}}p.withCredentials=this._withCredentials;serializeRequestBody(this,p,r,s);if(p.streamResponseStatusCodes===undefined){p.streamResponseStatusCodes=getStreamResponseStatusCodes(s)}let h;let g;try{h=await this.sendRequest(p)}catch(r){g=r}if(g){if(g.response){g.details=flattenResponse(g.response,s.responses[g.statusCode]||s.responses["default"])}d=Promise.reject(g)}else{d=Promise.resolve(flattenResponse(h,s.responses[h.status]))}}catch(r){d=Promise.reject(r)}const u=a;if(u){d.then((r=>u(null,r._response.parsedBody,r._response.request,r._response))).catch((r=>u(r)))}return d}}function serializeRequestBody(r,i,s,a){var l,c,p,d,u,A;const h=(c=(l=s.options)===null||l===void 0?void 0:l.serializerOptions)!==null&&c!==void 0?c:{};const g={rootName:(p=h.rootName)!==null&&p!==void 0?p:"",includeRoot:(d=h.includeRoot)!==null&&d!==void 0?d:false,xmlCharKey:(u=h.xmlCharKey)!==null&&u!==void 0?u:D};const E=h.xmlCharKey;if(a.requestBody&&a.requestBody.mapper){i.body=getOperationArgumentValueFromParameter(r,s,a.requestBody,a.serializer);const l=a.requestBody.mapper;const{required:c,xmlName:p,xmlElementName:d,serializedName:u,xmlNamespace:h,xmlNamespacePrefix:y}=l;const b=l.type.name;try{if(i.body!==undefined&&i.body!==null||c){const r=getPathStringFromParameter(a.requestBody);i.body=a.serializer.serialize(l,i.body,r,g);const s=b===L.Stream;if(a.isXML){const r=y?`xmlns:${y}`:"xmlns";const a=getXmlValueWithNamespace(h,r,b,i.body,g);if(b===L.Sequence){i.body=stringifyXML(prepareXMLRootList(a,d||p||u,r,h),{rootName:p||u,xmlCharKey:E})}else if(!s){i.body=stringifyXML(a,{rootName:p||u,xmlCharKey:E})}}else if(b===L.String&&(((A=a.contentType)===null||A===void 0?void 0:A.match("text/plain"))||a.mediaType==="text")){return}else if(!s){i.body=JSON.stringify(i.body)}}}catch(r){throw new Error(`Error "${r.message}" occurred in serializing the payload - ${JSON.stringify(u,undefined," ")}.`)}}else if(a.formDataParameters&&a.formDataParameters.length>0){i.formData={};for(const l of a.formDataParameters){const c=getOperationArgumentValueFromParameter(r,s,l,a.serializer);if(c!==undefined&&c!==null){const r=l.mapper.serializedName||getPathStringFromParameter(l);i.formData[r]=a.serializer.serialize(l.mapper,c,getPathStringFromParameter(l),g)}}}}function getXmlValueWithNamespace(r,i,s,a,l){if(r&&!["Composite","Sequence","Dictionary"].includes(s)){const s={};s[l.xmlCharKey]=a;s[k]={[i]:r};return s}return a}function getValueOrFunctionResult(r,i){let s;if(typeof r==="string"){s=r}else{s=i();if(typeof r==="function"){s=r(s)}}return s}function createDefaultRequestPolicyFactories(r,i){const s=[];if(i.generateClientRequestIdHeader){s.push(generateClientRequestIdPolicy(i.clientRequestIdHeaderName))}if(r){s.push(r)}const a=getValueOrFunctionResult(i.userAgentHeaderName,se);const l=getValueOrFunctionResult(i.userAgent,getDefaultUserAgentValue);if(a&&l){s.push(userAgentPolicy({key:a,value:l}))}s.push(redirectPolicy());s.push(rpRegistrationPolicy(i.rpRegistrationRetryTimeout));if(!i.noRetryPolicy){s.push(exponentialRetryPolicy());s.push(systemErrorRetryPolicy());s.push(throttlingRetryPolicy())}s.push(deserializationPolicy(i.deserializationContentTypes));if(d.isNode){s.push(proxyPolicy(i.proxySettings))}s.push(logPolicy({logger:H.info}));return s}function createPipelineFromOptions(r,i){const s=[];if(r.sendStreamingJson){s.push(ndJsonPolicy())}let a=undefined;if(r.userAgentOptions&&r.userAgentOptions.userAgentPrefix){const i=[];i.push(r.userAgentOptions.userAgentPrefix);const s=getDefaultUserAgentValue();if(i.indexOf(s)===-1){i.push(s)}a=i.join(" ")}const l=Object.assign(Object.assign({},$),r.keepAliveOptions);const c=Object.assign(Object.assign({},ne),r.retryOptions);const p=Object.assign(Object.assign({},Z),r.redirectOptions);if(d.isNode){s.push(proxyPolicy(r.proxyOptions))}const u=Object.assign(Object.assign({},X),r.deserializationOptions);const A=Object.assign({},r.loggingOptions);s.push(tracingPolicy({userAgent:a}),keepAlivePolicy(l),userAgentPolicy({value:a}),generateClientRequestIdPolicy(),deserializationPolicy(u.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(c.maxRetries,c.retryDelayInMs,c.maxRetryDelayInMs));if(p.handleRedirects){s.push(redirectPolicy(p.maxRetries))}if(i){s.push(i)}s.push(logPolicy(A));if(d.isNode&&r.decompressResponse===false){s.push(disableResponseDecompressionPolicy())}return{httpClient:r.httpClient,requestPolicyFactories:s}}function getOperationArgumentValueFromParameter(r,i,s,a){return getOperationArgumentValueFromParameterPath(r,i,s.parameterPath,s.mapper,a)}function getOperationArgumentValueFromParameterPath(r,i,s,a,l){var c;let p;if(typeof s==="string"){s=[s]}const d=(c=i.options)===null||c===void 0?void 0:c.serializerOptions;if(Array.isArray(s)){if(s.length>0){if(a.isConstant){p=a.defaultValue}else{let l=getPropertyFromParameterPath(i,s);if(!l.propertyFound){l=getPropertyFromParameterPath(r,s)}let c=false;if(!l.propertyFound){c=a.required||s[0]==="options"&&s.length===2}p=c?a.defaultValue:l.propertyValue}const c=getPathStringFromParameterPath(s,a);l.serialize(a,p,c,d)}}else{if(a.required){p={}}for(const c in s){const u=a.type.modelProperties[c];const A=s[c];const h=getOperationArgumentValueFromParameterPath(r,i,A,u,l);const g=getPathStringFromParameterPath(A,u);l.serialize(u,h,g,d);if(h!==undefined&&h!==null){if(!p){p={}}p[c]=h}}}return p}function getPropertyFromParameterPath(r,i){const s={propertyFound:false};let a=0;for(;aObject.defineProperty(i,"_response",{value:r});if(a){const i=a.type.name;if(i==="Stream"){return addOperationResponse(Object.assign(Object.assign({},s),{blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}))}const l=i==="Composite"&&a.type.modelProperties||{};const c=Object.keys(l).some((r=>l[r].serializedName===""));if(i==="Sequence"||c){const i=[...r.parsedBody||[]];for(const s of Object.keys(l)){if(l[s].serializedName){i[s]=r.parsedBody[s]}}if(s){for(const r of Object.keys(s)){i[r]=s[r]}}addOperationResponse(i);return i}if(i==="Composite"||i==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},s),r.parsedBody))}}if(a||r.request.method==="HEAD"||isPrimitiveType(r.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},s),{body:r.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},s),r.parsedBody))}function getCredentialScopes(r,i){if(r===null||r===void 0?void 0:r.credentialScopes){return r.credentialScopes}if(i){return`${i}/.default`}return undefined}function createSpanFunction(r){return I.createSpanFunction(r)}const fe=2*60*1e3;class ExpiringAccessTokenCache{constructor(r=fe){this.cachedToken=undefined;this.tokenRefreshBufferMs=r}setCachedToken(r){this.cachedToken=r}getCachedToken(){if(this.cachedToken&&Date.now()+this.tokenRefreshBufferMs>=this.cachedToken.expiresOnTimestamp){this.cachedToken=undefined}return this.cachedToken}}class AccessTokenRefresher{constructor(r,i,s=3e4){this.credential=r;this.scopes=i;this.requiredMillisecondsBeforeNewRefresh=s;this.lastCalled=0}isReady(){return!this.lastCalled||Date.now()-this.lastCalled>this.requiredMillisecondsBeforeNewRefresh}async getToken(r){this.lastCalled=Date.now();const i=await this.credential.getToken(this.scopes,r);this.promise=undefined;return i||undefined}refresh(r){if(!this.promise){this.promise=this.getToken(r)}return this.promise}}const he=_.HeaderConstants;const ge="Basic";class BasicAuthenticationCredentials{constructor(r,i,s=ge){this.authorizationScheme=ge;if(r===null||r===undefined||typeof r.valueOf()!=="string"){throw new Error("userName cannot be null or undefined and must be of type string.")}if(i===null||i===undefined||typeof i.valueOf()!=="string"){throw new Error("password cannot be null or undefined and must be of type string.")}this.userName=r;this.password=i;this.authorizationScheme=s}signRequest(r){const i=`${this.userName}:${this.password}`;const s=`${this.authorizationScheme} ${encodeString(i)}`;if(!r.headers)r.headers=new HttpHeaders;r.headers.set(he.AUTHORIZATION,s);return Promise.resolve(r)}}class ApiKeyCredentials{constructor(r){if(!r||r&&!r.inHeader&&!r.inQuery){throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`)}this.inHeader=r.inHeader;this.inQuery=r.inQuery}signRequest(r){if(!r){return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`))}if(this.inHeader){if(!r.headers){r.headers=new HttpHeaders}for(const i in this.inHeader){r.headers.set(i,this.inHeader[i])}}if(this.inQuery){if(!r.url){return Promise.reject(new Error(`url cannot be null in the request object.`))}if(r.url.indexOf("?")<0){r.url+="?"}for(const i in this.inQuery){if(!r.url.endsWith("?")){r.url+="&"}r.url+=`${i}=${this.inQuery[i]}`}}return Promise.resolve(r)}}class TopicCredentials extends ApiKeyCredentials{constructor(r){if(!r||r&&typeof r!=="string"){throw new Error("topicKey cannot be null or undefined and must be of type string.")}const i={inHeader:{"aeg-sas-key":r}};super(i)}}Object.defineProperty(i,"delay",{enumerable:true,get:function(){return d.delay}});Object.defineProperty(i,"isNode",{enumerable:true,get:function(){return d.isNode}});Object.defineProperty(i,"isTokenCredential",{enumerable:true,get:function(){return A.isTokenCredential}});i.AccessTokenRefresher=AccessTokenRefresher;i.ApiKeyCredentials=ApiKeyCredentials;i.BaseRequestPolicy=BaseRequestPolicy;i.BasicAuthenticationCredentials=BasicAuthenticationCredentials;i.Constants=_;i.DefaultHttpClient=NodeFetchHttpClient;i.ExpiringAccessTokenCache=ExpiringAccessTokenCache;i.HttpHeaders=HttpHeaders;i.MapperType=L;i.RequestPolicyOptions=RequestPolicyOptions;i.RestError=RestError;i.Serializer=Serializer;i.ServiceClient=ServiceClient;i.TopicCredentials=TopicCredentials;i.URLBuilder=URLBuilder;i.URLQuery=URLQuery;i.WebResource=WebResource;i.XML_ATTRKEY=k;i.XML_CHARKEY=D;i.applyMixins=applyMixins;i.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;i.createPipelineFromOptions=createPipelineFromOptions;i.createSpanFunction=createSpanFunction;i.deserializationPolicy=deserializationPolicy;i.deserializeResponseBody=deserializeResponseBody;i.disableResponseDecompressionPolicy=disableResponseDecompressionPolicy;i.encodeUri=encodeUri;i.executePromisesSequentially=executePromisesSequentially;i.exponentialRetryPolicy=exponentialRetryPolicy;i.flattenResponse=flattenResponse;i.generateClientRequestIdPolicy=generateClientRequestIdPolicy;i.generateUuid=generateUuid;i.getDefaultProxySettings=getDefaultProxySettings;i.getDefaultUserAgentValue=getDefaultUserAgentValue;i.isDuration=isDuration;i.isValidUuid=isValidUuid;i.keepAlivePolicy=keepAlivePolicy;i.logPolicy=logPolicy;i.operationOptionsToRequestOptionsBase=operationOptionsToRequestOptionsBase;i.parseXML=parseXML;i.promiseToCallback=promiseToCallback;i.promiseToServiceCallback=promiseToServiceCallback;i.proxyPolicy=proxyPolicy;i.redirectPolicy=redirectPolicy;i.serializeObject=serializeObject;i.signingPolicy=signingPolicy;i.stringifyXML=stringifyXML;i.stripRequest=stripRequest;i.stripResponse=stripResponse;i.systemErrorRetryPolicy=systemErrorRetryPolicy;i.throttlingRetryPolicy=throttlingRetryPolicy;i.tracingPolicy=tracingPolicy;i.userAgentPolicy=userAgentPolicy},43415:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return A.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return g.default}});var a=_interopRequireDefault(s(14757));var l=_interopRequireDefault(s(19982));var c=_interopRequireDefault(s(85393));var p=_interopRequireDefault(s(48788));var d=_interopRequireDefault(s(657));var u=_interopRequireDefault(s(37909));var A=_interopRequireDefault(s(64418));var h=_interopRequireDefault(s(74794));var g=_interopRequireDefault(s(67079));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},64153:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("md5").update(r).digest()}var l=md5;i["default"]=l},657:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s="00000000-0000-0000-0000-000000000000";i["default"]=s},67079:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(64418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}let i;const s=new Uint8Array(16);s[0]=(i=parseInt(r.slice(0,8),16))>>>24;s[1]=i>>>16&255;s[2]=i>>>8&255;s[3]=i&255;s[4]=(i=parseInt(r.slice(9,13),16))>>>8;s[5]=i&255;s[6]=(i=parseInt(r.slice(14,18),16))>>>8;s[7]=i&255;s[8]=(i=parseInt(r.slice(19,23),16))>>>8;s[9]=i&255;s[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;s[11]=i/4294967296&255;s[12]=i>>>24&255;s[13]=i>>>16&255;s[14]=i>>>8&255;s[15]=i&255;return s}var l=parse;i["default"]=l},90690:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=s},10979:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=new Uint8Array(256);let c=l.length;function rng(){if(c>l.length-16){a.default.randomFillSync(l);c=0}return l.slice(c,c+=16)}},36631:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("sha1").update(r).digest()}var l=sha1;i["default"]=l},74794:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(64418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=[];for(let r=0;r<256;++r){l.push((r+256).toString(16).substr(1))}function stringify(r,i=0){const s=(l[r[i+0]]+l[r[i+1]]+l[r[i+2]]+l[r[i+3]]+"-"+l[r[i+4]]+l[r[i+5]]+"-"+l[r[i+6]]+l[r[i+7]]+"-"+l[r[i+8]]+l[r[i+9]]+"-"+l[r[i+10]]+l[r[i+11]]+l[r[i+12]]+l[r[i+13]]+l[r[i+14]]+l[r[i+15]]).toLowerCase();if(!(0,a.default)(s)){throw TypeError("Stringified UUID is invalid")}return s}var c=stringify;i["default"]=c},14757:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(10979));var l=_interopRequireDefault(s(74794));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let c;let p;let d=0;let u=0;function v1(r,i,s){let A=i&&s||0;const h=i||new Array(16);r=r||{};let g=r.node||c;let E=r.clockseq!==undefined?r.clockseq:p;if(g==null||E==null){const i=r.random||(r.rng||a.default)();if(g==null){g=c=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(E==null){E=p=(i[6]<<8|i[7])&16383}}let y=r.msecs!==undefined?r.msecs:Date.now();let b=r.nsecs!==undefined?r.nsecs:u+1;const C=y-d+(b-u)/1e4;if(C<0&&r.clockseq===undefined){E=E+1&16383}if((C<0||y>d)&&r.nsecs===undefined){b=0}if(b>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=y;u=b;p=E;y+=122192928e5;const v=((y&268435455)*1e4+b)%4294967296;h[A++]=v>>>24&255;h[A++]=v>>>16&255;h[A++]=v>>>8&255;h[A++]=v&255;const w=y/4294967296*1e4&268435455;h[A++]=w>>>8&255;h[A++]=w&255;h[A++]=w>>>24&15|16;h[A++]=w>>>16&255;h[A++]=E>>>8|128;h[A++]=E&255;for(let r=0;r<6;++r){h[A+r]=g[r]}return i||(0,l.default)(h)}var A=v1;i["default"]=A},19982:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(44085));var l=_interopRequireDefault(s(64153));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v3",48,l.default);var p=c;i["default"]=p},44085:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var a=_interopRequireDefault(s(74794));var l=_interopRequireDefault(s(67079));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let s=0;s{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(10979));var l=_interopRequireDefault(s(74794));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,i,s){r=r||{};const c=r.random||(r.rng||a.default)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(i){s=s||0;for(let r=0;r<16;++r){i[s+r]=c[r]}return i}return(0,l.default)(c)}var c=v4;i["default"]=c},48788:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(44085));var l=_interopRequireDefault(s(36631));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v5",80,l.default);var p=c;i["default"]=p},64418:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(90690));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&a.default.test(r)}var l=validate;i["default"]=l},37909:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(64418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.substr(14,1),16)}var l=version;i["default"]=l},27094:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(3233);var l=s(52557);var c=s(51333);const p=a.createClientLogger("core-lro");const d=2e3;const u=["succeeded","canceled","failed"];function deserializeState(r){try{return JSON.parse(r).state}catch(i){throw new Error(`Unable to deserialize input state: ${r}`)}}function setStateError(r){const{state:i,stateProxy:s,isOperationError:a}=r;return r=>{if(a(r)){s.setError(i,r);s.setFailed(i)}throw r}}function appendReadableErrorMessage(r,i){let s=r;if(s.slice(-1)!=="."){s=s+"."}return s+" "+i}function simplifyError(r){let i=r.message;let s=r.code;let a=r;while(a.innererror){a=a.innererror;s=a.code;i=appendReadableErrorMessage(i,a.message)}return{code:s,message:i}}function processOperationStatus(r){const{state:i,stateProxy:s,status:a,isDone:l,processResult:c,getError:d,response:u,setErrorAsResult:A}=r;switch(a){case"succeeded":{s.setSucceeded(i);break}case"failed":{const r=d===null||d===void 0?void 0:d(u);let a="";if(r){const{code:i,message:s}=simplifyError(r);a=`. ${i}. ${s}`}const l=`The long-running operation has failed${a}`;s.setError(i,new Error(l));s.setFailed(i);p.warning(l);break}case"canceled":{s.setCanceled(i);break}}if((l===null||l===void 0?void 0:l(u,i))||l===undefined&&["succeeded","canceled"].concat(A?[]:["failed"]).includes(a)){s.setResult(i,buildResult({response:u,state:i,processResult:c}))}}function buildResult(r){const{processResult:i,response:s,state:a}=r;return i?i(s,a):s}async function initOperation(r){const{init:i,stateProxy:s,processResult:a,getOperationStatus:l,withOperationLocation:c,setErrorAsResult:d}=r;const{operationLocation:u,resourceLocation:A,metadata:h,response:g}=await i();if(u)c===null||c===void 0?void 0:c(u,false);const E={metadata:h,operationLocation:u,resourceLocation:A};p.verbose(`LRO: Operation description:`,E);const y=s.initState(E);const b=l({response:g,state:y,operationLocation:u});processOperationStatus({state:y,status:b,stateProxy:s,response:g,setErrorAsResult:d,processResult:a});return y}async function pollOperationHelper(r){const{poll:i,state:s,stateProxy:a,operationLocation:l,getOperationStatus:c,getResourceLocation:d,isOperationError:A,options:h}=r;const g=await i(l,h).catch(setStateError({state:s,stateProxy:a,isOperationError:A}));const E=c(g,s);p.verbose(`LRO: Status:\n\tPolling from: ${s.config.operationLocation}\n\tOperation status: ${E}\n\tPolling status: ${u.includes(E)?"Stopped":"Running"}`);if(E==="succeeded"){const r=d(g,s);if(r!==undefined){return{response:await i(r).catch(setStateError({state:s,stateProxy:a,isOperationError:A})),status:E}}}return{response:g,status:E}}async function pollOperation(r){const{poll:i,state:s,stateProxy:a,options:l,getOperationStatus:c,getResourceLocation:p,getOperationLocation:d,isOperationError:A,withOperationLocation:h,getPollingInterval:g,processResult:E,getError:y,updateState:b,setDelay:C,isDone:v,setErrorAsResult:w}=r;const{operationLocation:I}=s.config;if(I!==undefined){const{response:r,status:B}=await pollOperationHelper({poll:i,getOperationStatus:c,state:s,stateProxy:a,operationLocation:I,getResourceLocation:p,isOperationError:A,options:l});processOperationStatus({status:B,response:r,state:s,stateProxy:a,isDone:v,processResult:E,getError:y,setErrorAsResult:w});if(!u.includes(B)){const i=g===null||g===void 0?void 0:g(r);if(i)C(i);const a=d===null||d===void 0?void 0:d(r,s);if(a!==undefined){const r=I!==a;s.config.operationLocation=a;h===null||h===void 0?void 0:h(a,r)}else h===null||h===void 0?void 0:h(I,false)}b===null||b===void 0?void 0:b(s,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:i,operationLocation:s}=r;return s!==null&&s!==void 0?s:i}function getLocationHeader(r){return r.headers["location"]}function getOperationLocationHeader(r){return r.headers["operation-location"]}function getAzureAsyncOperationHeader(r){return r.headers["azure-asyncoperation"]}function findResourceLocation(r){var i;const{location:s,requestMethod:a,requestPath:l,resourceLocationConfig:c}=r;switch(a){case"PUT":{return l}case"DELETE":{return undefined}case"PATCH":{return(i=getDefault())!==null&&i!==void 0?i:l}default:{return getDefault()}}function getDefault(){switch(c){case"azure-async-operation":{return undefined}case"original-uri":{return l}case"location":default:{return s}}}}function inferLroMode(r){const{rawResponse:i,requestMethod:s,requestPath:a,resourceLocationConfig:l}=r;const c=getOperationLocationHeader(i);const p=getAzureAsyncOperationHeader(i);const d=getOperationLocationPollingUrl({operationLocation:c,azureAsyncOperation:p});const u=getLocationHeader(i);const A=s===null||s===void 0?void 0:s.toLocaleUpperCase();if(d!==undefined){return{mode:"OperationLocation",operationLocation:d,resourceLocation:findResourceLocation({requestMethod:A,location:u,requestPath:a,resourceLocationConfig:l})}}else if(u!==undefined){return{mode:"ResourceLocation",operationLocation:u}}else if(A==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}function transformStatus(r){const{status:i,statusCode:s}=r;if(typeof i!=="string"&&i!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${i}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(i===null||i===void 0?void 0:i.toLocaleLowerCase()){case undefined:return toOperationStatus(s);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{p.verbose(`LRO: unrecognized operation status: ${i}`);return i}}}function getStatus(r){var i;const{status:s}=(i=r.body)!==null&&i!==void 0?i:{};return transformStatus({status:s,statusCode:r.statusCode})}function getProvisioningState(r){var i,s;const{properties:a,provisioningState:l}=(i=r.body)!==null&&i!==void 0?i:{};const c=(s=a===null||a===void 0?void 0:a.provisioningState)!==null&&s!==void 0?s:l;return transformStatus({status:c,statusCode:r.statusCode})}function toOperationStatus(r){if(r===202){return"running"}else if(r<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:r}){const i=r.headers["retry-after"];if(i!==undefined){const r=parseInt(i);return isNaN(r)?calculatePollingIntervalFromDate(new Date(i)):r*1e3}return undefined}function getErrorFromResponse(r){const i=r.flatResponse.error;if(!i){p.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!i.code||!i.message){p.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return i}function calculatePollingIntervalFromDate(r){const i=Math.floor((new Date).getTime());const s=r.getTime();if(i{const r=await l.sendInitialRequest();const i=inferLroMode({rawResponse:r.rawResponse,requestPath:l.requestPath,requestMethod:l.requestMethod,resourceLocationConfig:s});return Object.assign({response:r,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},stateProxy:i,processResult:a?({flatResponse:r},i)=>a(r,i):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:c})}function getOperationLocation({rawResponse:r},i){var s;const a=(s=i.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:r},i){var s;const a=(s=i.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${a}`)}}function getResourceLocation({flatResponse:r},i){if(typeof r==="object"){const s=r.resourceLocation;if(s!==undefined){i.config.resourceLocation=s}}return i.config.resourceLocation}function isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:i,stateProxy:s,options:a,processResult:l,updateState:c,setDelay:p,state:d,setErrorAsResult:u}=r;return pollOperation({state:d,stateProxy:s,setDelay:p,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:c,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:a,poll:async(r,s)=>i.sendPollRequest(r,s),setErrorAsResult:u})}const createStateProxy$1=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function buildCreatePoller(r){const{getOperationLocation:i,getStatusFromInitialResponse:s,getStatusFromPollResponse:a,isOperationError:p,getResourceLocation:u,getPollingInterval:A,getError:h,resolveOnUnsuccessful:g}=r;return async({init:r,poll:E},y)=>{const{processResult:b,updateState:C,withOperationLocation:v,intervalInMs:w=d,restoreFrom:I}=y||{};const B=createStateProxy$1();const S=v?(()=>{let r=false;return(i,s)=>{if(s)v(i);else if(!r)v(i);r=true}})():undefined;const Q=I?deserializeState(I):await initOperation({init:r,stateProxy:B,processResult:b,getOperationStatus:s,withOperationLocation:S,setErrorAsResult:!g});let x;const R=new l.AbortController;const T=new Map;const handleProgressEvents=async()=>T.forEach((r=>r(Q)));const N="Operation was canceled";let _=w;const k={getOperationState:()=>Q,getResult:()=>Q.result,isDone:()=>["succeeded","failed","canceled"].includes(Q.status),isStopped:()=>x===undefined,stopPolling:()=>{R.abort()},toString:()=>JSON.stringify({state:Q}),onProgress:r=>{const i=Symbol();T.set(i,r);return()=>T.delete(i)},pollUntilDone:r=>x!==null&&x!==void 0?x:x=(async()=>{const{abortSignal:i}=r||{};const{signal:s}=i?new l.AbortController([i,R.signal]):R;if(!k.isDone()){await k.poll({abortSignal:s});while(!k.isDone()){await c.delay(_,{abortSignal:s});await k.poll({abortSignal:s})}}if(g){return k.getResult()}else{switch(Q.status){case"succeeded":return k.getResult();case"canceled":throw new Error(N);case"failed":throw Q.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{x=undefined})),async poll(r){if(g){if(k.isDone())return}else{switch(Q.status){case"succeeded":return;case"canceled":throw new Error(N);case"failed":throw Q.error}}await pollOperation({poll:E,state:Q,stateProxy:B,getOperationLocation:i,isOperationError:p,withOperationLocation:S,getPollingInterval:A,getOperationStatus:a,getResourceLocation:u,processResult:b,getError:h,updateState:C,options:r,setDelay:r=>{_=r},setErrorAsResult:!g});await handleProgressEvents();if(!g){switch(Q.status){case"canceled":throw new Error(N);case"failed":throw Q.error}}}};return k}}async function createHttpPoller(r,i){const{resourceLocationConfig:s,intervalInMs:a,processResult:l,restoreFrom:c,updateState:p,withOperationLocation:d,resolveOnUnsuccessful:u=false}=i||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:u})({init:async()=>{const i=await r.sendInitialRequest();const a=inferLroMode({rawResponse:i.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:s});return Object.assign({response:i,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:a,withOperationLocation:d,restoreFrom:c,updateState:p,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r})}const createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,i,s,a,l,c,p){this.state=r;this.lro=i;this.setErrorAsResult=s;this.lroResourceLocationConfig=a;this.processResult=l;this.updateState=c;this.isDone=p}setPollerConfig(r){this.pollerConfig=r}async update(r){var i;const s=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:s,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const l=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:s,processResult:this.processResult,updateState:a?(r,{rawResponse:i})=>a(r,i):undefined,isDone:l?({flatResponse:r},i)=>l(r,i):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(i=r===null||r===void 0?void 0:r.fireProgress)===null||i===void 0?void 0:i.call(r,this.state);return this}async cancel(){p.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,i)=>{this.resolve=r;this.reject=i}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const i of this.pollProgressCallbacks){i(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((i=>i!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,i){const{intervalInMs:s=d,resumeFrom:a,resolveOnUnsuccessful:l=false,isDone:c,lroResourceLocationConfig:p,processResult:u,updateState:A}=i||{};const h=a?deserializeState(a):{};const g=new GenericPollOperation(h,r,!l,p,u,A,c);super(g);this.resolveOnUnsuccessful=l;this.config={intervalInMs:s};g.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}i.LroEngine=LroEngine;i.Poller=Poller;i.PollerCancelledError=PollerCancelledError;i.PollerStoppedError=PollerStoppedError;i.createHttpPoller=createHttpPoller},74559:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(4351);function getPagedAsyncIterator(r){var i;const s=getItemAsyncIterator(r);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i=r===null||r===void 0?void 0:r.byPage)!==null&&i!==void 0?i:i=>{const{continuationToken:s,maxPageSize:a}=i!==null&&i!==void 0?i:{};return getPageAsyncIterator(r,{pageLink:s,maxPageSize:a})}}}function getItemAsyncIterator(r){return a.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var i,s,l,c;const p=getPageAsyncIterator(r);const d=yield a.__await(p.next());if(!Array.isArray(d.value)){const{toElements:l}=r;if(l){yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l(d.value))));try{for(var u=a.__asyncValues(p),A;A=yield a.__await(u.next()),!A.done;){const r=A.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l(r))))}}catch(r){i={error:r}}finally{try{if(A&&!A.done&&(s=u.return))yield a.__await(s.call(u))}finally{if(i)throw i.error}}}else{yield yield a.__await(d.value);yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(p)))}}else{yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(d.value)));try{for(var h=a.__asyncValues(p),g;g=yield a.__await(h.next()),!g.done;){const r=g.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(r)))}}catch(r){l={error:r}}finally{try{if(g&&!g.done&&(c=h.return))yield a.__await(c.call(h))}finally{if(l)throw l.error}}}}))}function getPageAsyncIterator(r,i={}){return a.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:s,maxPageSize:l}=i;let c=yield a.__await(r.getPage(s!==null&&s!==void 0?s:r.firstPageLink,l));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page);while(c.nextPageLink){c=yield a.__await(r.getPage(c.nextPageLink,l));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page)}}))}i.getPagedAsyncIterator=getPagedAsyncIterator},94175:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(65163);(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(i.SpanKind||(i.SpanKind={}));function getSpan(r){return a.trace.getSpan(r)}function setSpan(r,i){return a.trace.setSpan(r,i)}function setSpanContext(r,i){return a.trace.setSpanContext(r,i)}function getSpanContext(r){return a.trace.getSpanContext(r)}function isSpanContextValid(r){return a.trace.isSpanContextValid(r)}function getTracer(r,i){return a.trace.getTracer(r||"azure/core-tracing",i)}const l=a.context;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(i.SpanStatusCode||(i.SpanStatusCode={}));function isTracingDisabled(){var r;if(typeof process==="undefined"){return false}const i=(r=process.env.AZURE_TRACING_DISABLED)===null||r===void 0?void 0:r.toLowerCase();if(i==="false"||i==="0"){return false}return Boolean(i)}function createSpanFunction(r){return function(s,c){const p=getTracer();const d=(c===null||c===void 0?void 0:c.tracingOptions)||{};const u=Object.assign({kind:i.SpanKind.INTERNAL},d.spanOptions);const A=r.packagePrefix?`${r.packagePrefix}.${s}`:s;let h;if(isTracingDisabled()){h=a.trace.wrapSpanContext(a.INVALID_SPAN_CONTEXT)}else{h=p.startSpan(A,u,d.tracingContext)}if(r.namespace){h.setAttribute("az.namespace",r.namespace)}let g=d.spanOptions||{};if(h.isRecording()&&r.namespace){g=Object.assign(Object.assign({},d.spanOptions),{attributes:Object.assign(Object.assign({},u.attributes),{"az.namespace":r.namespace})})}const E=Object.assign(Object.assign({},d),{spanOptions:g,tracingContext:setSpan(d.tracingContext||l.active(),h)});const y=Object.assign(Object.assign({},c),{tracingOptions:E});return{span:h,updatedOptions:y}}}const c="00";function extractSpanContextFromTraceParentHeader(r){const i=r.split("-");if(i.length!==4){return}const[s,a,l,p]=i;if(s!==c){return}const d=parseInt(p,16);const u={spanId:l,traceId:a,traceFlags:d};return u}function getTraceParentHeader(r){const i=[];if(!r.traceId){i.push("traceId")}if(!r.spanId){i.push("spanId")}if(i.length){return}const s=r.traceFlags||0;const a=s.toString(16);const l=a.length===1?`0${a}`:a;return`${c}-${r.traceId}-${r.spanId}-${l}`}i.context=l;i.createSpanFunction=createSpanFunction;i.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;i.getSpan=getSpan;i.getSpanContext=getSpanContext;i.getTraceParentHeader=getTraceParentHeader;i.getTracer=getTracer;i.isSpanContextValid=isSpanContextValid;i.setSpan=setSpan;i.setSpanContext=setSpanContext},51333:(r,i,s)=>{"use strict";var a=s(52557);var l=s(6113);function createAbortablePromise(r,i){const{cleanupBeforeAbort:s,abortSignal:l,abortErrorMsg:c}=i!==null&&i!==void 0?i:{};return new Promise(((i,p)=>{function rejectOnAbort(){p(new a.AbortError(c!==null&&c!==void 0?c:"The operation was aborted."))}function removeListeners(){l===null||l===void 0?void 0:l.removeEventListener("abort",onAbort)}function onAbort(){s===null||s===void 0?void 0:s();removeListeners();rejectOnAbort()}if(l===null||l===void 0?void 0:l.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();i(r)}),(r=>{removeListeners();p(r)}))}catch(r){p(r)}l===null||l===void 0?void 0:l.addEventListener("abort",onAbort)}))}const c="The delay was aborted.";function delay(r,i){let s;const{abortSignal:a,abortErrorMsg:l}=i!==null&&i!==void 0?i:{};return createAbortablePromise((i=>{s=setTimeout(i,r)}),{cleanupBeforeAbort:()=>clearTimeout(s),abortSignal:a,abortErrorMsg:l!==null&&l!==void 0?l:c})}async function cancelablePromiseRace(r,i){var s,l;const c=new a.AbortController;function abortHandler(){c.abort()}(s=i===null||i===void 0?void 0:i.abortSignal)===null||s===void 0?void 0:s.addEventListener("abort",abortHandler);try{return await Promise.race(r.map((r=>r({abortSignal:c.signal}))))}finally{c.abort();(l=i===null||i===void 0?void 0:i.abortSignal)===null||l===void 0?void 0:l.removeEventListener("abort",abortHandler)}}function getRandomIntegerInclusive(r,i){r=Math.ceil(r);i=Math.floor(i);const s=Math.floor(Math.random()*(i-r+1));return s+r}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const i=typeof r.name==="string";const s=typeof r.message==="string";return i&&s}return false}function getErrorMessage(r){if(isError(r)){return r.message}else{let i;try{if(typeof r==="object"&&r){i=JSON.stringify(r)}else{i=String(r)}}catch(r){i="[unable to stringify input]"}return`Unknown error ${i}`}}async function computeSha256Hmac(r,i,s){const a=Buffer.from(r,"base64");return l.createHmac("sha256",a).update(i).digest(s)}async function computeSha256Hash(r,i){return l.createHash("sha256").update(r).digest(i)}function isDefined(r){return typeof r!=="undefined"&&r!==null}function isObjectWithProperties(r,i){if(!isDefined(r)||typeof r!=="object"){return false}for(const s of i){if(!objectHasProperty(r,s)){return false}}return true}function objectHasProperty(r,i){return isDefined(r)&&typeof r==="object"&&i in r}function generateUUID(){let r="";for(let i=0;i<32;i++){const s=Math.floor(Math.random()*16);if(i===12){r+="4"}else if(i===16){r+=s&3|8}else{r+=s.toString(16)}if(i===7||i===11||i===15||i===19){r+="-"}}return r}var p;let d=typeof((p=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||p===void 0?void 0:p.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):l.randomUUID;if(!d){d=generateUUID}function randomUUID(){return d()}var u,A,h,g;const E=typeof window!=="undefined"&&typeof window.document!=="undefined";const y=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((u=self.constructor)===null||u===void 0?void 0:u.name)==="DedicatedWorkerGlobalScope"||((A=self.constructor)===null||A===void 0?void 0:A.name)==="ServiceWorkerGlobalScope"||((h=self.constructor)===null||h===void 0?void 0:h.name)==="SharedWorkerGlobalScope");const b=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const C=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((g=process.versions)===null||g===void 0?void 0:g.node)&&!b;const v=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const w=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative";function uint8ArrayToString(r,i){return Buffer.from(r).toString(i)}function stringToUint8Array(r,i){return Buffer.from(r,i)}i.cancelablePromiseRace=cancelablePromiseRace;i.computeSha256Hash=computeSha256Hash;i.computeSha256Hmac=computeSha256Hmac;i.createAbortablePromise=createAbortablePromise;i.delay=delay;i.getErrorMessage=getErrorMessage;i.getRandomIntegerInclusive=getRandomIntegerInclusive;i.isBrowser=E;i.isBun=v;i.isDefined=isDefined;i.isDeno=b;i.isError=isError;i.isNode=C;i.isObject=isObject;i.isObjectWithProperties=isObjectWithProperties;i.isReactNative=w;i.isWebWorker=y;i.objectHasProperty=objectHasProperty;i.randomUUID=randomUUID;i.stringToUint8Array=stringToUint8Array;i.uint8ArrayToString=uint8ArrayToString},3233:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(22037);var l=s(73837);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var c=_interopDefaultLegacy(l);function log(r,...i){process.stderr.write(`${c["default"].format(r,...i)}${a.EOL}`)}const p=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let u=[];let A=[];const h=[];if(p){enable(p)}const g=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){d=r;u=[];A=[];const i=/\*/g;const s=r.split(",").map((r=>r.trim().replace(i,".*?")));for(const r of s){if(r.startsWith("-")){A.push(new RegExp(`^${r.substr(1)}$`))}else{u.push(new RegExp(`^${r}$`))}}for(const r of h){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const i of A){if(i.test(r)){return false}}for(const i of u){if(i.test(r)){return true}}return false}function disable(){const r=d||"";enable("");return r}function createDebugger(r){const i=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:g.log,namespace:r,extend:extend});function debug(...s){if(!i.enabled){return}if(s.length>0){s[0]=`${r} ${s[0]}`}i.log(...s)}h.push(i);return i}function destroy(){const r=h.indexOf(this);if(r>=0){h.splice(r,1);return true}return false}function extend(r){const i=createDebugger(`${this.namespace}:${r}`);i.log=this.log;return i}var E=g;const y=new Set;const b=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let C;const v=E("azure");v.log=(...r)=>{E.log(...r)};const w=["verbose","info","warning","error"];if(b){if(isAzureLogLevel(b)){setLogLevel(b)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${b}'; logging is not enabled. Acceptable values: ${w.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${w.join(",")}`)}C=r;const i=[];for(const r of y){if(shouldEnable(r)){i.push(r.namespace)}}E.enable(i.join(","))}function getLogLevel(){return C}const I={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const i=v.extend(r);patchLogMethod(v,i);return{error:createLogger(i,"error"),warning:createLogger(i,"warning"),info:createLogger(i,"info"),verbose:createLogger(i,"verbose")}}function patchLogMethod(r,i){i.log=(...i)=>{r.log(...i)}}function createLogger(r,i){const s=Object.assign(r.extend(i),{level:i});patchLogMethod(r,s);if(shouldEnable(s)){const r=E.disable();E.enable(r+","+s.namespace)}y.add(s);return s}function shouldEnable(r){return Boolean(C&&I[r.level]<=I[C])}function isAzureLogLevel(r){return w.includes(r)}i.AzureLogger=v;i.createClientLogger=createClientLogger;i.getLogLevel=getLogLevel;i.setLogLevel=setLogLevel},84100:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(24607);var l=s(4351);var c=s(94175);var p=s(3233);var d=s(52557);var u=s(22037);var A=s(6113);var h=s(12781);s(74559);var g=s(27094);var E=s(82361);var y=s(57147);var b=s(73837);function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(s){if(s!=="default"){var a=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(i,s,a.get?a:{enumerable:true,get:function(){return r[s]}})}}))}i["default"]=r;return Object.freeze(i)}var C=_interopNamespace(a);var v=_interopNamespace(u);var w=_interopNamespace(y);var I=_interopNamespace(b);const B={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const S={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const Q={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const x={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const R={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const T={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const N={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const _={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const k={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const D={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const O={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const P={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const L={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const M={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const U={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const G={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const j={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const q={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const H={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const V={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const z={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Y={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const W={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const J={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const X={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","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"}}}}};const $={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const K={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Z={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const ee={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const te={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const re={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const ie={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ne={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const se={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const ae={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const oe={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const le={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"any"}}}}};const ce={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const pe={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const de={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const ue={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ae={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const he={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ge={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ce={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qe={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xe={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Re={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _e={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Me={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ue={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const je={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const ze={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ye={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const We={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Je={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Xe={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $e={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ke={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ze={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const et={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tt={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const rt={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const it={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const nt={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ct={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dt={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const ut={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const At={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const mt={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ht={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bt={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const wt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const It={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const St={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const Qt={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Rt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Nt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kt={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ot={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Lt={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ft={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Gt={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const qt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ht={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zt={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $t={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kt={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const er={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const tr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const ir={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mr={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ir={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Br={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const kr={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hr={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var zr=Object.freeze({__proto__:null,BlobServiceProperties:B,Logging:S,RetentionPolicy:Q,Metrics:x,CorsRule:R,StaticWebsite:T,StorageError:N,BlobServiceStatistics:_,GeoReplication:k,ListContainersSegmentResponse:D,ContainerItem:O,ContainerProperties:P,KeyInfo:L,UserDelegationKey:M,FilterBlobSegment:U,FilterBlobItem:G,BlobTags:j,BlobTag:q,SignedIdentifier:H,AccessPolicy:V,ListBlobsFlatSegmentResponse:z,BlobFlatListSegment:Y,BlobItemInternal:W,BlobName:J,BlobPropertiesInternal:X,ListBlobsHierarchySegmentResponse:$,BlobHierarchyListSegment:K,BlobPrefix:Z,BlockLookupList:ee,BlockList:te,Block:re,PageList:ie,PageRange:ne,ClearRange:se,QueryRequest:ae,QuerySerialization:oe,QueryFormat:le,DelimitedTextConfiguration:ce,JsonTextConfiguration:pe,ArrowConfiguration:de,ArrowField:ue,ServiceSetPropertiesHeaders:Ae,ServiceSetPropertiesExceptionHeaders:me,ServiceGetPropertiesHeaders:fe,ServiceGetPropertiesExceptionHeaders:he,ServiceGetStatisticsHeaders:ge,ServiceGetStatisticsExceptionHeaders:Ee,ServiceListContainersSegmentHeaders:ye,ServiceListContainersSegmentExceptionHeaders:be,ServiceGetUserDelegationKeyHeaders:Ce,ServiceGetUserDelegationKeyExceptionHeaders:ve,ServiceGetAccountInfoHeaders:we,ServiceGetAccountInfoExceptionHeaders:Ie,ServiceSubmitBatchHeaders:Be,ServiceSubmitBatchExceptionHeaders:Se,ServiceFilterBlobsHeaders:Qe,ServiceFilterBlobsExceptionHeaders:xe,ContainerCreateHeaders:Re,ContainerCreateExceptionHeaders:Te,ContainerGetPropertiesHeaders:Ne,ContainerGetPropertiesExceptionHeaders:_e,ContainerDeleteHeaders:ke,ContainerDeleteExceptionHeaders:De,ContainerSetMetadataHeaders:Oe,ContainerSetMetadataExceptionHeaders:Pe,ContainerGetAccessPolicyHeaders:Le,ContainerGetAccessPolicyExceptionHeaders:Fe,ContainerSetAccessPolicyHeaders:Me,ContainerSetAccessPolicyExceptionHeaders:Ue,ContainerRestoreHeaders:Ge,ContainerRestoreExceptionHeaders:je,ContainerRenameHeaders:qe,ContainerRenameExceptionHeaders:He,ContainerSubmitBatchHeaders:Ve,ContainerSubmitBatchExceptionHeaders:ze,ContainerFilterBlobsHeaders:Ye,ContainerFilterBlobsExceptionHeaders:We,ContainerAcquireLeaseHeaders:Je,ContainerAcquireLeaseExceptionHeaders:Xe,ContainerReleaseLeaseHeaders:$e,ContainerReleaseLeaseExceptionHeaders:Ke,ContainerRenewLeaseHeaders:Ze,ContainerRenewLeaseExceptionHeaders:et,ContainerBreakLeaseHeaders:tt,ContainerBreakLeaseExceptionHeaders:rt,ContainerChangeLeaseHeaders:it,ContainerChangeLeaseExceptionHeaders:nt,ContainerListBlobFlatSegmentHeaders:st,ContainerListBlobFlatSegmentExceptionHeaders:ot,ContainerListBlobHierarchySegmentHeaders:ct,ContainerListBlobHierarchySegmentExceptionHeaders:pt,ContainerGetAccountInfoHeaders:dt,ContainerGetAccountInfoExceptionHeaders:ut,BlobDownloadHeaders:At,BlobDownloadExceptionHeaders:mt,BlobGetPropertiesHeaders:ft,BlobGetPropertiesExceptionHeaders:ht,BlobDeleteHeaders:Et,BlobDeleteExceptionHeaders:yt,BlobUndeleteHeaders:bt,BlobUndeleteExceptionHeaders:Ct,BlobSetExpiryHeaders:vt,BlobSetExpiryExceptionHeaders:wt,BlobSetHttpHeadersHeaders:It,BlobSetHttpHeadersExceptionHeaders:Bt,BlobSetImmutabilityPolicyHeaders:St,BlobSetImmutabilityPolicyExceptionHeaders:Qt,BlobDeleteImmutabilityPolicyHeaders:xt,BlobDeleteImmutabilityPolicyExceptionHeaders:Rt,BlobSetLegalHoldHeaders:Tt,BlobSetLegalHoldExceptionHeaders:Nt,BlobSetMetadataHeaders:_t,BlobSetMetadataExceptionHeaders:kt,BlobAcquireLeaseHeaders:Dt,BlobAcquireLeaseExceptionHeaders:Ot,BlobReleaseLeaseHeaders:Pt,BlobReleaseLeaseExceptionHeaders:Lt,BlobRenewLeaseHeaders:Ft,BlobRenewLeaseExceptionHeaders:Mt,BlobChangeLeaseHeaders:Ut,BlobChangeLeaseExceptionHeaders:Gt,BlobBreakLeaseHeaders:jt,BlobBreakLeaseExceptionHeaders:qt,BlobCreateSnapshotHeaders:Ht,BlobCreateSnapshotExceptionHeaders:Vt,BlobStartCopyFromURLHeaders:zt,BlobStartCopyFromURLExceptionHeaders:Yt,BlobCopyFromURLHeaders:Wt,BlobCopyFromURLExceptionHeaders:Jt,BlobAbortCopyFromURLHeaders:Xt,BlobAbortCopyFromURLExceptionHeaders:$t,BlobSetTierHeaders:Kt,BlobSetTierExceptionHeaders:Zt,BlobGetAccountInfoHeaders:er,BlobGetAccountInfoExceptionHeaders:tr,BlobQueryHeaders:rr,BlobQueryExceptionHeaders:ir,BlobGetTagsHeaders:nr,BlobGetTagsExceptionHeaders:sr,BlobSetTagsHeaders:ar,BlobSetTagsExceptionHeaders:or,PageBlobCreateHeaders:lr,PageBlobCreateExceptionHeaders:cr,PageBlobUploadPagesHeaders:pr,PageBlobUploadPagesExceptionHeaders:dr,PageBlobClearPagesHeaders:ur,PageBlobClearPagesExceptionHeaders:Ar,PageBlobUploadPagesFromURLHeaders:mr,PageBlobUploadPagesFromURLExceptionHeaders:fr,PageBlobGetPageRangesHeaders:hr,PageBlobGetPageRangesExceptionHeaders:gr,PageBlobGetPageRangesDiffHeaders:Er,PageBlobGetPageRangesDiffExceptionHeaders:yr,PageBlobResizeHeaders:br,PageBlobResizeExceptionHeaders:Cr,PageBlobUpdateSequenceNumberHeaders:vr,PageBlobUpdateSequenceNumberExceptionHeaders:wr,PageBlobCopyIncrementalHeaders:Ir,PageBlobCopyIncrementalExceptionHeaders:Br,AppendBlobCreateHeaders:Sr,AppendBlobCreateExceptionHeaders:Qr,AppendBlobAppendBlockHeaders:xr,AppendBlobAppendBlockExceptionHeaders:Rr,AppendBlobAppendBlockFromUrlHeaders:Tr,AppendBlobAppendBlockFromUrlExceptionHeaders:Nr,AppendBlobSealHeaders:_r,AppendBlobSealExceptionHeaders:kr,BlockBlobUploadHeaders:Dr,BlockBlobUploadExceptionHeaders:Or,BlockBlobPutBlobFromUrlHeaders:Pr,BlockBlobPutBlobFromUrlExceptionHeaders:Lr,BlockBlobStageBlockHeaders:Fr,BlockBlobStageBlockExceptionHeaders:Mr,BlockBlobStageBlockFromURLHeaders:Ur,BlockBlobStageBlockFromURLExceptionHeaders:Gr,BlockBlobCommitBlockListHeaders:jr,BlockBlobCommitBlockListExceptionHeaders:qr,BlockBlobGetBlockListHeaders:Hr,BlockBlobGetBlockListExceptionHeaders:Vr});const Yr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Wr={parameterPath:"blobServiceProperties",mapper:B};const Jr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Xr={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const $r={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Kr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zr={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const ei={parameterPath:"version",mapper:{defaultValue:"2023-11-03",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const ti={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ri={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ii={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ni={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const si={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const ai={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const oi={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const li={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const ci={parameterPath:"keyInfo",mapper:L};const pi={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const di={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const ui={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ai={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mi={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const fi={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const hi={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gi={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Ei={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const yi={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const bi={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Ci={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const vi={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const wi={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Ii={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const Bi={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Si={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qi={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xi={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Ri={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Ni={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const _i={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ki={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Di={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Oi={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pi={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Li={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Fi={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Mi={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Ui={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Gi={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ji={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const qi={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Hi={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vi={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const zi={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const Yi={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Wi={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Ji={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Xi={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const $i={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Ki={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Zi={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const en={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const tn={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const rn={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const nn={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const sn={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const an={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const ln={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const cn={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const pn={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const dn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const un={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const An={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const mn={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const hn={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const gn={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const En={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const yn={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bn={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Cn={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const vn={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wn={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const In={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Bn={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Sn={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Qn={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const xn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Rn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Tn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Nn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const _n={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const kn={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Dn={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const On={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Pn={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Ln={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const Fn={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Mn={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Un={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const Gn={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jn={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const qn={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Hn={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vn={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const zn={parameterPath:["options","queryRequest"],mapper:ae};const Yn={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wn={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Jn={parameterPath:["options","tags"],mapper:j};const Xn={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const $n={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Kn={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Zn={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const es={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ts={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const rs={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ns={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ss={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const as={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const os={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ls={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const cs={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const ps={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ds={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const us={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const As={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const ms={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const fs={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const hs={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const gs={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Es={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const ys={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bs={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Cs={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const vs={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const ws={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Is={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const Bs={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ss={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Qs={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const xs={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Rs={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Ts={parameterPath:"blocks",mapper:ee};const Ns={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _s={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,i){const s={blobServiceProperties:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ds)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}getStatistics(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ps)}listContainersSegment(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ls)}getUserDelegationKey(r,i){const s={keyInfo:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Fs)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ms)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Us)}filterBlobs(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Gs)}}const ks=new C.Serializer(zr,true);const Ds={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ae},default:{bodyMapper:N,headersMapper:me}},requestBody:Wr,queryParameters:[$r,Kr,Zr],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks};const Os={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:B,headersMapper:fe},default:{bodyMapper:N,headersMapper:he}},queryParameters:[$r,Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};const Ps={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:_,headersMapper:ge},default:{bodyMapper:N,headersMapper:Ee}},queryParameters:[$r,Zr,ii],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};const Ls={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:D,headersMapper:ye},default:{bodyMapper:N,headersMapper:be}},queryParameters:[Zr,ni,si,ai,oi,li],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};const Fs={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:M,headersMapper:Ce},default:{bodyMapper:N,headersMapper:ve}},requestBody:ci,queryParameters:[$r,Zr,pi],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks};const Ms={path:"/",httpMethod:"GET",responses:{200:{headersMapper:we},default:{bodyMapper:N,headersMapper:Ie}},queryParameters:[Kr,di],urlParameters:[Xr],headerParameters:[ei,ri],isXML:true,serializer:ks};const Us={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Be},default:{bodyMapper:N,headersMapper:Se}},requestBody:ui,queryParameters:[Zr,Ai],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,mi,fi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks};const Gs={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:Qe},default:{bodyMapper:N,headersMapper:xe}},queryParameters:[Zr,ai,oi,hi,gi],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:ks};class Container{constructor(r){this.client=r}create(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qs)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hs)}delete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Vs)}setMetadata(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,zs)}getAccessPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ys)}setAccessPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ws)}restore(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Js)}rename(r,i){const s={sourceContainerName:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Xs)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,$s)}filterBlobs(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ks)}acquireLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Zs)}releaseLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ea)}renewLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ta)}breakLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ra)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,ia)}listBlobFlatSegment(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,na)}listBlobHierarchySegment(r,i){const s={delimiter:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,sa)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,aa)}}const js=new C.Serializer(zr,true);const qs={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Re},default:{bodyMapper:N,headersMapper:Te}},queryParameters:[Zr,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,bi,Ci,vi],isXML:true,serializer:js};const Hs={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Ne},default:{bodyMapper:N,headersMapper:_e}},queryParameters:[Zr,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi],isXML:true,serializer:js};const Vs={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ke},default:{bodyMapper:N,headersMapper:De}},queryParameters:[Zr,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi],isXML:true,serializer:js};const zs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Oe},default:{bodyMapper:N,headersMapper:Pe}},queryParameters:[Zr,Ei,Si],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii],isXML:true,serializer:js};const Ys={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Le},default:{bodyMapper:N,headersMapper:Fe}},queryParameters:[Zr,Ei,Qi],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi],isXML:true,serializer:js};const Ws={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Me},default:{bodyMapper:N,headersMapper:Ue}},requestBody:xi,queryParameters:[Zr,Ei,Qi],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,bi,wi,Ii,Bi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:js};const Js={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ge},default:{bodyMapper:N,headersMapper:je}},queryParameters:[Zr,Ei,Ri],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ti,Ni],isXML:true,serializer:js};const Xs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:qe},default:{bodyMapper:N,headersMapper:He}},queryParameters:[Zr,Ei,_i],urlParameters:[Xr],headerParameters:[ei,ti,ri,ki,Di],isXML:true,serializer:js};const $s={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Ve},default:{bodyMapper:N,headersMapper:ze}},requestBody:ui,queryParameters:[Zr,Ai,Ei],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,mi,fi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:js};const Ks={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:Ye},default:{bodyMapper:N,headersMapper:We}},queryParameters:[Zr,ai,oi,hi,gi,Ei],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:js};const Zs={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Je},default:{bodyMapper:N,headersMapper:Xe}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Pi,Li,Fi],isXML:true,serializer:js};const ea={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:$e},default:{bodyMapper:N,headersMapper:Ke}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Mi,Ui],isXML:true,serializer:js};const ta={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ze},default:{bodyMapper:N,headersMapper:et}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Gi],isXML:true,serializer:js};const ra={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:tt},default:{bodyMapper:N,headersMapper:rt}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,ji,qi],isXML:true,serializer:js};const ia={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:it},default:{bodyMapper:N,headersMapper:nt}},queryParameters:[Zr,Ei,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Hi,Vi],isXML:true,serializer:js};const na={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:z,headersMapper:st},default:{bodyMapper:N,headersMapper:ot}},queryParameters:[Zr,ni,si,ai,oi,Ei,zi],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:js};const sa={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:$,headersMapper:ct},default:{bodyMapper:N,headersMapper:pt}},queryParameters:[Zr,ni,si,ai,oi,Ei,zi,Yi],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:js};const aa={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:dt},default:{bodyMapper:N,headersMapper:ut}},queryParameters:[Kr,di],urlParameters:[Xr],headerParameters:[ei,ri],isXML:true,serializer:js};class Blob$1{constructor(r){this.client=r}download(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,la)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ca)}delete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,pa)}undelete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,da)}setExpiry(r,i){const s={expiryOptions:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ua)}setHttpHeaders(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Aa)}setImmutabilityPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ma)}deleteImmutabilityPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,fa)}setLegalHold(r,i){const s={legalHold:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ha)}setMetadata(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ga)}acquireLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ea)}releaseLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ya)}renewLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ba)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ca)}breakLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,va)}createSnapshot(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,wa)}startCopyFromURL(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ia)}copyFromURL(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ba)}abortCopyFromURL(r,i){const s={copyId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Sa)}setTier(r,i){const s={tier:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Qa)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,xa)}query(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ra)}getTags(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ta)}setTags(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Na)}}const oa=new C.Serializer(zr,true);const la={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:At},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:At},default:{bodyMapper:N,headersMapper:mt}},queryParameters:[Zr,Wi,Ji],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Xi,$i,Ki,Zi,en,tn,rn,nn,sn],isXML:true,serializer:oa};const ca={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ft},default:{bodyMapper:N,headersMapper:ht}},queryParameters:[Zr,Wi,Ji],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Zi,en,tn,rn,nn,sn],isXML:true,serializer:oa};const pa={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Et},default:{bodyMapper:N,headersMapper:yt}},queryParameters:[Zr,Wi,Ji,ln],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,sn,an],isXML:true,serializer:oa};const da={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bt},default:{bodyMapper:N,headersMapper:Ct}},queryParameters:[Zr,Ri],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:oa};const ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vt},default:{bodyMapper:N,headersMapper:wt}},queryParameters:[Zr,cn],urlParameters:[Xr],headerParameters:[ei,ti,ri,pn,dn],isXML:true,serializer:oa};const Aa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:It},default:{bodyMapper:N,headersMapper:Bt}},queryParameters:[Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,sn,un,An,mn,hn,gn,En],isXML:true,serializer:oa};const ma={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:St},default:{bodyMapper:N,headersMapper:Qt}},queryParameters:[Zr,yn],urlParameters:[Xr],headerParameters:[ei,ti,ri,Bi,bn,Cn],isXML:true,serializer:oa};const fa={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:xt},default:{bodyMapper:N,headersMapper:Rt}},queryParameters:[Zr,yn],urlParameters:[Xr],headerParameters:[ei,ti,ri],isXML:true,serializer:oa};const ha={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tt},default:{bodyMapper:N,headersMapper:Nt}},queryParameters:[Zr,vn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wn],isXML:true,serializer:oa};const ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:N,headersMapper:kt}},queryParameters:[Zr,Si],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In],isXML:true,serializer:oa};const Ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dt},default:{bodyMapper:N,headersMapper:Ot}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Pi,Li,Fi,rn,nn,sn],isXML:true,serializer:oa};const ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Pt},default:{bodyMapper:N,headersMapper:Lt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Mi,Ui,rn,nn,sn],isXML:true,serializer:oa};const ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ft},default:{bodyMapper:N,headersMapper:Mt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Gi,rn,nn,sn],isXML:true,serializer:oa};const Ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ut},default:{bodyMapper:N,headersMapper:Gt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,Ui,Hi,Vi,rn,nn,sn],isXML:true,serializer:oa};const va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jt},default:{bodyMapper:N,headersMapper:qt}},queryParameters:[Zr,Oi],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,ji,qi,rn,nn,sn],isXML:true,serializer:oa};const wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ht},default:{bodyMapper:N,headersMapper:Vt}},queryParameters:[Zr,Bn],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In],isXML:true,serializer:oa};const Ia={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:zt},default:{bodyMapper:N,headersMapper:Yt}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,rn,nn,sn,bn,Cn,Sn,Qn,xn,Rn,Tn,Nn,_n,kn,Dn,On,Pn],isXML:true,serializer:oa};const Ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Wt},default:{bodyMapper:N,headersMapper:Jt}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,yi,wi,Ii,Bi,rn,nn,sn,bn,Cn,In,Sn,xn,Rn,Tn,Nn,kn,Dn,Pn,Ln,Fn,Mn,Un],isXML:true,serializer:oa};const Sa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Xt},default:{bodyMapper:N,headersMapper:$t}},queryParameters:[Zr,Gn,qn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,jn],isXML:true,serializer:oa};const Qa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Kt},202:{headersMapper:Kt},default:{bodyMapper:N,headersMapper:Zt}},queryParameters:[Zr,Wi,Ji,Hn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,sn,Qn,Vn],isXML:true,serializer:oa};const xa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:er},default:{bodyMapper:N,headersMapper:tr}},queryParameters:[Kr,di],urlParameters:[Xr],headerParameters:[ei,ri],isXML:true,serializer:oa};const Ra={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:rr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:rr},default:{bodyMapper:N,headersMapper:ir}},requestBody:zn,queryParameters:[Zr,Wi,Yn],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,wi,Ii,Bi,Zi,en,tn,rn,nn,sn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:oa};const Ta={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:j,headersMapper:nr},default:{bodyMapper:N,headersMapper:sr}},queryParameters:[Zr,Wi,Ji,Wn],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,sn],isXML:true,serializer:oa};const Na={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:ar},default:{bodyMapper:N,headersMapper:or}},requestBody:Jn,queryParameters:[Zr,Ji,Wn],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,wi,sn,Xn,$n],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:oa};class PageBlob{constructor(r){this.client=r}create(r,i,s){const a={contentLength:r,blobContentLength:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Da)}uploadPages(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Oa)}clearPages(r,i){const s={contentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Pa)}uploadPagesFromURL(r,i,s,a,l){const c={sourceUrl:r,sourceRange:i,contentLength:s,range:a,options:C.operationOptionsToRequestOptionsBase(l||{})};return this.client.sendOperationRequest(c,La)}getPageRanges(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fa)}getPageRangesDiff(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ma)}resize(r,i){const s={blobContentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ua)}updateSequenceNumber(r,i){const s={sequenceNumberAction:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ga)}copyIncremental(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ja)}}const _a=new C.Serializer(zr,true);const ka=new C.Serializer(zr,false);const Da={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:lr},default:{bodyMapper:N,headersMapper:cr}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Sn,Dn,Pn,Kn,Zn,es],isXML:true,serializer:_a};const Oa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:N,headersMapper:dr}},requestBody:rs,queryParameters:[Zr,ss],urlParameters:[Xr],headerParameters:[ei,ti,mi,wi,Ii,Bi,Xi,Zi,en,tn,rn,nn,sn,In,Xn,$n,ts,ns,as,os,ls,cs],mediaType:"binary",serializer:ka};const Pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ur},default:{bodyMapper:N,headersMapper:Ar}},queryParameters:[Zr,ss],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Ii,Bi,Xi,Zi,en,tn,rn,nn,sn,In,os,ls,cs,ps],isXML:true,serializer:_a};const La={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:mr},default:{bodyMapper:N,headersMapper:fr}},queryParameters:[Zr,ss],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,xn,Rn,Tn,Nn,Fn,Mn,as,os,ls,cs,ds,us,As,ms],isXML:true,serializer:_a};const Fa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ie,headersMapper:hr},default:{bodyMapper:N,headersMapper:gr}},queryParameters:[Zr,ai,oi,Wi,fs],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Xi,rn,nn,sn],isXML:true,serializer:_a};const Ma={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ie,headersMapper:Er},default:{bodyMapper:N,headersMapper:yr}},queryParameters:[Zr,ai,oi,Wi,fs,hs],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Xi,rn,nn,sn,gs],isXML:true,serializer:_a};const Ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:br},default:{bodyMapper:N,headersMapper:Cr}},queryParameters:[Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,Zn],isXML:true,serializer:_a};const Ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vr},default:{bodyMapper:N,headersMapper:wr}},queryParameters:[Kr,Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,sn,es,Es],isXML:true,serializer:_a};const ja={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ir},default:{bodyMapper:N,headersMapper:Br}},queryParameters:[Zr,ys],urlParameters:[Xr],headerParameters:[ei,ti,ri,Ii,Bi,rn,nn,sn,kn],isXML:true,serializer:_a};class AppendBlob{constructor(r){this.client=r}create(r,i){const s={contentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Va)}appendBlock(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,za)}appendBlockFromUrl(r,i,s){const a={sourceUrl:r,contentLength:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ya)}seal(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Wa)}}const qa=new C.Serializer(zr,true);const Ha=new C.Serializer(zr,false);const Va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sr},default:{bodyMapper:N,headersMapper:Qr}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Dn,Pn,bs],isXML:true,serializer:qa};const za={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xr},default:{bodyMapper:N,headersMapper:Rr}},requestBody:rs,queryParameters:[Zr,Cs],urlParameters:[Xr],headerParameters:[ei,ti,mi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,Xn,$n,ts,ns,vs,ws],mediaType:"binary",serializer:Ha};const Ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Tr},default:{bodyMapper:N,headersMapper:Nr}},queryParameters:[Zr,Cs],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,In,xn,Rn,Tn,Nn,Fn,Mn,Xn,ds,As,vs,ws,Is],isXML:true,serializer:qa};const Wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_r},default:{bodyMapper:N,headersMapper:kr}},queryParameters:[Zr,Bs],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,Ii,Bi,rn,nn,ws],isXML:true,serializer:qa};class BlockBlob{constructor(r){this.client=r}upload(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,$a)}putBlobFromUrl(r,i,s){const a={contentLength:r,copySource:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ka)}stageBlock(r,i,s,a){const l={blockId:r,contentLength:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Za)}stageBlockFromURL(r,i,s,a){const l={blockId:r,contentLength:i,sourceUrl:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,eo)}commitBlockList(r,i){const s={blocks:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,to)}getBlockList(r,i){const s={listType:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ro)}}const Ja=new C.Serializer(zr,true);const Xa=new C.Serializer(zr,false);const $a={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:N,headersMapper:Or}},requestBody:rs,queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Sn,Dn,Pn,Xn,$n,ts,ns,Ss],mediaType:"binary",serializer:Xa};const Ka={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:N,headersMapper:Lr}},queryParameters:[Zr],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,In,Sn,xn,Rn,Tn,Nn,_n,kn,Dn,Fn,Mn,Un,Xn,Ss,Qs],isXML:true,serializer:Ja};const Za={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:N,headersMapper:Mr}},requestBody:rs,queryParameters:[Zr,xs,Rs],urlParameters:[Xr],headerParameters:[ei,ti,mi,wi,Zi,en,tn,In,Xn,$n,ts,ns],mediaType:"binary",serializer:Xa};const eo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ur},default:{bodyMapper:N,headersMapper:Gr}},queryParameters:[Zr,xs,Rs],urlParameters:[Xr],headerParameters:[ei,ti,ri,mi,wi,Zi,en,tn,In,xn,Rn,Tn,Nn,Fn,Mn,ds,As,Is],isXML:true,serializer:Ja};const to={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jr},default:{bodyMapper:N,headersMapper:qr}},requestBody:Ts,queryParameters:[Zr,Ns],urlParameters:[Xr],headerParameters:[Yr,Jr,ei,ti,yi,wi,Ii,Bi,Zi,en,tn,rn,nn,sn,un,An,mn,hn,gn,En,bn,Cn,In,Sn,Dn,Pn,Xn,$n],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ja};const ro={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:te,headersMapper:Hr},default:{bodyMapper:N,headersMapper:Vr}},queryParameters:[Zr,Wi,Ns,_s],urlParameters:[Xr],headerParameters:[ei,ti,ri,wi,sn],isXML:true,serializer:Ja};const io=p.createClientLogger("storage-blob");const no="12.17.0";const so="2023-11-03";const ao=256*1024*1024;const oo=4e3*1024*1024;const lo=5e4;const co=8*1024*1024;const po=4*1024*1024;const uo=5;const Ao=100*1e3;const mo="https://storage.azure.com/.default";const fo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const ho={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const go={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"};const Eo="";const yo="*";const bo=1*1024*1024;const Co=256;const vo=4*bo;const wo="\r\n";const Io="HTTP/1.1";const Bo="AES256";const So=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Qo=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"];const xo=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const Ro="BlobUsesCustomerSpecifiedEncryption";const To="BlobDoesNotUseCustomerSpecifiedEncryption";const No=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const i=a.URLBuilder.parse(r);let s=i.getPath();s=s||"/";s=escape(s);i.setPath(s);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const s=r.split(";");for(const r of s){if(r.trim().startsWith(i)){return r.trim().match(i+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let i="";if(r.startsWith("UseDevelopmentStorage=true")){i=getProxyUriFromDevConnString(r);r=So}let s=getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let c=Buffer.from("accountKey","base64");let p="";l=getValueInConnString(r,"AccountName");c=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!s){a=getValueInConnString(r,"DefaultEndpointsProtocol");const i=a.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(r,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${p}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(c.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:c,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");let a=getValueInConnString(r,"AccountName");if(!a){a=getAccountNameFromUrl(s)}if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!i){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:s,accountName:a,accountSas:i}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,i){const s=a.URLBuilder.parse(r);let l=s.getPath();l=l?l.endsWith("/")?`${l}${i}`:`${l}/${i}`:i;s.setPath(l);const c=new URL(s.toString());return c.toString()}function setURLParameter(r,i,s){const l=a.URLBuilder.parse(r);l.setQueryParameter(i,s);return l.toString()}function getURLParameter(r,i){const s=a.URLBuilder.parse(r);return s.getQueryParameterValue(i)}function setURLHost(r,i){const s=a.URLBuilder.parse(r);s.setHost(i);return s.toString()}function getURLPath(r){const i=a.URLBuilder.parse(r);return i.getPath()}function getURLScheme(r){const i=a.URLBuilder.parse(r);return i.getScheme()}function getURLPathAndQuery(r){const i=a.URLBuilder.parse(r);const s=i.getPath();if(!s){throw new RangeError("Invalid url without valid path.")}let l=i.getQuery()||"";l=l.trim();if(l!==""){l=l.startsWith("?")?l:`?${l}`}return`${s}${l}`}function getURLQueries(r){let i=a.URLBuilder.parse(r).getQuery();if(!i){return{}}i=i.trim();i=i.startsWith("?")?i.substr(1):i;let s=i.split("&");s=s.filter((r=>{const i=r.indexOf("=");const s=r.lastIndexOf("=");return i>0&&i===s&&sl){r=r.slice(0,l)}const c=r+padStart(i.toString(),s-r.length,"0");return base64encode(c)}async function delay(r,i,s){return new Promise(((a,l)=>{let c;const abortHandler=()=>{if(c!==undefined){clearTimeout(c)}l(s)};const resolveHandler=()=>{if(i!==undefined){i.removeEventListener("abort",abortHandler)}a()};c=setTimeout(resolveHandler,r);if(i!==undefined){i.addEventListener("abort",abortHandler)}}))}function padStart(r,i,s=" "){if(String.prototype.padStart){return r.padStart(i,s)}s=s||" ";if(r.length>i){return r}else{i=i-r.length;if(i>s.length){s+=s.repeat(i/s.length)}return s.slice(0,i)+r}}function iEqual(r,i){return r.toLocaleLowerCase()===i.toLocaleLowerCase()}function getAccountNameFromUrl(r){const i=a.URLBuilder.parse(r);let s;try{if(i.getHost().split(".")[1]==="blob"){s=i.getHost().split(".")[0]}else if(isIpEndpointStyle(i)){s=i.getPath().split("/")[1]}else{s=""}return s}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){if(r.getHost()===undefined){return false}const i=r.getHost()+(r.getPort()===undefined?"":":"+r.getPort());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(i)||r.getPort()!==undefined&&No.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const i=[];for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];i.push(`${encodeURIComponent(s)}=${encodeURIComponent(a)}`)}}return i.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const i={blobTagSet:[]};for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];i.blobTagSet.push({key:s,value:a})}}return i}function toTags(r){if(r===undefined){return undefined}const i={};for(const s of r.blobTagSet){i[s.key]=s.value}return i}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const i=[];for(const s in r){const a=s.split("_");const l="or-";if(a[0].startsWith(l)){a[0]=a[0].substring(l.length)}const c={ruleId:a[1],replicationStatus:r[s]};const p=i.findIndex((r=>r.policyId===a[0]));if(p>-1){i[p].rules.push(c)}else{i.push({policyId:a[0],rules:[c]})}}return i}function attachCredential(r,i){r.credential=i;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return Object.assign(Object.assign({},r),{segment:{blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function ConvertInternalResponseOfListBlobHierarchy(r){var i;return Object.assign(Object.assign({},r),{segment:{blobPrefixes:(i=r.segment.blobPrefixes)===null||i===void 0?void 0:i.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i})),blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function*ExtractPageRangeInfoItems(r){let i=[];let s=[];if(r.pageRange)i=r.pageRange;if(r.clearRange)s=r.clearRange;let a=0;let l=0;while(a=1?Math.floor(s.maxTries):_o.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:_o.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:_o.maxRetryDelayInMs):_o.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:_o.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:_o.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,i,s){const a=r.clone();const l=i||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||s%2===1;if(!l){a.url=setURLHost(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=setURLParameter(a.url,fo.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let c;try{io.info(`RetryPolicy: =====> Try=${s} ${l?"Primary":"Secondary"}`);c=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(l,s,c)){return c}i=i||!l&&c.status===404}catch(r){io.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(l,s,c,r)){throw r}}await this.delay(l,s,r.abortSignal);return this.attemptSendRequest(r,i,++s)}shouldRetry(r,i,s,a){if(i>=this.retryOptions.maxTries){io.info(`RetryPolicy: Attempt(s) ${i} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const l=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const r of l){if(a.name.toUpperCase().includes(r)||a.message.toUpperCase().includes(r)||a.code&&a.code.toString().toUpperCase()===r){io.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(s||a){const i=s?s.status:a?a.statusCode:0;if(!r&&i===404){io.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(i===503||i===500){io.info(`RetryPolicy: Will retry for status code ${i}.`);return true}}if((a===null||a===void 0?void 0:a.code)==="PARSE_ERROR"&&(a===null||a===void 0?void 0:a.message.startsWith(`Error "Error: Unclosed root tag`))){io.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,s,a){let l=0;if(r){switch(this.retryOptions.retryPolicyType){case i.StorageRetryPolicyType.EXPONENTIAL:l=Math.min((Math.pow(2,s-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case i.StorageRetryPolicyType.FIXED:l=this.retryOptions.retryDelayInMs;break}}else{l=Math.random()*1e3}io.info(`RetryPolicy: Delay for ${l}ms`);return delay(l,a,ko)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,i){return new StorageRetryPolicy(r,i,this.retryOptions)}}class CredentialPolicy extends a.BaseRequestPolicy{sendRequest(r){return this._nextPolicy.sendRequest(this.signRequest(r))}signRequest(r){return r}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(r,i){super(r,i)}}class Credential{create(r,i){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(r,i){return new AnonymousCredentialPolicy(r,i)}}class TelemetryPolicy extends a.BaseRequestPolicy{constructor(r,i,s){super(r,i);this.telemetry=s}async sendRequest(r){if(a.isNode){if(!r.headers){r.headers=new a.HttpHeaders}if(!r.headers.get(go.USER_AGENT)){r.headers.set(go.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(r)}}class TelemetryPolicyFactory{constructor(r){const i=[];if(a.isNode){if(r){const s=r.userAgentPrefix||"";if(s.length>0&&i.indexOf(s)===-1){i.push(s)}}const s=`azsdk-js-storageblob/${no}`;if(i.indexOf(s)===-1){i.push(s)}let a=`(NODE-VERSION ${process.version})`;if(v){a=`(NODE-VERSION ${process.version}; ${v.type()} ${v.release()})`}if(i.indexOf(a)===-1){i.push(a)}}this.telemetryString=i.join(" ")}create(r,i){return new TelemetryPolicy(r,i,this.telemetryString)}}const Do=new a.DefaultHttpClient;function getCachedDefaultHttpClient(){return Do}const Oo={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Po={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,s){async function tryGetAccessToken(){if(Date.now()r.getToken(i,s);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;l=r;return l})).catch((r=>{a=null;l=null;throw r}))}return a}return async r=>{if(p.mustRefresh)return refresh(r);if(p.shouldRefresh){refresh(r)}return l}}function getChallenge(r){const i=r.headers.get("WWW-Authenticate");if(r.status===401&&i){return i}return}function parseChallenge(r){const i=r.slice("Bearer ".length);const s=`${i.trim()} `.split(" ").filter((r=>r));const a=s.map((r=>(([r,i])=>({[r]:i}))(r.trim().split("="))));return a.reduce(((r,i)=>Object.assign(Object.assign({},r),i)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,i){let s=createTokenCycler(r,i);class StorageBearerTokenChallengeAuthenticationPolicy extends a.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(i){if(!i.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const l=s;const c=(await l({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext}})).token;i.headers.set(Oo.HeaderConstants.AUTHORIZATION,`Bearer ${c}`);const p=await this._nextPolicy.sendRequest(i);if((p===null||p===void 0?void 0:p.status)===401){const l=getChallenge(p);if(l){const c=parseChallenge(l);const p=c.resource_id+Oo.DefaultScope;const d=a.URLBuilder.parse(c.authorization_uri);const u=d.getPath().split("/");const A=u[1];const h=createTokenCycler(r,p);const g=(await h({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext},tenantId:A})).token;s=h;i.headers.set(Oo.HeaderConstants.AUTHORIZATION,`Bearer ${g}`);return this._nextPolicy.sendRequest(i)}}return p}}return{create:(r,i)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,i)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const i=r;return Array.isArray(i.factories)&&typeof i.options==="object"&&typeof i.toServiceClientOptions==="function"}class Pipeline{constructor(r,i={}){this.factories=r;this.options=Object.assign(Object.assign({},i),{httpClient:i.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,i={}){var s;if(r===undefined){r=new AnonymousCredential}const l=new TelemetryPolicyFactory(i.userAgentOptions);const c=[a.tracingPolicy({userAgent:l.telemetryString}),a.keepAlivePolicy(i.keepAliveOptions),l,a.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(i.retryOptions),a.deserializationPolicy(undefined,{xmlCharKey:"#"}),a.logPolicy({logger:io.info,allowedHeaderNames:Qo,allowedQueryParameters:xo})];if(a.isNode){c.push(a.proxyPolicy(i.proxyOptions));c.push(a.disableResponseDecompressionPolicy())}c.push(a.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(s=i.audience)!==null&&s!==void 0?s:mo),r):r);return new Pipeline(c,i)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,i,s){super(r,i);this.factory=s}signRequest(r){r.headers.set(go.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(go.CONTENT_LENGTH,Buffer.byteLength(r.body))}const i=[r.method.toUpperCase(),this.getHeaderValueToSign(r,go.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,go.CONTENT_ENCODING),this.getHeaderValueToSign(r,go.CONTENT_LENGTH),this.getHeaderValueToSign(r,go.CONTENT_MD5),this.getHeaderValueToSign(r,go.CONTENT_TYPE),this.getHeaderValueToSign(r,go.DATE),this.getHeaderValueToSign(r,go.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,go.IF_MATCH),this.getHeaderValueToSign(r,go.IF_NONE_MATCH),this.getHeaderValueToSign(r,go.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,go.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const s=this.factory.computeHMACSHA256(i);r.headers.set(go.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`);return r}getHeaderValueToSign(r,i){const s=r.headers.get(i);if(!s){return""}if(i===go.CONTENT_LENGTH&&s==="0"){return""}return s}getCanonicalizedHeadersString(r){let i=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(go.PREFIX_FOR_STORAGE)));i.sort(((r,i)=>r.name.toLowerCase().localeCompare(i.name.toLowerCase())));i=i.filter(((r,i,s)=>{if(i>0&&r.name.toLowerCase()===s[i-1].name.toLowerCase()){return false}return true}));let s="";i.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}getCanonicalizedResourceString(r){const i=getURLPath(r.url)||"/";let s="";s+=`/${this.factory.accountName}${i}`;const a=getURLQueries(r.url);const l={};if(a){const r=[];for(const i in a){if(Object.prototype.hasOwnProperty.call(a,i)){const s=i.toLowerCase();l[s]=a[i];r.push(s)}}r.sort();for(const i of r){s+=`\n${i}:${decodeURIComponent(l[i])}`}}return s}}class StorageSharedKeyCredential extends Credential{constructor(r,i){super();this.accountName=r;this.accountKey=Buffer.from(i,"base64")}create(r,i){return new StorageSharedKeyCredentialPolicy(r,i,this)}computeHMACSHA256(r){return A.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const Lo="azure-storage-blob";const Fo="12.17.0";class StorageClientContext extends C.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=C.getDefaultUserAgentValue();i.userAgent=`${Lo}/${Fo} ${r}`}super(undefined,i);this.requestContentType="application/json; charset=utf-8";this.baseUri=i.endpoint||"{url}";this.url=r;this.version=i.version||"2023-11-03"}}class StorageClient{constructor(r,i){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=i;this.storageClientContext=new StorageClientContext(this.url,i.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(a.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(a.isTokenCredential(r.credential)){this.credential=r.credential}}const s=this.storageClientContext;s.requestContentType=undefined}}const Mo=c.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var i,s;return{spanOptions:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.spanOptions,tracingContext:(s=r===null||r===void 0?void 0:r.tracingOptions)===null||s===void 0?void 0:s.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new BlobSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"t":i.tag=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${s}`)}}return i}static from(r){const i=new BlobSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const i=new ContainerSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"l":i.list=true;break;case"t":i.tag=true;break;case"x":i.deleteVersion=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;case"f":i.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${s}`)}}return i}static from(r){const i=new ContainerSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.list){i.list=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}if(r.filterByTags){i.filterByTags=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,i){this.accountName=r;this.userDelegationKey=i;this.key=Buffer.from(i.value,"base64")}computeHMACSHA256(r){return A.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}i.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(i.SASProtocol||(i.SASProtocol={}));class SASQueryParameters{constructor(r,i,s,a,l,c,p,d,u,A,h,g,E,y,b,C,v,w,I,B){this.version=r;this.signature=i;if(s!==undefined&&typeof s!=="string"){this.permissions=s.permissions;this.services=s.services;this.resourceTypes=s.resourceTypes;this.protocol=s.protocol;this.startsOn=s.startsOn;this.expiresOn=s.expiresOn;this.ipRangeInner=s.ipRange;this.identifier=s.identifier;this.encryptionScope=s.encryptionScope;this.resource=s.resource;this.cacheControl=s.cacheControl;this.contentDisposition=s.contentDisposition;this.contentEncoding=s.contentEncoding;this.contentLanguage=s.contentLanguage;this.contentType=s.contentType;if(s.userDelegationKey){this.signedOid=s.userDelegationKey.signedObjectId;this.signedTenantId=s.userDelegationKey.signedTenantId;this.signedStartsOn=s.userDelegationKey.signedStartsOn;this.signedExpiresOn=s.userDelegationKey.signedExpiresOn;this.signedService=s.userDelegationKey.signedService;this.signedVersion=s.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=s.preauthorizedAgentObjectId;this.correlationId=s.correlationId}}else{this.services=a;this.resourceTypes=l;this.expiresOn=d;this.permissions=s;this.protocol=c;this.startsOn=p;this.ipRangeInner=u;this.encryptionScope=B;this.identifier=A;this.resource=h;this.cacheControl=g;this.contentDisposition=E;this.contentEncoding=y;this.contentLanguage=b;this.contentType=C;if(v){this.signedOid=v.signedObjectId;this.signedTenantId=v.signedTenantId;this.signedStartsOn=v.signedStartsOn;this.signedExpiresOn=v.signedExpiresOn;this.signedService=v.signedService;this.signedVersion=v.signedVersion;this.preauthorizedAgentObjectId=w;this.correlationId=I}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const i=[];for(const s of r){switch(s){case"sv":this.tryAppendQueryParameter(i,s,this.version);break;case"ss":this.tryAppendQueryParameter(i,s,this.services);break;case"srt":this.tryAppendQueryParameter(i,s,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(i,s,this.protocol);break;case"st":this.tryAppendQueryParameter(i,s,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(i,s,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(i,s,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(i,s,this.identifier);break;case"ses":this.tryAppendQueryParameter(i,s,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(i,s,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(i,s,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(i,s,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(i,s,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(i,s,this.signedService);break;case"skv":this.tryAppendQueryParameter(i,s,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(i,s,this.resource);break;case"sp":this.tryAppendQueryParameter(i,s,this.permissions);break;case"sig":this.tryAppendQueryParameter(i,s,this.signature);break;case"rscc":this.tryAppendQueryParameter(i,s,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(i,s,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(i,s,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(i,s,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(i,s,this.contentType);break;case"saoid":this.tryAppendQueryParameter(i,s,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(i,s,this.correlationId);break}}return i.join("&")}tryAppendQueryParameter(r,i,s){if(!s){return}i=encodeURIComponent(i);s=encodeURIComponent(s);if(i.length>0&&s.length>0){r.push(`${i}=${s}`)}}}function generateBlobSASQueryParameters(r,i,s){const a=r.version?r.version:so;const l=i instanceof StorageSharedKeyCredential?i:undefined;let c;if(l===undefined&&s!==undefined){c=new UserDelegationKeyCredential(s,i)}if(l===undefined&&c===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(l!==undefined){return generateBlobSASQueryParameters20201206(r,l)}else{return generateBlobSASQueryParametersUDK20201206(r,c)}}if(a>="2018-11-09"){if(l!==undefined){return generateBlobSASQueryParameters20181109(r,l)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,c)}else{return generateBlobSASQueryParametersUDK20181109(r,c)}}}if(a>="2015-04-05"){if(l!==undefined){return generateBlobSASQueryParameters20150405(r,l)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";if(r.blobName){s="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[a?a:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const c=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,c,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,i,s){const a=[`/blob/${r}/${i}`];if(s){a.push(`/${s}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const i=r.version?r.version:so;if(r.snapshotTime&&i<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(i<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(i<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(i<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=i;return r}class BlobLeaseClient{constructor(r,i){const s=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(s)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(s)}if(!i){i=a.generateUuid()}this._leaseId=i}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,i={}){var s,a,l,p,d,u;const{span:A,updatedOptions:h}=Mo("BlobLeaseClient-acquireLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==Eo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Eo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:i.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(u=i.conditions)===null||u===void 0?void 0:u.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(h)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async changeLease(r,i={}){var s,a,l,p,d,u;const{span:A,updatedOptions:h}=Mo("BlobLeaseClient-changeLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==Eo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Eo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const s=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(u=i.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(h)));this._leaseId=r;return s}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async releaseLease(r={}){var i,s,a,l,p,d;const{span:u,updatedOptions:A}=Mo("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)!==Eo||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Eo||((p=r.conditions)===null||p===void 0?void 0:p.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async renewLease(r={}){var i,s,a,l,p,d;const{span:u,updatedOptions:A}=Mo("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)!==Eo||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Eo||((p=r.conditions)===null||p===void 0?void 0:p.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async breakLease(r,i={}){var s,a,l,p,d,u;const{span:A,updatedOptions:h}=Mo("BlobLeaseClient-breakLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==Eo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Eo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const s=Object.assign({abortSignal:i.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(u=i.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(h));return await this._containerOrBlobOperation.breakLease(s)}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}}class RetriableReadableStream extends h.Readable{constructor(r,i,s,a,l={}){super({highWaterMark:l.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=i;this.source=r;this.start=s;this.offset=s;this.end=s+a-1;this.maxRetryRequests=l.maxRetryRequests&&l.maxRetryRequests>=0?l.maxRetryRequests:0;this.onProgress=l.onProgress;this.options=l;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(r,i){this.removeSourceEventHandlers();this.source.destroy();i(r===null?undefined:r)}}class BlobDownloadResponse{constructor(r,i,s,a,l={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,i,s,a,l)}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(){return this.originalResponse.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 tagCount(){return this.originalResponse.tagCount}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 lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}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 versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Uo=16;const Go=new Uint8Array([79,98,106,1]);const jo="avro.codec";const qo="avro.schema";class AvroParser{static async readFixedBytes(r,i,s={}){const a=await r.read(i,{abortSignal:s.abortSignal});if(a.length!==i){throw new Error("Hit stream end.")}return a}static async readByte(r,i={}){const s=await AvroParser.readFixedBytes(r,1,i);return s[0]}static async readZigZagLong(r,i={}){let s=0;let a=0;let l,c,p;do{l=await AvroParser.readByte(r,i);c=l&128;s|=(l&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return s>>1^-(s&1)}static async readLong(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readInt(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readNull(){return null}static async readBoolean(r,i={}){const s=await AvroParser.readByte(r,i);if(s===1){return true}else if(s===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,i={}){const s=await AvroParser.readFixedBytes(r,4,i);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat32(0,true)}static async readDouble(r,i={}){const s=await AvroParser.readFixedBytes(r,8,i);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat64(0,true)}static async readBytes(r,i={}){const s=await AvroParser.readLong(r,i);if(s<0){throw new Error("Bytes size was negative.")}return r.read(s,{abortSignal:i.abortSignal})}static async readString(r,i={}){const s=await AvroParser.readBytes(r,i);const a=new TextDecoder;return a.decode(s)}static async readMapPair(r,i,s={}){const a=await AvroParser.readString(r,s);const l=await i(r,s);return{key:a,value:l}}static async readMap(r,i,s={}){const readPairMethod=(r,s={})=>AvroParser.readMapPair(r,i,s);const a=await AvroParser.readArray(r,readPairMethod,s);const l={};for(const r of a){l[r.key]=r.value}return l}static async readArray(r,i,s={}){const a=[];for(let l=await AvroParser.readLong(r,s);l!==0;l=await AvroParser.readLong(r,s)){if(l<0){await AvroParser.readLong(r,s);l=-l}while(l--){const l=await i(r,s);a.push(l)}}return a}}var Ho;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(Ho||(Ho={}));var Vo;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Vo||(Vo={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Vo.NULL:case Vo.BOOLEAN:case Vo.INT:case Vo.LONG:case Vo.FLOAT:case Vo.DOUBLE:case Vo.BYTES:case Vo.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const i=r.type;try{return AvroType.fromStringSchema(i)}catch(r){}switch(i){case Ho.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const s={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const i of r.fields){s[i.name]=AvroType.fromSchema(i.type)}return new AvroRecordType(s,r.name);case Ho.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case Ho.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case Ho.ARRAY:case Ho.FIXED:default:throw new Error(`Unexpected Avro type ${i} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,i={}){switch(this._primitive){case Vo.NULL:return AvroParser.readNull();case Vo.BOOLEAN:return AvroParser.readBoolean(r,i);case Vo.INT:return AvroParser.readInt(r,i);case Vo.LONG:return AvroParser.readLong(r,i);case Vo.FLOAT:return AvroParser.readFloat(r,i);case Vo.DOUBLE:return AvroParser.readDouble(r,i);case Vo.BYTES:return AvroParser.readBytes(r,i);case Vo.STRING:return AvroParser.readString(r,i);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,i={}){const s=await AvroParser.readInt(r,i);return this._symbols[s]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,i={}){const s=await AvroParser.readInt(r,i);return this._types[s].read(r,i)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,i={}){const readItemMethod=(r,i)=>this._itemType.read(r,i);return AvroParser.readMap(r,readItemMethod,i)}}class AvroRecordType extends AvroType{constructor(r,i){super();this._fields=r;this._name=i}async read(r,i={}){const s={};s["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){s[a]=await this._fields[a].read(r,i)}}return s}}function arraysEqual(r,i){if(r===i)return true;if(r==null||i==null)return false;if(r.length!==i.length)return false;for(let s=0;s0){for(let i=0;i0}parseObjects(r={}){return l.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield l.__await(this.initialize(r))}while(this.hasNext()){const i=yield l.__await(this._itemType.read(this._dataStream,{abortSignal:r.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const i=yield l.__await(AvroParser.readFixedBytes(this._dataStream,Uo,{abortSignal:r.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,i)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield l.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}catch(r){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield l.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}}yield yield l.__await(i)}}))}}class AvroReadable{}const zo=new d.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(r){super();this._readable=r;this._position=0}toUint8Array(r){if(typeof r==="string"){return Buffer.from(r)}return r}get position(){return this._position}async read(r,i={}){var s;if((s=i.abortSignal)===null||s===void 0?void 0:s.aborted){throw zo}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const a=this._readable.read(r);if(a){this._position+=a.length;return this.toUint8Array(a)}else{return new Promise(((s,a)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(i.abortSignal){i.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const i=this._readable.read(r);if(i){this._position+=i.length;cleanUp();s(this.toUint8Array(i))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(zo)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(i.abortSignal){i.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends h.Readable{constructor(r,i={}){super();this.avroPaused=true;this.source=r;this.onProgress=i.onProgress;this.onError=i.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:i.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const i=r.value;const s=i.$schema;if(typeof s!=="string"){throw Error("Missing schema in avro record.")}switch(s){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=i.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=i.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=i.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=i.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const s=i.name;if(typeof s!=="string"){throw Error("Invalid name in avro error record.")}const a=i.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const l=i.position;if(typeof l!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:l,name:s,isFatal:r,description:a})}break;default:throw Error(`Unknown schema ${s} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(r,i={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,i)}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(){return undefined}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(){return undefined}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}i.BlockBlobTier=void 0;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(i.BlockBlobTier||(i.BlockBlobTier={}));i.PremiumPageBlobTier=void 0;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(i.PremiumPageBlobTier||(i.PremiumPageBlobTier={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,i){if(r&&!i){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=Bo}}i.StorageBlobAudience=void 0;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(i.StorageBlobAudience||(i.StorageBlobAudience={}));function getBlobServiceAccountAudience(r){return`https://${r}.blob.core.windows.net/.default`}function rangeResponseFromModel(r){const i=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const s=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return Object.assign(Object.assign({},r),{pageRange:i,clearRange:s,_response:Object.assign(Object.assign({},r._response),{parsedBody:{pageRange:i,clearRange:s}})})}class BlobBeginCopyFromUrlPoller extends g.Poller{constructor(r){const{blobClient:i,copySource:s,intervalInMs:a=15e3,onProgress:l,resumeFrom:c,startCopyFromURLOptions:p}=r;let d;if(c){d=JSON.parse(c).state}const u=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},d),{blobClient:i,copySource:s,startCopyFromURLOptions:p}));super(u);if(typeof l==="function"){this.onProgress(l)}this.intervalInMs=a}delay(){return a.delay(this.intervalInMs)}}const Yo=async function cancel(r={}){const i=this.state;const{copyId:s}=i;if(i.isCompleted){return makeBlobBeginCopyFromURLPollOperation(i)}if(!s){i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)}await i.blobClient.abortCopyFromURL(s,{abortSignal:r.abortSignal});i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)};const Wo=async function update(r={}){const i=this.state;const{blobClient:s,copySource:a,startCopyFromURLOptions:l}=i;if(!i.isStarted){i.isStarted=true;const r=await s.startCopyFromURL(a,l);i.copyId=r.copyId;if(r.copyStatus==="success"){i.result=r;i.isCompleted=true}}else if(!i.isCompleted){try{const s=await i.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:a,copyProgress:l}=s;const c=i.copyProgress;if(l){i.copyProgress=l}if(a==="pending"&&l!==c&&typeof r.fireProgress==="function"){r.fireProgress(i)}else if(a==="success"){i.result=s;i.isCompleted=true}else if(a==="failed"){i.error=new Error(`Blob copy failed with reason: "${s.copyStatusDescription||"unknown"}"`);i.isCompleted=true}}catch(r){i.error=r;i.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(i)};const Jo=function toString(){return JSON.stringify({state:this.state},((r,i)=>{if(r==="blobClient"){return undefined}return i}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:Object.assign({},r),cancel:Yo,toString:Jo,update:Wo}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.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 r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var Xo;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(Xo||(Xo={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=Xo.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new E.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,i)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=Xo.Error;i(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const i=[];let s=0;while(sr-s){const a=this.byteOffsetInCurrentBuffer+r-s;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=r-s;this.byteOffsetInCurrentBuffer=a;s=r;break}else{const r=this.byteOffsetInCurrentBuffer+c;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(c===l){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=c;s+=c}}if(i.length>1){this.push(Buffer.concat(i))}else if(i.length===1){this.push(i[0])}}}const $o=s(14300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,i,s){this.buffers=[];this.capacity=r;this._size=0;const a=Math.ceil(r/$o);for(let i=0;i0){r[0]=r[0].slice(c)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,i,s,a,l,c){this.emitter=new E.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(i<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${i}`)}if(s<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${s}`)}if(l<=0){throw new RangeError(`concurrency must be larger than 0, current is ${l}`)}this.bufferSize=i;this.maxBuffers=s;this.readable=r;this.outgoingHandler=a;this.concurrency=l;this.encoding=c}async do(){return new Promise(((r,i)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();i(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengths.getReadableStream()),s.size,this.offset).then(r).catch(i)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const i=r.size;this.executingOutgoingHandlers++;this.offset+=i;try{await this.outgoingHandler((()=>r.getReadableStream()),i,this.offset-i)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(r,i,s,a,l){let c=0;const p=a-s;return new Promise(((a,d)=>{const u=setTimeout((()=>d(new Error(`The operation cannot be completed in timeout.`))),Ao);r.on("readable",(()=>{if(c>=p){clearTimeout(u);a();return}let d=r.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,l)}const A=c+d.length>p?p-c:d.length;i.fill(d.slice(0,A),s+c,s+c+A);c+=A}));r.on("end",(()=>{clearTimeout(u);if(c{clearTimeout(u);d(r)}))}))}async function streamToBuffer2(r,i,s){let a=0;const l=i.length;return new Promise(((c,p)=>{r.on("readable",(()=>{let c=r.read();if(!c){return}if(typeof c==="string"){c=Buffer.from(c,s)}if(a+c.length>l){p(new Error(`Stream exceeds buffer size. Buffer size: ${l}`));return}i.fill(c,a,a+c.length);a+=c.length}));r.on("end",(()=>{c(a)}));r.on("error",p)}))}async function readStreamToLocalFile(r,i){return new Promise(((s,a)=>{const l=w.createWriteStream(i);r.on("error",(r=>{a(r)}));l.on("error",(r=>{a(r)}));l.on("close",s);r.pipe(l)}))}const Ko=I.promisify(w.stat);const Zo=w.createReadStream;class BlobClient extends StorageClient{constructor(r,i,s,l){l=l||{};let c;let p;if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;if(s&&typeof s!=="string"){l=s}c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,fo.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,fo.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,fo.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,i,s={}){var l;s.conditions=s.conditions||{};s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const{span:p,updatedOptions:d}=Mo("BlobClient-download",s);try{const c=await this.blobContext.download(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),requestOptions:{onDownloadProgress:a.isNode?undefined:s.onProgress},range:r===0&&!i?undefined:rangeToString({offset:r,count:i}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey},convertTracingToRequestOptionsBase(d)));const p=Object.assign(Object.assign({},c),{_response:c._response,objectReplicationDestinationPolicyId:c.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(c.objectReplicationRules)});if(!a.isNode){return p}if(s.maxRetryRequests===undefined||s.maxRetryRequests<0){s.maxRetryRequests=uo}if(c.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!c.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async i=>{var a;const l={leaseAccessConditions:s.conditions,modifiedAccessConditions:{ifMatch:s.conditions.ifMatch||c.etag,ifModifiedSince:s.conditions.ifModifiedSince,ifNoneMatch:s.conditions.ifNoneMatch,ifUnmodifiedSince:s.conditions.ifUnmodifiedSince,ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions},range:rangeToString({count:r+c.contentLength-i,offset:i}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:s.abortSignal},l))).readableStreamBody}),r,c.contentLength,{maxRetryRequests:s.maxRetryRequests,onProgress:s.onProgress})}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async exists(r={}){const{span:i,updatedOptions:s}=Mo("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:s.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===Ro||r.details.errorCode===To)){return true}i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getProperties(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const s=await this.blobContext.getProperties(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(a)));return Object.assign(Object.assign({},s),{_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)})}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async delete(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-delete",r);r.conditions=r.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteIfExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("BlobClient-deleteIfExists",r);try{const r=await this.delete(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undelete(r={}){const{span:i,updatedOptions:s}=Mo("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setHTTPHeaders(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setHTTPHeaders",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:r,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setMetadata",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setTags(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setTags",i);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)),{tags:toBlobTags(r)}))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getTags(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-getTags",r);try{const s=await this.blobContext.getTags(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)));const l=Object.assign(Object.assign({},s),{_response:s._response,tags:toTags({blobTagSet:s.blobTagSet})||{}});return l}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var i;const{span:s,updatedOptions:a}=Mo("BlobClient-createSnapshot",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async beginCopyFromURL(r,i={}){const s={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:s,copySource:r,intervalInMs:i.intervalInMs,onProgress:i.onProgress,resumeFrom:i.resumeFrom,startCopyFromURLOptions:i});await a.poll();return a}async abortCopyFromURL(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobClient-abortCopyFromURL",i);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async syncCopyFromURL(r,i={}){var s,a,l;const{span:p,updatedOptions:d}=Mo("BlobClient-syncCopyFromURL",i);i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};try{return await this.blobContext.copyFromURL(r,Object.assign({abortSignal:i.abortSignal,metadata:i.metadata,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},sourceContentMD5:i.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,encryptionScope:i.encryptionScope,copySourceTags:i.copySourceTags},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async setAccessTier(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlobClient-setAccessTier",i);try{return await this.blobContext.setTier(toAccessTier(r),Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),rehydratePriority:i.rehydratePriority},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async downloadToBuffer(r,i,s,a={}){let l;let p=0;let d=0;let u=a;if(r instanceof Buffer){l=r;p=i||0;d=typeof s==="number"?s:0}else{p=typeof r==="number"?r:0;d=typeof i==="number"?i:0;u=s||{}}const{span:A,updatedOptions:h}=Mo("BlobClient-downloadToBuffer",u);try{if(!u.blockSize){u.blockSize=0}if(u.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(u.blockSize===0){u.blockSize=po}if(p<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!u.conditions){u.conditions={}}if(!d){const r=await this.getProperties(Object.assign(Object.assign({},u),{tracingOptions:Object.assign(Object.assign({},u.tracingOptions),convertTracingToRequestOptionsBase(h))}));d=r.contentLength-p;if(d<0){throw new RangeError(`offset ${p} shouldn't be larger than blob size ${r.contentLength}`)}}if(!l){try{l=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(l.length{let i=p+d;if(s+u.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},r),this.credential).toString();i(appendToURLQuery(this.url,s))}))}async deleteImmutabilityPolicy(r){const{span:i,updatedOptions:s}=Mo("BlobClient-deleteImmutabilityPolicy",r);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:r===null||r===void 0?void 0:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setImmutabilityPolicy(r,i){const{span:s,updatedOptions:a}=Mo("BlobClient-setImmutabilityPolicy",i);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal,immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,modifiedAccessConditions:i===null||i===void 0?void 0:i.modifiedAccessCondition},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setLegalHold(r,i){const{span:s,updatedOptions:a}=Mo("BlobClient-setLegalHold",i);try{return await this.blobContext.setLegalHold(r,Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}}class AppendBlobClient extends BlobClient{constructor(r,i,s,l){let c;let p;l=l||{};if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(r){return new AppendBlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){var i,s,a;const{span:l,updatedOptions:p}=Mo("AppendBlobClient-create",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(s=r.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(a=r.immutabilityPolicy)===null||a===void 0?void 0:a.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async createIfNotExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("AppendBlobClient-createIfNotExists",r);const p={ifNoneMatch:yo};try{const r=await this.create(Object.assign(Object.assign({},l),{conditions:p}));return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async seal(r={}){var i;const{span:s,updatedOptions:a}=Mo("AppendBlobClient-seal",r);r.conditions=r.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async appendBlock(r,i,s={}){var a;const{span:l,updatedOptions:p}=Mo("AppendBlobClient-appendBlock",s);s.conditions=s.conditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(i,r,Object.assign({abortSignal:s.abortSignal,appendPositionAccessConditions:s.conditions,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async appendBlockFromURL(r,i,s,a={}){var l;const{span:p,updatedOptions:d}=Mo("AppendBlobClient-appendBlockFromURL",a);a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(r,0,Object.assign({abortSignal:a.abortSignal,sourceRange:rangeToString({offset:i,count:s}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions.ifMatch,sourceIfModifiedSince:a.sourceConditions.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class BlockBlobClient extends BlobClient{constructor(r,i,s,l){let c;let p;l=l||{};if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;if(s&&typeof s!=="string"){l=s}c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(r){return new BlockBlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,i={}){var s;ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const{span:l,updatedOptions:p}=Mo("BlockBlobClient-query",i);try{if(!a.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const l=await this._blobContext.query(Object.assign({abortSignal:i.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(i.inputTextConfiguration),outputSerialization:toQuerySerialization(i.outputTextConfiguration)},leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey},convertTracingToRequestOptionsBase(p)));return new BlobQueryResponse(l,{abortSignal:i.abortSignal,onProgress:i.onProgress,onError:i.onError})}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async upload(r,i,s={}){var a,l,p;s.conditions=s.conditions||{};const{span:d,updatedOptions:u}=Mo("BlockBlobClient-upload",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(i,r,Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:s.onProgress},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:(l=s.immutabilityPolicy)===null||l===void 0?void 0:l.expiriesOn,immutabilityPolicyMode:(p=s.immutabilityPolicy)===null||p===void 0?void 0:p.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async syncUploadFromURL(r,i={}){var s,a,l,p,d;i.conditions=i.conditions||{};const{span:u,updatedOptions:A}=Mo("BlockBlobClient-syncUploadFromURL",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,r,Object.assign(Object.assign(Object.assign({},i),{blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:i.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(s=i.sourceConditions)===null||s===void 0?void 0:s.ifMatch,sourceIfModifiedSince:(a=i.sourceConditions)===null||a===void 0?void 0:a.ifModifiedSince,sourceIfNoneMatch:(l=i.sourceConditions)===null||l===void 0?void 0:l.ifNoneMatch,sourceIfUnmodifiedSince:(p=i.sourceConditions)===null||p===void 0?void 0:p.ifUnmodifiedSince,sourceIfTags:(d=i.sourceConditions)===null||d===void 0?void 0:d.tagConditions},cpkInfo:i.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),copySourceTags:i.copySourceTags}),convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async stageBlock(r,i,s,a={}){const{span:l,updatedOptions:p}=Mo("BlockBlobClient-stageBlock",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(r,s,i,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async stageBlockFromURL(r,i,s=0,a,l={}){const{span:p,updatedOptions:d}=Mo("BlockBlobClient-stageBlockFromURL",l);try{ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(r,0,i,Object.assign({abortSignal:l.abortSignal,leaseAccessConditions:l.conditions,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,sourceRange:s===0&&!a?undefined:rangeToString({offset:s,count:a}),cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:httpAuthorizationToString(l.sourceAuthorization)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async commitBlockList(r,i={}){var s,a,l;i.conditions=i.conditions||{};const{span:p,updatedOptions:d}=Mo("BlockBlobClient-commitBlockList",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:r},Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async getBlockList(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("BlockBlobClient-getBlockList",i);try{const a=await this.blockBlobContext.getBlockList(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadData(r,i={}){const{span:s,updatedOptions:l}=Mo("BlockBlobClient-uploadData",i);try{if(a.isNode){let i;if(r instanceof Buffer){i=r}else if(r instanceof ArrayBuffer){i=Buffer.from(r)}else{r=r;i=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,s)=>i.slice(r,r+s)),i.byteLength,l)}else{const i=new Blob([r]);return this.uploadSeekableInternal(((r,s)=>i.slice(r,r+s)),i.size,l)}}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadBrowserData(r,i={}){const{span:s,updatedOptions:a}=Mo("BlockBlobClient-uploadBrowserData",i);try{const i=new Blob([r]);return await this.uploadSeekableInternal(((r,s)=>i.slice(r,r+s)),i.size,a)}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadSeekableInternal(r,i,s={}){if(!s.blockSize){s.blockSize=0}if(s.blockSize<0||s.blockSize>oo){throw new RangeError(`blockSize option must be >= 0 and <= ${oo}`)}if(s.maxSingleShotSize!==0&&!s.maxSingleShotSize){s.maxSingleShotSize=ao}if(s.maxSingleShotSize<0||s.maxSingleShotSize>ao){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ao}`)}if(s.blockSize===0){if(i>oo*lo){throw new RangeError(`${i} is too larger to upload to a block blob.`)}if(i>s.maxSingleShotSize){s.blockSize=Math.ceil(i/lo);if(s.blockSizelo){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${lo}`)}const c=[];const d=a.generateUuid();let u=0;const A=new Batch(s.concurrency);for(let a=0;a{const A=generateBlockID(d,a);const h=s.blockSize*a;const g=a===l-1?i:h+s.blockSize;const E=g-h;c.push(A);await this.stageBlock(A,r(h,E),E,{abortSignal:s.abortSignal,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:p.tracingOptions});u+=E;if(s.onProgress){s.onProgress({loadedBytes:u})}}))}await A.do();return this.commitBlockList(c,p)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadFile(r,i={}){const{span:s,updatedOptions:a}=Mo("BlockBlobClient-uploadFile",i);try{const s=(await Ko(r)).size;return await this.uploadSeekableInternal(((i,s)=>()=>Zo(r,{autoClose:true,end:s?i+s-1:Infinity,start:i})),s,Object.assign(Object.assign({},i),{tracingOptions:Object.assign(Object.assign({},i.tracingOptions),convertTracingToRequestOptionsBase(a))}))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadStream(r,i=co,s=5,l={}){if(!l.blobHTTPHeaders){l.blobHTTPHeaders={}}if(!l.conditions){l.conditions={}}const{span:p,updatedOptions:d}=Mo("BlockBlobClient-uploadStream",l);try{let c=0;const p=a.generateUuid();let u=0;const A=[];const h=new BufferScheduler(r,i,s,(async(r,i)=>{const s=generateBlockID(p,c);A.push(s);c++;await this.stageBlock(s,r,i,{conditions:l.conditions,encryptionScope:l.encryptionScope,tracingOptions:d.tracingOptions});u+=i;if(l.onProgress){l.onProgress({loadedBytes:u})}}),Math.ceil(s/4*3));await h.do();return await this.commitBlockList(A,Object.assign(Object.assign({},l),{tracingOptions:Object.assign(Object.assign({},l.tracingOptions),convertTracingToRequestOptionsBase(d))}))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class PageBlobClient extends BlobClient{constructor(r,i,s,l){let c;let p;l=l||{};if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const u=s;const A=extractConnectionStringParts(r);if(A.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(A.accountName,A.accountKey);p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(A.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(A.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(A.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+A.accountSas;c=newPipeline(new AnonymousCredential,l)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(p,c);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(r){return new PageBlobClient(setURLParameter(this.url,fo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,i={}){var s,a,l;i.conditions=i.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-create",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,blobSequenceNumber:i.blobSequenceNumber,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async createIfNotExists(r,i={}){var s,a;const{span:l,updatedOptions:p}=Mo("PageBlobClient-createIfNotExists",i);try{const s={ifNoneMatch:yo};const a=await this.create(r,Object.assign(Object.assign({},i),{conditions:s,tracingOptions:p.tracingOptions}));return Object.assign(Object.assign({succeeded:true},a),{_response:a._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="BlobAlreadyExists"){l.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadPages(r,i,s,a={}){var l;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-uploadPages",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(s,r,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},range:rangeToString({offset:i,count:s}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async uploadPagesFromURL(r,i,s,a,l={}){var p;l.conditions=l.conditions||{};l.sourceConditions=l.sourceConditions||{};const{span:d,updatedOptions:u}=Mo("PageBlobClient-uploadPagesFromURL",l);try{ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:i,count:a}),0,rangeToString({offset:s,count:a}),Object.assign({abortSignal:l.abortSignal,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,leaseAccessConditions:l.conditions,sequenceNumberAccessConditions:l.conditions,modifiedAccessConditions:Object.assign(Object.assign({},l.conditions),{ifTags:(p=l.conditions)===null||p===void 0?void 0:p.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:l.sourceConditions.ifMatch,sourceIfModifiedSince:l.sourceConditions.ifModifiedSince,sourceIfNoneMatch:l.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:l.sourceConditions.ifUnmodifiedSince},cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:httpAuthorizationToString(l.sourceAuthorization)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async clearPages(r=0,i,s={}){var a;s.conditions=s.conditions||{};const{span:l,updatedOptions:p}=Mo("PageBlobClient-clearPages",s);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:i}),sequenceNumberAccessConditions:s.conditions,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getPageRanges(r=0,i,s={}){var a;s.conditions=s.conditions||{};const{span:l,updatedOptions:p}=Mo("PageBlobClient-getPageRanges",s);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(p))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async listPageRangesSegment(r=0,i,s,a={}){var l;const{span:p,updatedOptions:d}=Mo("PageBlobClient-getPageRangesSegment",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),range:rangeToString({offset:r,count:i}),marker:s,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}listPageRangeItemSegments(r=0,i,s,a={}){return l.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let c;if(!!s||s===undefined){do{c=yield l.__await(this.listPageRangesSegment(r,i,s,a));s=c.continuationToken;yield yield l.__await(yield l.__await(c))}while(s)}}))}listPageRangeItems(r=0,i,s={}){return l.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var a,c;let p;try{for(var d=l.__asyncValues(this.listPageRangeItemSegments(r,i,p,s)),u;u=yield l.__await(d.next()),!u.done;){const r=u.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield l.__await(c.call(d))}finally{if(a)throw a.error}}}))}listPageRanges(r=0,i,s={}){s.conditions=s.conditions||{};const a=this.listPageRangeItems(r,i,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(r,i,a.continuationToken,Object.assign({maxPageSize:a.maxPageSize},s))}}async getPageRangesDiff(r,i,s,a={}){var l;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-getPageRangesDiff",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),prevsnapshot:s,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async listPageRangesDiffSegment(r,i,s,a,l){var p;const{span:d,updatedOptions:u}=Mo("PageBlobClient-getPageRangesDiffSegment",l);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:l===null||l===void 0?void 0:l.abortSignal,leaseAccessConditions:l===null||l===void 0?void 0:l.conditions,modifiedAccessConditions:Object.assign(Object.assign({},l===null||l===void 0?void 0:l.conditions),{ifTags:(p=l===null||l===void 0?void 0:l.conditions)===null||p===void 0?void 0:p.tagConditions}),prevsnapshot:s,range:rangeToString({offset:r,count:i}),marker:a,maxPageSize:l===null||l===void 0?void 0:l.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeDiffItemSegments(r,i,s,a,c){return l.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let p;if(!!a||a===undefined){do{p=yield l.__await(this.listPageRangesDiffSegment(r,i,s,a,c));a=p.continuationToken;yield yield l.__await(yield l.__await(p))}while(a)}}))}listPageRangeDiffItems(r,i,s,a){return l.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var c,p;let d;try{for(var u=l.__asyncValues(this.listPageRangeDiffItemSegments(r,i,s,d,a)),A;A=yield l.__await(u.next()),!A.done;){const r=A.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){c={error:r}}finally{try{if(A&&!A.done&&(p=u.return))yield l.__await(p.call(u))}finally{if(c)throw c.error}}}))}listPageRangesDiff(r,i,s,a={}){a.conditions=a.conditions||{};const l=this.listPageRangeDiffItems(r,i,s,Object.assign({},a));return{next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(l={})=>this.listPageRangeDiffItemSegments(r,i,s,l.continuationToken,Object.assign({maxPageSize:l.maxPageSize},a))}}async getPageRangesDiffForManagedDisks(r,i,s,a={}){var l;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Mo("PageBlobClient-GetPageRangesDiffForManagedDisks",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),prevSnapshotUrl:s,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async resize(r,i={}){var s;i.conditions=i.conditions||{};const{span:a,updatedOptions:l}=Mo("PageBlobClient-resize",i);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async updateSequenceNumber(r,i,s={}){var a;s.conditions=s.conditions||{};const{span:l,updatedOptions:p}=Mo("PageBlobClient-updateSequenceNumber",s);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:s.abortSignal,blobSequenceNumber:i,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async startCopyIncremental(r,i={}){var s;const{span:a,updatedOptions:l}=Mo("PageBlobClient-startCopyIncremental",i);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}async function getBodyAsText(r){let i=Buffer.alloc(vo);const s=await streamToBuffer2(r.readableStreamBody,i);i=i.slice(0,s);return i.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const el=": ";const tl=" ";const rl=-1;class BatchResponseParser{constructor(r,i){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!i||i.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=i;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${wo}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==ho.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const i=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const s=i.length;if(s!==this.subRequests.size&&s!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const l=new Array(s);let c=0;let p=0;for(let r=0;r=0&&E{if(this.keys[r]===undefined||this.keys[r]===il.UNLOCKED){this.keys[r]=il.LOCKED;i()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=il.LOCKED;i()}))}}))}static async unlock(r){return new Promise((i=>{if(this.keys[r]===il.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];i()}))}static onUnlockEvent(r,i){if(this.listeners[r]===undefined){this.listeners[r]=[i]}else{this.listeners[r].push(i)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const i=this.listeners[r].shift();setImmediate((()=>{i.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,i){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await i();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,i,s){let l;let p;if(typeof r==="string"&&(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i))){l=r;p=i}else if(r instanceof BlobClient){l=r.url;p=r.credential;s=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!s){s={}}const{span:d,updatedOptions:u}=Mo("BatchDeleteRequest-addSubRequest",s);try{this.setBatchType("delete");await this.addSubRequestInternal({url:l,credential:p},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(p)).delete(u)}))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async setBlobAccessTier(r,i,s,l){let p;let d;let u;if(typeof r==="string"&&(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i))){p=r;d=i;u=s}else if(r instanceof BlobClient){p=r.url;d=r.credential;u=i;l=s}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!l){l={}}const{span:A,updatedOptions:h}=Mo("BatchSetTierRequest-addSubRequest",l);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:p,credential:d},(async()=>{await new BlobClient(p,this.batchRequest.createPipeline(d)).setAccessTier(u,h)}))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const r=a.generateUuid();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${wo}${go.CONTENT_TYPE}: application/http${wo}${go.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const i=r instanceof AnonymousCredential;const s=3+(i?0:1);const l=new Array(s);l[0]=a.deserializationPolicy();l[1]=new BatchHeaderFilterPolicyFactory;if(!i){l[2]=a.isTokenCredential(r)?attachCredential(a.bearerTokenAuthenticationPolicy(r,mo),r):r}l[s-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(l,{})}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${go.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${getURLPathAndQuery(r.url)} ${Io}${wo}`].join(wo);for(const i of r.headers.headersArray()){this.body+=`${i.name}: ${i.value}${wo}`}this.body+=wo}preAddSubRequest(r){if(this.operationCount>=Co){throw new RangeError(`Cannot exceed ${Co} sub requests in a single batch`)}const i=getURLPath(r.url);if(!i||i===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${wo}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends a.BaseRequestPolicy{constructor(r,i,s){super(i,s);this.dummyResponse={request:new a.WebResource,status:200,headers:new a.HttpHeaders};this.batchRequest=r}async sendRequest(r){await this.batchRequest.appendSubRequestToBody(r);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(r){this.batchRequest=r}create(r,i){return new BatchRequestAssemblePolicy(this.batchRequest,r,i)}}class BatchHeaderFilterPolicy extends a.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){let i="";for(const s of r.headers.headersArray()){if(iEqual(s.name,go.X_MS_VERSION)){i=s.name}}if(i!==""){r.headers.remove(i)}return this._nextPolicy.sendRequest(r)}}class BatchHeaderFilterPolicyFactory{create(r,i){return new BatchHeaderFilterPolicy(r,i)}}class BlobBatchClient{constructor(r,i,s){let a;if(isPipelineLike(i)){a=i}else if(!i){a=newPipeline(new AnonymousCredential,s)}else{a=newPipeline(i,s)}const l=new StorageClientContext(r,a.toServiceClientOptions());const c=getURLPath(r);if(c&&c!=="/"){this.serviceOrContainerContext=new Container(l)}else{this.serviceOrContainerContext=new Service(l)}}createBatch(){return new BlobBatch}async deleteBlobs(r,i,s){const a=new BlobBatch;for(const l of r){if(typeof l==="string"){await a.deleteBlob(l,i,s)}else{await a.deleteBlob(l,i)}}return this.submitBatch(a)}async setBlobsAccessTier(r,i,s,a){const l=new BlobBatch;for(const c of r){if(typeof c==="string"){await l.setBlobAccessTier(c,i,s,a)}else{await l.setBlobAccessTier(c,i,s)}}return this.submitBatch(l)}async submitBatch(r,i={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:s,updatedOptions:a}=Mo("BlobBatchClient-submitBatch",i);try{const s=r.getHttpRequestBody();const l=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(s),r.getMultiPartContentType(),s,Object.assign(Object.assign({},i),convertTracingToRequestOptionsBase(a)));const c=new BatchResponseParser(l,r.getSubRequests());const p=await c.parseBatchResponse();const d={_response:l._response,contentType:l.contentType,errorCode:l.errorCode,requestId:l.requestId,clientRequestId:l.clientRequestId,version:l.version,subResponses:p.subResponses,subResponsesSucceededCount:p.subResponsesSucceededCount,subResponsesFailedCount:p.subResponsesFailedCount};return d}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}}class ContainerClient extends StorageClient{constructor(r,i,s){let l;let c;s=s||{};if(isPipelineLike(i)){c=r;l=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){c=r;l=newPipeline(i,s)}else if(!i&&typeof i!=="string"){c=r;l=newPipeline(new AnonymousCredential,s)}else if(i&&typeof i==="string"){const p=i;const d=extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);c=appendToURLPath(d.url,encodeURIComponent(p));if(!s.proxyOptions){s.proxyOptions=a.getDefaultProxySettings(d.proxyUri)}l=newPipeline(r,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){c=appendToURLPath(d.url,encodeURIComponent(p))+"?"+d.accountSas;l=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(c,l);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(r={}){const{span:i,updatedOptions:s}=Mo("ContainerClient-create",r);try{return await this.containerContext.create(Object.assign(Object.assign({},r),convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async createIfNotExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("ContainerClient-createIfNotExists",r);try{const r=await this.create(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="ContainerAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async exists(r={}){const{span:i,updatedOptions:s}=Mo("ContainerClient-exists",r);try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:s.tracingOptions});return true}catch(r){if(r.statusCode===404){i.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}getBlobClient(r){return new BlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:s}=Mo("ContainerClient-getProperties",r);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:r.abortSignal},r.conditions),convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async delete(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:s}=Mo("ContainerClient-delete",r);try{return await this.containerContext.delete(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteIfExists(r={}){var i,s;const{span:a,updatedOptions:l}=Mo("ContainerClient-deleteIfExists",r);try{const r=await this.delete(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="ContainerNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,i={}){if(!i.conditions){i.conditions={}}if(i.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:s,updatedOptions:a}=Mo("ContainerClient-setMetadata",i);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:i.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:s}=Mo("ContainerClient-getAccessPolicy",r);try{const i=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions},convertTracingToRequestOptionsBase(s)));const a={_response:i._response,blobPublicAccess:i.blobPublicAccess,date:i.date,etag:i.etag,errorCode:i.errorCode,lastModified:i.lastModified,requestId:i.requestId,clientRequestId:i.clientRequestId,signedIdentifiers:[],version:i.version};for(const r of i){let i=undefined;if(r.accessPolicy){i={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){i.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){i.startsOn=new Date(r.accessPolicy.startsOn)}}a.signedIdentifiers.push({accessPolicy:i,id:r.id})}return a}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setAccessPolicy(r,i,s={}){s.conditions=s.conditions||{};const{span:a,updatedOptions:l}=Mo("ContainerClient-setAccessPolicy",s);try{const a=[];for(const r of i||[]){a.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:s.abortSignal,access:r,containerAcl:a,leaseAccessConditions:s.conditions,modifiedAccessConditions:s.conditions},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,i,s,a={}){const{span:l,updatedOptions:p}=Mo("ContainerClient-uploadBlockBlob",a);try{const a=this.getBlockBlobClient(r);const l=await a.upload(i,s,p);return{blockBlobClient:a,response:l}}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async deleteBlob(r,i={}){const{span:s,updatedOptions:a}=Mo("ContainerClient-deleteBlob",i);try{let s=this.getBlobClient(r);if(i.versionId){s=s.withVersion(i.versionId)}return await s.delete(a)}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async listBlobFlatSegment(r,i={}){const{span:s,updatedOptions:a}=Mo("ContainerClient-listBlobFlatSegment",i);try{const s=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:r},i),convertTracingToRequestOptionsBase(a)));const l=Object.assign(Object.assign({},s),{_response:Object.assign(Object.assign({},s._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(s._response.parsedBody)}),segment:Object.assign(Object.assign({},s.segment),{blobItems:s.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return i}))})});return l}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async listBlobHierarchySegment(r,i,s={}){var a;const{span:l,updatedOptions:p}=Mo("ContainerClient-listBlobHierarchySegment",s);try{const l=await this.containerContext.listBlobHierarchySegment(r,Object.assign(Object.assign({marker:i},s),convertTracingToRequestOptionsBase(p)));const c=Object.assign(Object.assign({},l),{_response:Object.assign(Object.assign({},l._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(l._response.parsedBody)}),segment:Object.assign(Object.assign({},l.segment),{blobItems:l.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return i})),blobPrefixes:(a=l.segment.blobPrefixes)===null||a===void 0?void 0:a.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))})});return c}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}listSegments(r,i={}){return l.__asyncGenerator(this,arguments,(function*listSegments_1(){let s;if(!!r||r===undefined){do{s=yield l.__await(this.listBlobFlatSegment(r,i));r=s.continuationToken;yield yield l.__await(yield l.__await(s))}while(r)}}))}listItems(r={}){return l.__asyncGenerator(this,arguments,(function*listItems_1(){var i,s;let a;try{for(var c=l.__asyncValues(this.listSegments(a,r)),p;p=yield l.__await(c.next()),!p.done;){const r=p.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.segment.blobItems)))}}catch(r){i={error:r}}finally{try{if(p&&!p.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(i)throw i.error}}}))}listBlobsFlat(r={}){const i=[];if(r.includeCopy){i.push("copy")}if(r.includeDeleted){i.push("deleted")}if(r.includeMetadata){i.push("metadata")}if(r.includeSnapshots){i.push("snapshots")}if(r.includeVersions){i.push("versions")}if(r.includeUncommitedBlobs){i.push("uncommittedblobs")}if(r.includeTags){i.push("tags")}if(r.includeDeletedWithVersions){i.push("deletedwithversions")}if(r.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(r.includeLegalHold){i.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const s=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},s))}}listHierarchySegments(r,i,s={}){return l.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let a;if(!!i||i===undefined){do{a=yield l.__await(this.listBlobHierarchySegment(r,i,s));i=a.continuationToken;yield yield l.__await(yield l.__await(a))}while(i)}}))}listItemsByHierarchy(r,i={}){return l.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var s,a;let c;try{for(var p=l.__asyncValues(this.listHierarchySegments(r,c,i)),d;d=yield l.__await(p.next()),!d.done;){const r=d.value;const i=r.segment;if(i.blobPrefixes){for(const r of i.blobPrefixes){yield yield l.__await(Object.assign({kind:"prefix"},r))}}for(const r of i.blobItems){yield yield l.__await(Object.assign({kind:"blob"},r))}}}catch(r){s={error:r}}finally{try{if(d&&!d.done&&(a=p.return))yield l.__await(a.call(p))}finally{if(s)throw s.error}}}))}listBlobsByHierarchy(r,i={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const s=[];if(i.includeCopy){s.push("copy")}if(i.includeDeleted){s.push("deleted")}if(i.includeMetadata){s.push("metadata")}if(i.includeSnapshots){s.push("snapshots")}if(i.includeVersions){s.push("versions")}if(i.includeUncommitedBlobs){s.push("uncommittedblobs")}if(i.includeTags){s.push("tags")}if(i.includeDeletedWithVersions){s.push("deletedwithversions")}if(i.includeImmutabilityPolicy){s.push("immutabilitypolicy")}if(i.includeLegalHold){s.push("legalhold")}if(i.prefix===""){i.prefix=undefined}const a=Object.assign(Object.assign({},i),s.length>0?{include:s}:{});const l=this.listItemsByHierarchy(r,a);return{async next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listHierarchySegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},a))}}async findBlobsByTagsSegment(r,i,s={}){const{span:a,updatedOptions:l}=Mo("ContainerClient-findBlobsByTagsSegment",s);try{const a=await this.containerContext.filterBlobs(Object.assign({abortSignal:s.abortSignal,where:r,marker:i,maxPageSize:s.maxPageSize},convertTracingToRequestOptionsBase(l)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var i;let s="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){s=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:s})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,i,s={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!i||i===undefined){do{a=yield l.__await(this.findBlobsByTagsSegment(r,i,s));a.blobs=a.blobs||[];i=a.continuationToken;yield yield l.__await(a)}while(i)}}))}findBlobsByTagsItems(r,i={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var s,a;let c;try{for(var p=l.__asyncValues(this.findBlobsByTagsSegments(r,c,i)),d;d=yield l.__await(p.next()),!d.done;){const r=d.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.blobs)))}}catch(r){s={error:r}}finally{try{if(d&&!d.done&&(a=p.return))yield l.__await(a.call(p))}finally{if(s)throw s.error}}}))}findBlobsByTags(r,i={}){const s=Object.assign({},i);const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},s))}}getContainerNameFromUrl(){let r;try{const i=a.URLBuilder.parse(this.url);if(i.getHost().split(".")[1]==="blob"){r=i.getPath().split("/")[1]}else if(isIpEndpointStyle(i)){r=i.getPath().split("/")[2]}else{r=i.getPath().split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((i=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},r),this.credential).toString();i(appendToURLQuery(this.url,s))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new AccountSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"l":i.list=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"u":i.update=true;break;case"p":i.process=true;break;case"t":i.tag=true;break;case"f":i.filter=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${s}`)}}return i}static from(r){const i=new AccountSASPermissions;if(r.read){i.read=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.filter){i.filter=true}if(r.tag){i.tag=true}if(r.list){i.list=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.update){i.update=true}if(r.process){i.process=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(r){const i=new AccountSASResourceTypes;for(const s of r){switch(s){case"s":i.service=true;break;case"c":i.container=true;break;case"o":i.object=true;break;default:throw new RangeError(`Invalid resource type: ${s}`)}}return i}toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(r){const i=new AccountSASServices;for(const s of r){switch(s){case"b":i.blob=true;break;case"f":i.file=true;break;case"q":i.queue=true;break;case"t":i.table=true;break;default:throw new RangeError(`Invalid service character: ${s}`)}}return i}toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,i){const s=r.version?r.version:so;if(r.permissions&&r.permissions.setImmutabilityPolicy&&s<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&s<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const a=AccountSASPermissions.parse(r.permissions.toString());const l=AccountSASServices.parse(r.services).toString();const c=AccountSASResourceTypes.parse(r.resourceTypes).toString();let p;if(s>="2020-12-06"){p=[i.accountName,a,l,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{p=[i.accountName,a,l,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,""].join("\n")}const d=i.computeHMACSHA256(p);return new SASQueryParameters(s,d,a.toString(),l,c,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(r,i,s){let l;if(isPipelineLike(i)){l=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){l=newPipeline(i,s)}else{l=newPipeline(new AnonymousCredential,s)}super(r,l);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(r,i){i=i||{};const s=extractConnectionStringParts(r);if(s.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(s.accountName,s.accountKey);if(!i.proxyOptions){i.proxyOptions=a.getDefaultProxySettings(s.proxyUri)}const l=newPipeline(r,i);return new BlobServiceClient(s.url,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(s.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,i);return new BlobServiceClient(s.url+"?"+s.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(r){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-createContainer",i);try{const i=this.getContainerClient(r);const s=await i.create(a);return{containerClient:i,containerCreateResponse:s}}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteContainer(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-deleteContainer",i);try{const i=this.getContainerClient(r);return await i.delete(a)}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async undeleteContainer(r,i,s={}){const{span:a,updatedOptions:l}=Mo("BlobServiceClient-undeleteContainer",s);try{const a=this.getContainerClient(s.destinationContainerName||r);const c=new Container(a["storageClientContext"]);const p=await c.restore(Object.assign({deletedContainerName:r,deletedContainerVersion:i},l));return{containerClient:a,containerUndeleteResponse:p}}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async renameContainer(r,i,s={}){var a;const{span:l,updatedOptions:p}=Mo("BlobServiceClient-renameContainer",s);try{const l=this.getContainerClient(i);const c=new Container(l["storageClientContext"]);const d=await c.rename(r,Object.assign(Object.assign({},p),{sourceLeaseId:(a=s.sourceCondition)===null||a===void 0?void 0:a.leaseId}));return{containerClient:l,containerRenameResponse:d}}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getProperties(r={}){const{span:i,updatedOptions:s}=Mo("BlobServiceClient-getProperties",r);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setProperties(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-setProperties",i);try{return await this.serviceContext.setProperties(r,Object.assign({abortSignal:i.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getStatistics(r={}){const{span:i,updatedOptions:s}=Mo("BlobServiceClient-getStatistics",r);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getAccountInfo(r={}){const{span:i,updatedOptions:s}=Mo("BlobServiceClient-getAccountInfo",r);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listContainersSegment(r,i={}){const{span:s,updatedOptions:a}=Mo("BlobServiceClient-listContainersSegment",i);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:i.abortSignal,marker:r},i),{include:typeof i.include==="string"?[i.include]:i.include}),convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async findBlobsByTagsSegment(r,i,s={}){const{span:a,updatedOptions:l}=Mo("BlobServiceClient-findBlobsByTagsSegment",s);try{const a=await this.serviceContext.filterBlobs(Object.assign({abortSignal:s.abortSignal,where:r,marker:i,maxPageSize:s.maxPageSize},convertTracingToRequestOptionsBase(l)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var i;let s="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){s=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:s})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,i,s={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!i||i===undefined){do{a=yield l.__await(this.findBlobsByTagsSegment(r,i,s));a.blobs=a.blobs||[];i=a.continuationToken;yield yield l.__await(a)}while(i)}}))}findBlobsByTagsItems(r,i={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var s,a;let c;try{for(var p=l.__asyncValues(this.findBlobsByTagsSegments(r,c,i)),d;d=yield l.__await(p.next()),!d.done;){const r=d.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.blobs)))}}catch(r){s={error:r}}finally{try{if(d&&!d.done&&(a=p.return))yield l.__await(a.call(p))}finally{if(s)throw s.error}}}))}findBlobsByTags(r,i={}){const s=Object.assign({},i);const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},s))}}listSegments(r,i={}){return l.__asyncGenerator(this,arguments,(function*listSegments_1(){let s;if(!!r||r===undefined){do{s=yield l.__await(this.listContainersSegment(r,i));s.containerItems=s.containerItems||[];r=s.continuationToken;yield yield l.__await(yield l.__await(s))}while(r)}}))}listItems(r={}){return l.__asyncGenerator(this,arguments,(function*listItems_1(){var i,s;let a;try{for(var c=l.__asyncValues(this.listSegments(a,r)),p;p=yield l.__await(c.next()),!p.done;){const r=p.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.containerItems)))}}catch(r){i={error:r}}finally{try{if(p&&!p.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(i)throw i.error}}}))}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const i=[];if(r.includeDeleted){i.push("deleted")}if(r.includeMetadata){i.push("metadata")}if(r.includeSystem){i.push("system")}const s=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},s))}}async getUserDelegationKey(r,i,s={}){const{span:a,updatedOptions:l}=Mo("BlobServiceClient-getUserDelegationKey",s);try{const a=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(r,false),expiresOn:truncatedISO8061Date(i,false)},Object.assign({abortSignal:s.abortSignal},convertTracingToRequestOptionsBase(l)));const c={signedObjectId:a.signedObjectId,signedTenantId:a.signedTenantId,signedStartsOn:new Date(a.signedStartsOn),signedExpiresOn:new Date(a.signedExpiresOn),signedService:a.signedService,signedVersion:a.signedVersion,value:a.value};const p=Object.assign({_response:a._response,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,date:a.date,errorCode:a.errorCode},c);return p}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,i=AccountSASPermissions.parse("r"),s="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const i=new Date;r=new Date(i.getTime()+3600*1e3)}const l=generateAccountSASQueryParameters(Object.assign({permissions:i,expiresOn:r,resourceTypes:s,services:AccountSASServices.parse("b").toString()},a),this.credential).toString();return appendToURLQuery(this.url,l)}}i.KnownEncryptionAlgorithmType=void 0;(function(r){r["AES256"]="AES256"})(i.KnownEncryptionAlgorithmType||(i.KnownEncryptionAlgorithmType={}));Object.defineProperty(i,"BaseRequestPolicy",{enumerable:true,get:function(){return a.BaseRequestPolicy}});Object.defineProperty(i,"HttpHeaders",{enumerable:true,get:function(){return a.HttpHeaders}});Object.defineProperty(i,"RequestPolicyOptions",{enumerable:true,get:function(){return a.RequestPolicyOptions}});Object.defineProperty(i,"RestError",{enumerable:true,get:function(){return a.RestError}});Object.defineProperty(i,"WebResource",{enumerable:true,get:function(){return a.WebResource}});Object.defineProperty(i,"deserializationPolicy",{enumerable:true,get:function(){return a.deserializationPolicy}});i.AccountSASPermissions=AccountSASPermissions;i.AccountSASResourceTypes=AccountSASResourceTypes;i.AccountSASServices=AccountSASServices;i.AnonymousCredential=AnonymousCredential;i.AnonymousCredentialPolicy=AnonymousCredentialPolicy;i.AppendBlobClient=AppendBlobClient;i.BlobBatch=BlobBatch;i.BlobBatchClient=BlobBatchClient;i.BlobClient=BlobClient;i.BlobLeaseClient=BlobLeaseClient;i.BlobSASPermissions=BlobSASPermissions;i.BlobServiceClient=BlobServiceClient;i.BlockBlobClient=BlockBlobClient;i.ContainerClient=ContainerClient;i.ContainerSASPermissions=ContainerSASPermissions;i.Credential=Credential;i.CredentialPolicy=CredentialPolicy;i.PageBlobClient=PageBlobClient;i.Pipeline=Pipeline;i.SASQueryParameters=SASQueryParameters;i.StorageBrowserPolicy=StorageBrowserPolicy;i.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;i.StorageOAuthScopes=mo;i.StorageRetryPolicy=StorageRetryPolicy;i.StorageRetryPolicyFactory=StorageRetryPolicyFactory;i.StorageSharedKeyCredential=StorageSharedKeyCredential;i.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;i.generateAccountSASQueryParameters=generateAccountSASQueryParameters;i.generateBlobSASQueryParameters=generateBlobSASQueryParameters;i.getBlobServiceAccountAudience=getBlobServiceAccountAudience;i.isPipelineLike=isPipelineLike;i.logger=io;i.newPipeline=newPipeline},40334:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s=/^v1\./;const a=/^ghs_/;const l=/^ghu_/;async function auth(r){const i=r.split(/\./).length===3;const c=s.test(r)||a.test(r);const p=l.test(r);const d=i?"app":c?"installation":p?"user-to-server":"oauth";return{type:"token",token:r,tokenType:d}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,i,s,a){const l=i.endpoint.merge(s,a);l.headers.authorization=withAuthorizationPrefix(r);return i(l)}const c=function createTokenAuth(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};i.createTokenAuth=c},76762:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(45030);var l=s(83682);var c=s(36234);var p=s(88467);var d=s(40334);function _objectWithoutPropertiesLoose(r,i){if(r==null)return{};var s={};var a=Object.keys(r);var l,c;for(c=0;c=0)continue;s[l]=r[l]}return s}function _objectWithoutProperties(r,i){if(r==null)return{};var s=_objectWithoutPropertiesLoose(r,i);var a,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(l=0;l=0)continue;if(!Object.prototype.propertyIsEnumerable.call(r,a))continue;s[a]=r[a]}}return s}const u="3.6.0";const A=["authStrategy"];class Octokit{constructor(r={}){const i=new l.Collection;const s={baseUrl:c.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};s.headers["user-agent"]=[r.userAgent,`octokit-core.js/${u} ${a.getUserAgent()}`].filter(Boolean).join(" ");if(r.baseUrl){s.baseUrl=r.baseUrl}if(r.previews){s.mediaType.previews=r.previews}if(r.timeZone){s.headers["time-zone"]=r.timeZone}this.request=c.request.defaults(s);this.graphql=p.withCustomRequest(this.request).defaults(s);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},r.log);this.hook=i;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const s=d.createTokenAuth(r.auth);i.wrap("request",s.hook);this.auth=s}}else{const{authStrategy:s}=r,a=_objectWithoutProperties(r,A);const l=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));i.wrap("request",l.hook);this.auth=l}const h=this.constructor;h.plugins.forEach((i=>{Object.assign(this,i(this,r))}))}static defaults(r){const i=class extends(this){constructor(...i){const s=i[0]||{};if(typeof r==="function"){super(r(s));return}super(Object.assign({},r,s,s.userAgent&&r.userAgent?{userAgent:`${s.userAgent} ${r.userAgent}`}:null))}};return i}static plugin(...r){var i;const s=this.plugins;const a=(i=class extends(this){},i.plugins=s.concat(r.filter((r=>!s.includes(r)))),i);return a}}Octokit.VERSION=u;Octokit.plugins=[];i.Octokit=Octokit},59440:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(63287);var l=s(45030);function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((i,s)=>{i[s.toLowerCase()]=r[s];return i}),{})}function mergeDeep(r,i){const s=Object.assign({},r);Object.keys(i).forEach((l=>{if(a.isPlainObject(i[l])){if(!(l in r))Object.assign(s,{[l]:i[l]});else s[l]=mergeDeep(r[l],i[l])}else{Object.assign(s,{[l]:i[l]})}}));return s}function removeUndefinedProperties(r){for(const i in r){if(r[i]===undefined){delete r[i]}}return r}function merge(r,i,s){if(typeof i==="string"){let[r,a]=i.split(" ");s=Object.assign(a?{method:r,url:a}:{url:r},s)}else{s=Object.assign({},i)}s.headers=lowercaseKeys(s.headers);removeUndefinedProperties(s);removeUndefinedProperties(s.headers);const a=mergeDeep(r||{},s);if(r&&r.mediaType.previews.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=a.mediaType.previews.map((r=>r.replace(/-preview/,"")));return a}function addQueryParameters(r,i){const s=/\?/.test(r)?"&":"?";const a=Object.keys(i);if(a.length===0){return r}return r+s+a.map((r=>{if(r==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(i[r])}`})).join("&")}const c=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const i=r.match(c);if(!i){return[]}return i.map(removeNonChars).reduce(((r,i)=>r.concat(i)),[])}function omit(r,i){return Object.keys(r).filter((r=>!i.includes(r))).reduce(((i,s)=>{i[s]=r[s];return i}),{})}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,i,s){i=r==="+"||r==="#"?encodeReserved(i):encodeUnreserved(i);if(s){return encodeUnreserved(s)+"="+i}else{return i}}function isDefined(r){return r!==undefined&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,i,s,a){var l=r[s],c=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="boolean"){l=l.toString();if(a&&a!=="*"){l=l.substring(0,parseInt(a,10))}c.push(encodeValue(i,l,isKeyOperator(i)?s:""))}else{if(a==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){c.push(encodeValue(i,r,isKeyOperator(i)?s:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){c.push(encodeValue(i,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(s){r.push(encodeValue(i,s))}))}else{Object.keys(l).forEach((function(s){if(isDefined(l[s])){r.push(encodeUnreserved(s));r.push(encodeValue(i,l[s].toString()))}}))}if(isKeyOperator(i)){c.push(encodeUnreserved(s)+"="+r.join(","))}else if(r.length!==0){c.push(r.join(","))}}}}else{if(i===";"){if(isDefined(l)){c.push(encodeUnreserved(s))}}else if(l===""&&(i==="&"||i==="?")){c.push(encodeUnreserved(s)+"=")}else if(l===""){c.push("")}}return c}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,i){var s=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,l){if(a){let r="";const l=[];if(s.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(s){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);l.push(getValues(i,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var c=",";if(r==="?"){c="&"}else if(r!=="#"){c=r}return(l.length!==0?r:"")+l.join(c)}else{return l.join(",")}}else{return encodeReserved(l)}}))}function parse(r){let i=r.method.toUpperCase();let s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let l;let c=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const p=extractUrlVariableNames(s);s=parseUrl(s).expand(c);if(!/^http/.test(s)){s=r.baseUrl+s}const d=Object.keys(r).filter((r=>p.includes(r))).concat("baseUrl");const u=omit(c,d);const A=/application\/octet-stream/i.test(a.accept);if(!A){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(r.mediaType.previews.length){const i=a.accept.match(/[\w-]+(?=-preview)/g)||[];a.accept=i.concat(r.mediaType.previews).map((i=>{const s=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${s}`})).join(",")}}if(["GET","HEAD"].includes(i)){s=addQueryParameters(s,u)}else{if("data"in u){l=u.data}else{if(Object.keys(u).length){l=u}else{a["content-length"]=0}}}if(!a["content-type"]&&typeof l!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof l==="undefined"){l=""}return Object.assign({method:i,url:s,headers:a},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,i,s){return parse(merge(r,i,s))}function withDefaults(r,i){const s=merge(r,i);const a=endpointWithDefaults.bind(null,s);return Object.assign(a,{DEFAULTS:s,defaults:withDefaults.bind(null,s),merge:merge.bind(null,s),parse:parse})}const p="6.0.12";const d=`octokit-endpoint.js/${p} ${l.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const A=withDefaults(null,u);i.endpoint=A},88467:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(36234);var l=s(45030);const c="4.8.0";function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(r,i,s){super(_buildMessageForResponseErrors(s));this.request=r;this.headers=i;this.response=s;this.name="GraphqlResponseError";this.errors=s.errors;this.data=s.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const p=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const u=/\/api\/v3\/?$/;function graphql(r,i,s){if(s){if(typeof i==="string"&&"query"in s){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in s){if(!d.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof i==="string"?Object.assign({query:i},s):i;const l=Object.keys(a).reduce(((r,i)=>{if(p.includes(i)){r[i]=a[i];return r}if(!r.variables){r.variables={}}r.variables[i]=a[i];return r}),{});const c=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(u.test(c)){l.url=c.replace(u,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const i={};for(const s of Object.keys(r.headers)){i[s]=r.headers[s]}throw new GraphqlResponseError(l,i,r.data)}return r.data.data}))}function withDefaults(r,i){const s=r.defaults(i);const newApi=(r,i)=>graphql(s,r,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,s),endpoint:a.request.endpoint})}const A=withDefaults(a.request,{headers:{"user-agent":`octokit-graphql.js/${c} ${l.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=A;i.withCustomRequest=withCustomRequest},64193:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s="2.17.0";function ownKeys(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);if(i){a=a.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))}s.push.apply(s,a)}return s}function _objectSpread2(r){for(var i=1;i({async next(){if(!d)return{done:true};try{const r=await l({method:c,url:d,headers:p});const i=normalizePaginatedListResponse(r);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(r){if(r.status!==409)throw r;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,i,s,a){if(typeof s==="function"){a=s;s=undefined}return gather(r,[],iterator(r,i,s)[Symbol.asyncIterator](),a)}function gather(r,i,s,a){return s.next().then((l=>{if(l.done){return i}let c=false;function done(){c=true}i=i.concat(a?a(l.value,done):l.value.data);if(c){return i}return gather(r,i,s,a)}))}const a=Object.assign(paginate,{iterator:iterator});const l=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/actions/runners/downloads","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/autolinks","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return l.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=s;i.composePaginateRest=a;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=l},68883:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s="1.0.4";function requestLog(r){r.hook.wrap("request",((i,s)=>{r.log.debug("request",s);const a=Date.now();const l=r.request.endpoint.parse(s);const c=l.url.replace(s.baseUrl,"");return i(s).then((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);return i})).catch((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);throw i}))}))}requestLog.VERSION=s;i.requestLog=requestLog},83044:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function ownKeys(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);if(i){a=a.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))}s.push.apply(s,a)}return s}function _objectSpread2(r){for(var i=1;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=_interopDefault(s(11174));async function errorRequest(r,i,s,a){if(!s.request||!s.request.request){throw s}if(s.status>=400&&!i.doNotRetry.includes(s.status)){const l=a.request.retries!=null?a.request.retries:i.retries;const c=Math.pow((a.request.retryCount||0)+1,2);throw r.retry.retryRequest(s,l,c)}throw s}async function wrapRequest(r,i,s){const l=new a;l.on("failed",(function(i,a){const l=~~i.request.request.retries;const c=~~i.request.request.retryAfter;s.request.retryCount=a.retryCount+1;if(l>a.retryCount){return c*r.retryAfterBaseValue}}));return l.schedule(i,s)}const l="3.0.9";function retry(r,i){const s=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422],retries:3},i.retry);if(s.enabled){r.hook.error("request",errorRequest.bind(null,r,s));r.hook.wrap("request",wrapRequest.bind(null,s))}return{retry:{retryRequest:(r,i,s)=>{r.request.request=Object.assign({},r.request.request,{retries:i,retryAfter:s});return r}}}}retry.VERSION=l;i.VERSION=l;i.retry=retry},10537:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=s(58932);var l=_interopDefault(s(1223));const c=l((r=>console.warn(r)));const p=l((r=>console.warn(r)));class RequestError extends Error{constructor(r,i,s){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let l;if("headers"in s&&typeof s.headers!=="undefined"){l=s.headers}if("response"in s){this.response=s.response;l=s.response.headers}const d=Object.assign({},s.request);if(s.request.headers.authorization){d.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){c(new a.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){p(new a.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return l||{}}})}}i.RequestError=RequestError},36234:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=s(59440);var l=s(45030);var c=s(63287);var p=_interopDefault(s(80467));var d=s(10537);const u="5.6.3";function getBufferResponse(r){return r.arrayBuffer()}function fetchWrapper(r){const i=r.request&&r.request.log?r.request.log:console;if(c.isPlainObject(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let s={};let a;let l;const u=r.request&&r.request.fetch||p;return u(r.url,Object.assign({method:r.method,body:r.body,headers:r.headers,redirect:r.redirect},r.request)).then((async c=>{l=c.url;a=c.status;for(const r of c.headers){s[r[0]]=r[1]}if("deprecation"in s){const a=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/);const l=a&&a.pop();i.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${l?`. See ${l}`:""}`)}if(a===204||a===205){return}if(r.method==="HEAD"){if(a<400){return}throw new d.RequestError(c.statusText,a,{response:{url:l,status:a,headers:s,data:undefined},request:r})}if(a===304){throw new d.RequestError("Not modified",a,{response:{url:l,status:a,headers:s,data:await getResponseData(c)},request:r})}if(a>=400){const i=await getResponseData(c);const p=new d.RequestError(toErrorMessage(i),a,{response:{url:l,status:a,headers:s,data:i},request:r});throw p}return getResponseData(c)})).then((r=>({status:a,url:l,headers:s,data:r}))).catch((i=>{if(i instanceof d.RequestError)throw i;throw new d.RequestError(i.message,500,{request:r})}))}async function getResponseData(r){const i=r.headers.get("content-type");if(/application\/json/.test(i)){return r.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return r.text()}return getBufferResponse(r)}function toErrorMessage(r){if(typeof r==="string")return r;if("message"in r){if(Array.isArray(r.errors)){return`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}`}return r.message}return`Unknown error: ${JSON.stringify(r)}`}function withDefaults(r,i){const s=r.defaults(i);const newApi=function(r,i){const a=s.merge(r,i);if(!a.request||!a.request.hook){return fetchWrapper(s.parse(a))}const request=(r,i)=>fetchWrapper(s.parse(s.merge(r,i)));Object.assign(request,{endpoint:s,defaults:withDefaults.bind(null,s)});return a.request.hook(request,a)};return Object.assign(newApi,{endpoint:s,defaults:withDefaults.bind(null,s)})}const A=withDefaults(a.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${l.getUserAgent()}`}});i.request=A},55375:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Octokit:()=>y});r.exports=__toCommonJS(d);var u=s(4952);var A=s(70748);var h=s(30606);var g=s(94923);var E="20.0.2";var y=u.Octokit.plugin(A.requestLog,g.legacyRestEndpointMethods,h.paginateRest).defaults({userAgent:`octokit-rest.js/${E}`});0&&0},57633:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{createTokenAuth:()=>A});r.exports=__toCommonJS(c);var p=/^v1\./;var d=/^ghs_/;var u=/^ghu_/;async function auth(r){const i=r.split(/\./).length===3;const s=p.test(r)||d.test(r);const a=u.test(r);const l=i?"app":s?"installation":a?"user-to-server":"oauth";return{type:"token",token:r,tokenType:l}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,i,s,a){const l=i.endpoint.merge(s,a);l.headers.authorization=withAuthorizationPrefix(r);return i(l)}var A=function createTokenAuth2(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};0&&0},4952:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Octokit:()=>b});r.exports=__toCommonJS(d);var u=s(45030);var A=s(83682);var h=s(26206);var g=s(37461);var E=s(57633);var y="5.0.0";var b=class{static{this.VERSION=y}static defaults(r){const i=class extends(this){constructor(...i){const s=i[0]||{};if(typeof r==="function"){super(r(s));return}super(Object.assign({},r,s,s.userAgent&&r.userAgent?{userAgent:`${s.userAgent} ${r.userAgent}`}:null))}};return i}static{this.plugins=[]}static plugin(...r){const i=this.plugins;const s=class extends(this){static{this.plugins=i.concat(r.filter((r=>!i.includes(r))))}};return s}constructor(r={}){const i=new A.Collection;const s={baseUrl:h.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};s.headers["user-agent"]=[r.userAgent,`octokit-core.js/${y} ${(0,u.getUserAgent)()}`].filter(Boolean).join(" ");if(r.baseUrl){s.baseUrl=r.baseUrl}if(r.previews){s.mediaType.previews=r.previews}if(r.timeZone){s.headers["time-zone"]=r.timeZone}this.request=h.request.defaults(s);this.graphql=(0,g.withCustomRequest)(this.request).defaults(s);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},r.log);this.hook=i;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const s=(0,E.createTokenAuth)(r.auth);i.wrap("request",s.hook);this.auth=s}}else{const{authStrategy:s,...a}=r;const l=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));i.wrap("request",l.hook);this.auth=l}const a=this.constructor;a.plugins.forEach((i=>{Object.assign(this,i(this,r))}))}};0&&0},96065:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{endpoint:()=>b});r.exports=__toCommonJS(d);var u=s(45030);var A="9.0.0";var h=`octokit-endpoint.js/${A} ${(0,u.getUserAgent)()}`;var g={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":h},mediaType:{format:""}};function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((i,s)=>{i[s.toLowerCase()]=r[s];return i}),{})}var E=s(63287);function mergeDeep(r,i){const s=Object.assign({},r);Object.keys(i).forEach((a=>{if((0,E.isPlainObject)(i[a])){if(!(a in r))Object.assign(s,{[a]:i[a]});else s[a]=mergeDeep(r[a],i[a])}else{Object.assign(s,{[a]:i[a]})}}));return s}function removeUndefinedProperties(r){for(const i in r){if(r[i]===void 0){delete r[i]}}return r}function merge(r,i,s){if(typeof i==="string"){let[r,a]=i.split(" ");s=Object.assign(a?{method:r,url:a}:{url:r},s)}else{s=Object.assign({},i)}s.headers=lowercaseKeys(s.headers);removeUndefinedProperties(s);removeUndefinedProperties(s.headers);const a=mergeDeep(r||{},s);if(s.url==="/graphql"){if(r&&r.mediaType.previews?.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=(a.mediaType.previews||[]).map((r=>r.replace(/-preview/,"")))}return a}function addQueryParameters(r,i){const s=/\?/.test(r)?"&":"?";const a=Object.keys(i);if(a.length===0){return r}return r+s+a.map((r=>{if(r==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(i[r])}`})).join("&")}var y=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const i=r.match(y);if(!i){return[]}return i.map(removeNonChars).reduce(((r,i)=>r.concat(i)),[])}function omit(r,i){return Object.keys(r).filter((r=>!i.includes(r))).reduce(((i,s)=>{i[s]=r[s];return i}),{})}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,i,s){i=r==="+"||r==="#"?encodeReserved(i):encodeUnreserved(i);if(s){return encodeUnreserved(s)+"="+i}else{return i}}function isDefined(r){return r!==void 0&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,i,s,a){var l=r[s],c=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="boolean"){l=l.toString();if(a&&a!=="*"){l=l.substring(0,parseInt(a,10))}c.push(encodeValue(i,l,isKeyOperator(i)?s:""))}else{if(a==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){c.push(encodeValue(i,r,isKeyOperator(i)?s:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){c.push(encodeValue(i,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(s){r.push(encodeValue(i,s))}))}else{Object.keys(l).forEach((function(s){if(isDefined(l[s])){r.push(encodeUnreserved(s));r.push(encodeValue(i,l[s].toString()))}}))}if(isKeyOperator(i)){c.push(encodeUnreserved(s)+"="+r.join(","))}else if(r.length!==0){c.push(r.join(","))}}}}else{if(i===";"){if(isDefined(l)){c.push(encodeUnreserved(s))}}else if(l===""&&(i==="&"||i==="?")){c.push(encodeUnreserved(s)+"=")}else if(l===""){c.push("")}}return c}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,i){var s=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,l){if(a){let r="";const l=[];if(s.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(s){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);l.push(getValues(i,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var c=",";if(r==="?"){c="&"}else if(r!=="#"){c=r}return(l.length!==0?r:"")+l.join(c)}else{return l.join(",")}}else{return encodeReserved(l)}}))}function parse(r){let i=r.method.toUpperCase();let s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let l;let c=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const p=extractUrlVariableNames(s);s=parseUrl(s).expand(c);if(!/^http/.test(s)){s=r.baseUrl+s}const d=Object.keys(r).filter((r=>p.includes(r))).concat("baseUrl");const u=omit(c,d);const A=/application\/octet-stream/i.test(a.accept);if(!A){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(s.endsWith("/graphql")){if(r.mediaType.previews?.length){const i=a.accept.match(/[\w-]+(?=-preview)/g)||[];a.accept=i.concat(r.mediaType.previews).map((i=>{const s=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${s}`})).join(",")}}}if(["GET","HEAD"].includes(i)){s=addQueryParameters(s,u)}else{if("data"in u){l=u.data}else{if(Object.keys(u).length){l=u}}}if(!a["content-type"]&&typeof l!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof l==="undefined"){l=""}return Object.assign({method:i,url:s,headers:a},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,i,s){return parse(merge(r,i,s))}function withDefaults(r,i){const s=merge(r,i);const a=endpointWithDefaults.bind(null,s);return Object.assign(a,{DEFAULTS:s,defaults:withDefaults.bind(null,s),merge:merge.bind(null,s),parse:parse})}var b=withDefaults(null,g);0&&0},37461:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{GraphqlResponseError:()=>y,graphql:()=>w,withCustomRequest:()=>withCustomRequest});r.exports=__toCommonJS(d);var u=s(26206);var A=s(45030);var h="7.0.1";var g=s(26206);var E=s(26206);function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}var y=class extends Error{constructor(r,i,s){super(_buildMessageForResponseErrors(s));this.request=r;this.headers=i;this.response=s;this.name="GraphqlResponseError";this.errors=s.errors;this.data=s.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var b=["method","baseUrl","url","headers","request","query","mediaType"];var C=["query","method","url"];var v=/\/api\/v3\/?$/;function graphql(r,i,s){if(s){if(typeof i==="string"&&"query"in s){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in s){if(!C.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof i==="string"?Object.assign({query:i},s):i;const l=Object.keys(a).reduce(((r,i)=>{if(b.includes(i)){r[i]=a[i];return r}if(!r.variables){r.variables={}}r.variables[i]=a[i];return r}),{});const c=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(v.test(c)){l.url=c.replace(v,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const i={};for(const s of Object.keys(r.headers)){i[s]=r.headers[s]}throw new y(l,i,r.data)}return r.data.data}))}function withDefaults(r,i){const s=r.defaults(i);const newApi=(r,i)=>graphql(s,r,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,s),endpoint:s.endpoint})}var w=withDefaults(u.request,{headers:{"user-agent":`octokit-graphql.js/${h} ${(0,A.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}0&&0},30606:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{composePaginateRest:()=>d,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>u});r.exports=__toCommonJS(c);var p="9.0.0";function normalizePaginatedListResponse(r){if(!r.data){return{...r,data:[]}}const i="total_count"in r.data&&!("url"in r.data);if(!i)return r;const s=r.data.incomplete_results;const a=r.data.repository_selection;const l=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const c=Object.keys(r.data)[0];const p=r.data[c];r.data=p;if(typeof s!=="undefined"){r.data.incomplete_results=s}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=l;return r}function iterator(r,i,s){const a=typeof i==="function"?i.endpoint(s):r.request.endpoint(i,s);const l=typeof i==="function"?i:r.request;const c=a.method;const p=a.headers;let d=a.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!d)return{done:true};try{const r=await l({method:c,url:d,headers:p});const i=normalizePaginatedListResponse(r);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(r){if(r.status!==409)throw r;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,i,s,a){if(typeof s==="function"){a=s;s=void 0}return gather(r,[],iterator(r,i,s)[Symbol.asyncIterator](),a)}function gather(r,i,s,a){return s.next().then((l=>{if(l.done){return i}let c=false;function done(){c=true}i=i.concat(a?a(l.value,done):l.value.data);if(c){return i}return gather(r,i,s,a)}))}var d=Object.assign(paginate,{iterator:iterator});var u=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return u.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=p;0&&0},70748:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{requestLog:()=>requestLog});r.exports=__toCommonJS(c);var p="4.0.0";function requestLog(r){r.hook.wrap("request",((i,s)=>{r.log.debug("request",s);const a=Date.now();const l=r.request.endpoint.parse(s);const c=l.url.replace(s.baseUrl,"");return i(s).then((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);return i})).catch((i=>{r.log.info(`${l.method} ${c} - ${i.status} in ${Date.now()-a}ms`);throw i}))}))}requestLog.VERSION=p;0&&0},94923:r=>{"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var a in s)i(r,a,{get:s[a],enumerable:true})};var __copyProps=(r,c,p,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!l.call(r,u)&&u!==p)i(r,u,{get:()=>c[u],enumerable:!(d=s(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var c={};__export(c,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});r.exports=__toCommonJS(c);var p="10.0.0";var d={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotForBusinessSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotForBusinessSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatAssignmentDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployment"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var u=d;var A=new Map;for(const[r,i]of Object.entries(u)){for(const[s,a]of Object.entries(i)){const[i,l,c]=a;const[p,d]=i.split(/ /);const u=Object.assign({method:p,url:d},l);if(!A.has(r)){A.set(r,new Map)}A.get(r).set(s,{scope:r,methodName:s,endpointDefaults:u,decorations:c})}}var h={get({octokit:r,scope:i,cache:s},a){if(s[a]){return s[a]}const{decorations:l,endpointDefaults:c}=A.get(i).get(a);if(l){s[a]=decorate(r,i,a,c,l)}else{s[a]=r.request.defaults(c)}return s[a]}};function endpointsToMethods(r){const i={};for(const s of A.keys()){i[s]=new Proxy({octokit:r,scope:s,cache:{}},h)}return i}function decorate(r,i,s,a,l){const c=r.request.defaults(a);function withDecorations(...a){let p=c.endpoint.merge(...a);if(l.mapToData){p=Object.assign({},p,{data:p[l.mapToData],[l.mapToData]:void 0});return c(p)}if(l.renamed){const[a,c]=l.renamed;r.log.warn(`octokit.${i}.${s}() has been renamed to octokit.${a}.${c}()`)}if(l.deprecated){r.log.warn(l.deprecated)}if(l.renamedParameters){const p=c.endpoint.merge(...a);for(const[a,c]of Object.entries(l.renamedParameters)){if(a in p){r.log.warn(`"${a}" parameter is deprecated for "octokit.${i}.${s}()". Use "${c}" instead`);if(!(c in p)){p[c]=p[a]}delete p[a]}}return c(p)}return c(...a)}return Object.assign(withDecorations,c)}function restEndpointMethods(r){const i=endpointsToMethods(r);return{rest:i}}restEndpointMethods.VERSION=p;function legacyRestEndpointMethods(r){const i=endpointsToMethods(r);return{...i,rest:i}}legacyRestEndpointMethods.VERSION=p;0&&0},96239:(r,i,s)=>{"use strict";var a=Object.create;var l=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)l(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,a)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let d of p(i))if(!u.call(r,d)&&d!==s)l(r,d,{get:()=>i[d],enumerable:!(a=c(i,d))||a.enumerable})}return r};var __toESM=(r,i,s)=>(s=r!=null?a(d(r)):{},__copyProps(i||!r||!r.__esModule?l(s,"default",{value:r,enumerable:true}):s,r));var __toCommonJS=r=>__copyProps(l({},"__esModule",{value:true}),r);var A={};__export(A,{RequestError:()=>b});r.exports=__toCommonJS(A);var h=s(58932);var g=__toESM(s(1223));var E=(0,g.default)((r=>console.warn(r)));var y=(0,g.default)((r=>console.warn(r)));var b=class extends Error{constructor(r,i,s){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let a;if("headers"in s&&typeof s.headers!=="undefined"){a=s.headers}if("response"in s){this.response=s.response;a=s.response.headers}const l=Object.assign({},s.request);if(s.request.headers.authorization){l.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}l.url=l.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=l;Object.defineProperty(this,"code",{get(){E(new h.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){y(new h.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return a||{}}})}};0&&0},26206:(r,i,s)=>{"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var s in i)a(r,s,{get:i[s],enumerable:true})};var __copyProps=(r,i,s,d)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let u of c(i))if(!p.call(r,u)&&u!==s)a(r,u,{get:()=>i[u],enumerable:!(d=l(i,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{request:()=>y});r.exports=__toCommonJS(d);var u=s(96065);var A=s(45030);var h="8.1.1";var g=s(63287);var E=s(96239);function getBufferResponse(r){return r.arrayBuffer()}function fetchWrapper(r){var i,s,a;const l=r.request&&r.request.log?r.request.log:console;const c=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==false;if((0,g.isPlainObject)(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let p={};let d;let u;let{fetch:A}=globalThis;if((s=r.request)==null?void 0:s.fetch){A=r.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(r.url,{method:r.method,body:r.body,headers:r.headers,signal:(a=r.request)==null?void 0:a.signal,...r.body&&{duplex:"half"}}).then((async i=>{u=i.url;d=i.status;for(const r of i.headers){p[r[0]]=r[1]}if("deprecation"in p){const i=p.link&&p.link.match(/<([^>]+)>; rel="deprecation"/);const s=i&&i.pop();l.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${p.sunset}${s?`. See ${s}`:""}`)}if(d===204||d===205){return}if(r.method==="HEAD"){if(d<400){return}throw new E.RequestError(i.statusText,d,{response:{url:u,status:d,headers:p,data:void 0},request:r})}if(d===304){throw new E.RequestError("Not modified",d,{response:{url:u,status:d,headers:p,data:await getResponseData(i)},request:r})}if(d>=400){const s=await getResponseData(i);const a=new E.RequestError(toErrorMessage(s),d,{response:{url:u,status:d,headers:p,data:s},request:r});throw a}return c?await getResponseData(i):i.body})).then((r=>({status:d,url:u,headers:p,data:r}))).catch((i=>{if(i instanceof E.RequestError)throw i;else if(i.name==="AbortError")throw i;throw new E.RequestError(i.message,500,{request:r})}))}async function getResponseData(r){const i=r.headers.get("content-type");if(/application\/json/.test(i)){return r.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return r.text()}return getBufferResponse(r)}function toErrorMessage(r){if(typeof r==="string")return r;if("message"in r){if(Array.isArray(r.errors)){return`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}`}return r.message}return`Unknown error: ${JSON.stringify(r)}`}function withDefaults(r,i){const s=r.defaults(i);const newApi=function(r,i){const a=s.merge(r,i);if(!a.request||!a.request.hook){return fetchWrapper(s.parse(a))}const request2=(r,i)=>fetchWrapper(s.parse(s.merge(r,i)));Object.assign(request2,{endpoint:s,defaults:withDefaults.bind(null,s)});return a.request.hook(request2,a)};return Object.assign(newApi,{endpoint:s,defaults:withDefaults.bind(null,s)})}var y=withDefaults(u.endpoint,{headers:{"user-agent":`octokit-request.js/${h} ${(0,A.getUserAgent)()}`}});0&&0},57171:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ContextAPI=void 0;const a=s(54118);const l=s(85135);const c=s(11877);const p="context";const d=new a.NoopContextManager;class ContextAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new ContextAPI}return this._instance}setGlobalContextManager(r){return(0,l.registerGlobal)(p,r,c.DiagAPI.instance())}active(){return this._getContextManager().active()}with(r,i,s,...a){return this._getContextManager().with(r,i,s,...a)}bind(r,i){return this._getContextManager().bind(r,i)}_getContextManager(){return(0,l.getGlobal)(p)||d}disable(){this._getContextManager().disable();(0,l.unregisterGlobal)(p,c.DiagAPI.instance())}}i.ContextAPI=ContextAPI},11877:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagAPI=void 0;const a=s(17978);const l=s(99639);const c=s(78077);const p=s(85135);const d="diag";class DiagAPI{constructor(){function _logProxy(r){return function(...i){const s=(0,p.getGlobal)("diag");if(!s)return;return s[r](...i)}}const r=this;const setLogger=(i,s={logLevel:c.DiagLogLevel.INFO})=>{var a,d,u;if(i===r){const i=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");r.error((a=i.stack)!==null&&a!==void 0?a:i.message);return false}if(typeof s==="number"){s={logLevel:s}}const A=(0,p.getGlobal)("diag");const h=(0,l.createLogLevelDiagLogger)((d=s.logLevel)!==null&&d!==void 0?d:c.DiagLogLevel.INFO,i);if(A&&!s.suppressOverrideMessage){const r=(u=(new Error).stack)!==null&&u!==void 0?u:"";A.warn(`Current logger will be overwritten from ${r}`);h.warn(`Current logger will overwrite one already registered from ${r}`)}return(0,p.registerGlobal)("diag",h,r,true)};r.setLogger=setLogger;r.disable=()=>{(0,p.unregisterGlobal)(d,r)};r.createComponentLogger=r=>new a.DiagComponentLogger(r);r.verbose=_logProxy("verbose");r.debug=_logProxy("debug");r.info=_logProxy("info");r.warn=_logProxy("warn");r.error=_logProxy("error")}static instance(){if(!this._instance){this._instance=new DiagAPI}return this._instance}}i.DiagAPI=DiagAPI},17696:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MetricsAPI=void 0;const a=s(72647);const l=s(85135);const c=s(11877);const p="metrics";class MetricsAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new MetricsAPI}return this._instance}setGlobalMeterProvider(r){return(0,l.registerGlobal)(p,r,c.DiagAPI.instance())}getMeterProvider(){return(0,l.getGlobal)(p)||a.NOOP_METER_PROVIDER}getMeter(r,i,s){return this.getMeterProvider().getMeter(r,i,s)}disable(){(0,l.unregisterGlobal)(p,c.DiagAPI.instance())}}i.MetricsAPI=MetricsAPI},89909:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PropagationAPI=void 0;const a=s(85135);const l=s(72368);const c=s(80865);const p=s(37682);const d=s(28136);const u=s(11877);const A="propagation";const h=new l.NoopTextMapPropagator;class PropagationAPI{constructor(){this.createBaggage=d.createBaggage;this.getBaggage=p.getBaggage;this.getActiveBaggage=p.getActiveBaggage;this.setBaggage=p.setBaggage;this.deleteBaggage=p.deleteBaggage}static getInstance(){if(!this._instance){this._instance=new PropagationAPI}return this._instance}setGlobalPropagator(r){return(0,a.registerGlobal)(A,r,u.DiagAPI.instance())}inject(r,i,s=c.defaultTextMapSetter){return this._getGlobalPropagator().inject(r,i,s)}extract(r,i,s=c.defaultTextMapGetter){return this._getGlobalPropagator().extract(r,i,s)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,a.unregisterGlobal)(A,u.DiagAPI.instance())}_getGlobalPropagator(){return(0,a.getGlobal)(A)||h}}i.PropagationAPI=PropagationAPI},81539:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceAPI=void 0;const a=s(85135);const l=s(2285);const c=s(49745);const p=s(23326);const d=s(11877);const u="trace";class TraceAPI{constructor(){this._proxyTracerProvider=new l.ProxyTracerProvider;this.wrapSpanContext=c.wrapSpanContext;this.isSpanContextValid=c.isSpanContextValid;this.deleteSpan=p.deleteSpan;this.getSpan=p.getSpan;this.getActiveSpan=p.getActiveSpan;this.getSpanContext=p.getSpanContext;this.setSpan=p.setSpan;this.setSpanContext=p.setSpanContext}static getInstance(){if(!this._instance){this._instance=new TraceAPI}return this._instance}setGlobalTracerProvider(r){const i=(0,a.registerGlobal)(u,this._proxyTracerProvider,d.DiagAPI.instance());if(i){this._proxyTracerProvider.setDelegate(r)}return i}getTracerProvider(){return(0,a.getGlobal)(u)||this._proxyTracerProvider}getTracer(r,i){return this.getTracerProvider().getTracer(r,i)}disable(){(0,a.unregisterGlobal)(u,d.DiagAPI.instance());this._proxyTracerProvider=new l.ProxyTracerProvider}}i.TraceAPI=TraceAPI},37682:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.deleteBaggage=i.setBaggage=i.getActiveBaggage=i.getBaggage=void 0;const a=s(57171);const l=s(78242);const c=(0,l.createContextKey)("OpenTelemetry Baggage Key");function getBaggage(r){return r.getValue(c)||undefined}i.getBaggage=getBaggage;function getActiveBaggage(){return getBaggage(a.ContextAPI.getInstance().active())}i.getActiveBaggage=getActiveBaggage;function setBaggage(r,i){return r.setValue(c,i)}i.setBaggage=setBaggage;function deleteBaggage(r){return r.deleteValue(c)}i.deleteBaggage=deleteBaggage},84811:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BaggageImpl=void 0;class BaggageImpl{constructor(r){this._entries=r?new Map(r):new Map}getEntry(r){const i=this._entries.get(r);if(!i){return undefined}return Object.assign({},i)}getAllEntries(){return Array.from(this._entries.entries()).map((([r,i])=>[r,i]))}setEntry(r,i){const s=new BaggageImpl(this._entries);s._entries.set(r,i);return s}removeEntry(r){const i=new BaggageImpl(this._entries);i._entries.delete(r);return i}removeEntries(...r){const i=new BaggageImpl(this._entries);for(const s of r){i._entries.delete(s)}return i}clear(){return new BaggageImpl}}i.BaggageImpl=BaggageImpl},23542:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataSymbol=void 0;i.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},28136:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataFromString=i.createBaggage=void 0;const a=s(11877);const l=s(84811);const c=s(23542);const p=a.DiagAPI.instance();function createBaggage(r={}){return new l.BaggageImpl(new Map(Object.entries(r)))}i.createBaggage=createBaggage;function baggageEntryMetadataFromString(r){if(typeof r!=="string"){p.error(`Cannot create baggage metadata from unknown type: ${typeof r}`);r=""}return{__TYPE__:c.baggageEntryMetadataSymbol,toString(){return r}}}i.baggageEntryMetadataFromString=baggageEntryMetadataFromString},7393:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.context=void 0;const a=s(57171);i.context=a.ContextAPI.getInstance()},54118:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopContextManager=void 0;const a=s(78242);class NoopContextManager{active(){return a.ROOT_CONTEXT}with(r,i,s,...a){return i.call(s,...a)}bind(r,i){return i}enable(){return this}disable(){return this}}i.NoopContextManager=NoopContextManager},78242:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ROOT_CONTEXT=i.createContextKey=void 0;function createContextKey(r){return Symbol.for(r)}i.createContextKey=createContextKey;class BaseContext{constructor(r){const i=this;i._currentContext=r?new Map(r):new Map;i.getValue=r=>i._currentContext.get(r);i.setValue=(r,s)=>{const a=new BaseContext(i._currentContext);a._currentContext.set(r,s);return a};i.deleteValue=r=>{const s=new BaseContext(i._currentContext);s._currentContext.delete(r);return s}}}i.ROOT_CONTEXT=new BaseContext},39721:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.diag=void 0;const a=s(11877);i.diag=a.DiagAPI.instance()},17978:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagComponentLogger=void 0;const a=s(85135);class DiagComponentLogger{constructor(r){this._namespace=r.namespace||"DiagComponentLogger"}debug(...r){return logProxy("debug",this._namespace,r)}error(...r){return logProxy("error",this._namespace,r)}info(...r){return logProxy("info",this._namespace,r)}warn(...r){return logProxy("warn",this._namespace,r)}verbose(...r){return logProxy("verbose",this._namespace,r)}}i.DiagComponentLogger=DiagComponentLogger;function logProxy(r,i,s){const l=(0,a.getGlobal)("diag");if(!l){return}s.unshift(i);return l[r](...s)}},3041:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagConsoleLogger=void 0;const s=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class DiagConsoleLogger{constructor(){function _consoleFunc(r){return function(...i){if(console){let s=console[r];if(typeof s!=="function"){s=console.log}if(typeof s==="function"){return s.apply(console,i)}}}}for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createLogLevelDiagLogger=void 0;const a=s(78077);function createLogLevelDiagLogger(r,i){if(ra.DiagLogLevel.ALL){r=a.DiagLogLevel.ALL}i=i||{};function _filterFunc(s,a){const l=i[s];if(typeof l==="function"&&r>=a){return l.bind(i)}return function(){}}return{error:_filterFunc("error",a.DiagLogLevel.ERROR),warn:_filterFunc("warn",a.DiagLogLevel.WARN),info:_filterFunc("info",a.DiagLogLevel.INFO),debug:_filterFunc("debug",a.DiagLogLevel.DEBUG),verbose:_filterFunc("verbose",a.DiagLogLevel.VERBOSE)}}i.createLogLevelDiagLogger=createLogLevelDiagLogger},78077:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagLogLevel=void 0;var s;(function(r){r[r["NONE"]=0]="NONE";r[r["ERROR"]=30]="ERROR";r[r["WARN"]=50]="WARN";r[r["INFO"]=60]="INFO";r[r["DEBUG"]=70]="DEBUG";r[r["VERBOSE"]=80]="VERBOSE";r[r["ALL"]=9999]="ALL"})(s=i.DiagLogLevel||(i.DiagLogLevel={}))},65163:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.trace=i.propagation=i.metrics=i.diag=i.context=i.INVALID_SPAN_CONTEXT=i.INVALID_TRACEID=i.INVALID_SPANID=i.isValidSpanId=i.isValidTraceId=i.isSpanContextValid=i.createTraceState=i.TraceFlags=i.SpanStatusCode=i.SpanKind=i.SamplingDecision=i.ProxyTracerProvider=i.ProxyTracer=i.defaultTextMapSetter=i.defaultTextMapGetter=i.ValueType=i.createNoopMeter=i.DiagLogLevel=i.DiagConsoleLogger=i.ROOT_CONTEXT=i.createContextKey=i.baggageEntryMetadataFromString=void 0;var a=s(28136);Object.defineProperty(i,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return a.baggageEntryMetadataFromString}});var l=s(78242);Object.defineProperty(i,"createContextKey",{enumerable:true,get:function(){return l.createContextKey}});Object.defineProperty(i,"ROOT_CONTEXT",{enumerable:true,get:function(){return l.ROOT_CONTEXT}});var c=s(3041);Object.defineProperty(i,"DiagConsoleLogger",{enumerable:true,get:function(){return c.DiagConsoleLogger}});var p=s(78077);Object.defineProperty(i,"DiagLogLevel",{enumerable:true,get:function(){return p.DiagLogLevel}});var d=s(4837);Object.defineProperty(i,"createNoopMeter",{enumerable:true,get:function(){return d.createNoopMeter}});var u=s(89999);Object.defineProperty(i,"ValueType",{enumerable:true,get:function(){return u.ValueType}});var A=s(80865);Object.defineProperty(i,"defaultTextMapGetter",{enumerable:true,get:function(){return A.defaultTextMapGetter}});Object.defineProperty(i,"defaultTextMapSetter",{enumerable:true,get:function(){return A.defaultTextMapSetter}});var h=s(43503);Object.defineProperty(i,"ProxyTracer",{enumerable:true,get:function(){return h.ProxyTracer}});var g=s(2285);Object.defineProperty(i,"ProxyTracerProvider",{enumerable:true,get:function(){return g.ProxyTracerProvider}});var E=s(33209);Object.defineProperty(i,"SamplingDecision",{enumerable:true,get:function(){return E.SamplingDecision}});var y=s(31424);Object.defineProperty(i,"SpanKind",{enumerable:true,get:function(){return y.SpanKind}});var b=s(48845);Object.defineProperty(i,"SpanStatusCode",{enumerable:true,get:function(){return b.SpanStatusCode}});var C=s(26905);Object.defineProperty(i,"TraceFlags",{enumerable:true,get:function(){return C.TraceFlags}});var v=s(32615);Object.defineProperty(i,"createTraceState",{enumerable:true,get:function(){return v.createTraceState}});var w=s(49745);Object.defineProperty(i,"isSpanContextValid",{enumerable:true,get:function(){return w.isSpanContextValid}});Object.defineProperty(i,"isValidTraceId",{enumerable:true,get:function(){return w.isValidTraceId}});Object.defineProperty(i,"isValidSpanId",{enumerable:true,get:function(){return w.isValidSpanId}});var I=s(91760);Object.defineProperty(i,"INVALID_SPANID",{enumerable:true,get:function(){return I.INVALID_SPANID}});Object.defineProperty(i,"INVALID_TRACEID",{enumerable:true,get:function(){return I.INVALID_TRACEID}});Object.defineProperty(i,"INVALID_SPAN_CONTEXT",{enumerable:true,get:function(){return I.INVALID_SPAN_CONTEXT}});const B=s(7393);Object.defineProperty(i,"context",{enumerable:true,get:function(){return B.context}});const S=s(39721);Object.defineProperty(i,"diag",{enumerable:true,get:function(){return S.diag}});const Q=s(72601);Object.defineProperty(i,"metrics",{enumerable:true,get:function(){return Q.metrics}});const x=s(17591);Object.defineProperty(i,"propagation",{enumerable:true,get:function(){return x.propagation}});const R=s(98989);Object.defineProperty(i,"trace",{enumerable:true,get:function(){return R.trace}});i["default"]={context:B.context,diag:S.diag,metrics:Q.metrics,propagation:x.propagation,trace:R.trace}},85135:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.unregisterGlobal=i.getGlobal=i.registerGlobal=void 0;const a=s(99957);const l=s(98996);const c=s(81522);const p=l.VERSION.split(".")[0];const d=Symbol.for(`opentelemetry.js.api.${p}`);const u=a._globalThis;function registerGlobal(r,i,s,a=false){var c;const p=u[d]=(c=u[d])!==null&&c!==void 0?c:{version:l.VERSION};if(!a&&p[r]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${r}`);s.error(i.stack||i.message);return false}if(p.version!==l.VERSION){const i=new Error(`@opentelemetry/api: Registration of version v${p.version} for ${r} does not match previously registered API v${l.VERSION}`);s.error(i.stack||i.message);return false}p[r]=i;s.debug(`@opentelemetry/api: Registered a global for ${r} v${l.VERSION}.`);return true}i.registerGlobal=registerGlobal;function getGlobal(r){var i,s;const a=(i=u[d])===null||i===void 0?void 0:i.version;if(!a||!(0,c.isCompatible)(a)){return}return(s=u[d])===null||s===void 0?void 0:s[r]}i.getGlobal=getGlobal;function unregisterGlobal(r,i){i.debug(`@opentelemetry/api: Unregistering a global for ${r} v${l.VERSION}.`);const s=u[d];if(s){delete s[r]}}i.unregisterGlobal=unregisterGlobal},81522:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isCompatible=i._makeCompatibilityCheck=void 0;const a=s(98996);const l=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(r){const i=new Set([r]);const s=new Set;const a=r.match(l);if(!a){return()=>false}const c={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(c.prerelease!=null){return function isExactmatch(i){return i===r}}function _reject(r){s.add(r);return false}function _accept(r){i.add(r);return true}return function isCompatible(r){if(i.has(r)){return true}if(s.has(r)){return false}const a=r.match(l);if(!a){return _reject(r)}const p={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(p.prerelease!=null){return _reject(r)}if(c.major!==p.major){return _reject(r)}if(c.major===0){if(c.minor===p.minor&&c.patch<=p.patch){return _accept(r)}return _reject(r)}if(c.minor<=p.minor){return _accept(r)}return _reject(r)}}i._makeCompatibilityCheck=_makeCompatibilityCheck;i.isCompatible=_makeCompatibilityCheck(a.VERSION)},72601:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.metrics=void 0;const a=s(17696);i.metrics=a.MetricsAPI.getInstance()},89999:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ValueType=void 0;var s;(function(r){r[r["INT"]=0]="INT";r[r["DOUBLE"]=1]="DOUBLE"})(s=i.ValueType||(i.ValueType={}))},4837:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createNoopMeter=i.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=i.NOOP_OBSERVABLE_GAUGE_METRIC=i.NOOP_OBSERVABLE_COUNTER_METRIC=i.NOOP_UP_DOWN_COUNTER_METRIC=i.NOOP_HISTOGRAM_METRIC=i.NOOP_COUNTER_METRIC=i.NOOP_METER=i.NoopObservableUpDownCounterMetric=i.NoopObservableGaugeMetric=i.NoopObservableCounterMetric=i.NoopObservableMetric=i.NoopHistogramMetric=i.NoopUpDownCounterMetric=i.NoopCounterMetric=i.NoopMetric=i.NoopMeter=void 0;class NoopMeter{constructor(){}createHistogram(r,s){return i.NOOP_HISTOGRAM_METRIC}createCounter(r,s){return i.NOOP_COUNTER_METRIC}createUpDownCounter(r,s){return i.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(r,s){return i.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(r,s){return i.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(r,s){return i.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(r,i){}removeBatchObservableCallback(r){}}i.NoopMeter=NoopMeter;class NoopMetric{}i.NoopMetric=NoopMetric;class NoopCounterMetric extends NoopMetric{add(r,i){}}i.NoopCounterMetric=NoopCounterMetric;class NoopUpDownCounterMetric extends NoopMetric{add(r,i){}}i.NoopUpDownCounterMetric=NoopUpDownCounterMetric;class NoopHistogramMetric extends NoopMetric{record(r,i){}}i.NoopHistogramMetric=NoopHistogramMetric;class NoopObservableMetric{addCallback(r){}removeCallback(r){}}i.NoopObservableMetric=NoopObservableMetric;class NoopObservableCounterMetric extends NoopObservableMetric{}i.NoopObservableCounterMetric=NoopObservableCounterMetric;class NoopObservableGaugeMetric extends NoopObservableMetric{}i.NoopObservableGaugeMetric=NoopObservableGaugeMetric;class NoopObservableUpDownCounterMetric extends NoopObservableMetric{}i.NoopObservableUpDownCounterMetric=NoopObservableUpDownCounterMetric;i.NOOP_METER=new NoopMeter;i.NOOP_COUNTER_METRIC=new NoopCounterMetric;i.NOOP_HISTOGRAM_METRIC=new NoopHistogramMetric;i.NOOP_UP_DOWN_COUNTER_METRIC=new NoopUpDownCounterMetric;i.NOOP_OBSERVABLE_COUNTER_METRIC=new NoopObservableCounterMetric;i.NOOP_OBSERVABLE_GAUGE_METRIC=new NoopObservableGaugeMetric;i.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new NoopObservableUpDownCounterMetric;function createNoopMeter(){return i.NOOP_METER}i.createNoopMeter=createNoopMeter},72647:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NOOP_METER_PROVIDER=i.NoopMeterProvider=void 0;const a=s(4837);class NoopMeterProvider{getMeter(r,i,s){return a.NOOP_METER}}i.NoopMeterProvider=NoopMeterProvider;i.NOOP_METER_PROVIDER=new NoopMeterProvider},99957:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});l(s(87200),i)},89406:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i._globalThis=void 0;i._globalThis=typeof globalThis==="object"?globalThis:global},87200:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});l(s(89406),i)},17591:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.propagation=void 0;const a=s(89909);i.propagation=a.PropagationAPI.getInstance()},72368:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTextMapPropagator=void 0;class NoopTextMapPropagator{inject(r,i){}extract(r,i){return r}fields(){return[]}}i.NoopTextMapPropagator=NoopTextMapPropagator},80865:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.defaultTextMapSetter=i.defaultTextMapGetter=void 0;i.defaultTextMapGetter={get(r,i){if(r==null){return undefined}return r[i]},keys(r){if(r==null){return[]}return Object.keys(r)}};i.defaultTextMapSetter={set(r,i,s){if(r==null){return}r[i]=s}}},98989:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.trace=void 0;const a=s(81539);i.trace=a.TraceAPI.getInstance()},81462:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NonRecordingSpan=void 0;const a=s(91760);class NonRecordingSpan{constructor(r=a.INVALID_SPAN_CONTEXT){this._spanContext=r}spanContext(){return this._spanContext}setAttribute(r,i){return this}setAttributes(r){return this}addEvent(r,i){return this}setStatus(r){return this}updateName(r){return this}end(r){}isRecording(){return false}recordException(r,i){}}i.NonRecordingSpan=NonRecordingSpan},17606:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracer=void 0;const a=s(57171);const l=s(23326);const c=s(81462);const p=s(49745);const d=a.ContextAPI.getInstance();class NoopTracer{startSpan(r,i,s=d.active()){const a=Boolean(i===null||i===void 0?void 0:i.root);if(a){return new c.NonRecordingSpan}const u=s&&(0,l.getSpanContext)(s);if(isSpanContext(u)&&(0,p.isSpanContextValid)(u)){return new c.NonRecordingSpan(u)}else{return new c.NonRecordingSpan}}startActiveSpan(r,i,s,a){let c;let p;let u;if(arguments.length<2){return}else if(arguments.length===2){u=i}else if(arguments.length===3){c=i;u=s}else{c=i;p=s;u=a}const A=p!==null&&p!==void 0?p:d.active();const h=this.startSpan(r,c,A);const g=(0,l.setSpan)(A,h);return d.with(g,u,undefined,h)}}i.NoopTracer=NoopTracer;function isSpanContext(r){return typeof r==="object"&&typeof r["spanId"]==="string"&&typeof r["traceId"]==="string"&&typeof r["traceFlags"]==="number"}},23259:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracerProvider=void 0;const a=s(17606);class NoopTracerProvider{getTracer(r,i,s){return new a.NoopTracer}}i.NoopTracerProvider=NoopTracerProvider},43503:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracer=void 0;const a=s(17606);const l=new a.NoopTracer;class ProxyTracer{constructor(r,i,s,a){this._provider=r;this.name=i;this.version=s;this.options=a}startSpan(r,i,s){return this._getTracer().startSpan(r,i,s)}startActiveSpan(r,i,s,a){const l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)}_getTracer(){if(this._delegate){return this._delegate}const r=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!r){return l}this._delegate=r;return this._delegate}}i.ProxyTracer=ProxyTracer},2285:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracerProvider=void 0;const a=s(43503);const l=s(23259);const c=new l.NoopTracerProvider;class ProxyTracerProvider{getTracer(r,i,s){var l;return(l=this.getDelegateTracer(r,i,s))!==null&&l!==void 0?l:new a.ProxyTracer(this,r,i,s)}getDelegate(){var r;return(r=this._delegate)!==null&&r!==void 0?r:c}setDelegate(r){this._delegate=r}getDelegateTracer(r,i,s){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,i,s)}}i.ProxyTracerProvider=ProxyTracerProvider},33209:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SamplingDecision=void 0;var s;(function(r){r[r["NOT_RECORD"]=0]="NOT_RECORD";r[r["RECORD"]=1]="RECORD";r[r["RECORD_AND_SAMPLED"]=2]="RECORD_AND_SAMPLED"})(s=i.SamplingDecision||(i.SamplingDecision={}))},23326:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getSpanContext=i.setSpanContext=i.deleteSpan=i.setSpan=i.getActiveSpan=i.getSpan=void 0;const a=s(78242);const l=s(81462);const c=s(57171);const p=(0,a.createContextKey)("OpenTelemetry Context Key SPAN");function getSpan(r){return r.getValue(p)||undefined}i.getSpan=getSpan;function getActiveSpan(){return getSpan(c.ContextAPI.getInstance().active())}i.getActiveSpan=getActiveSpan;function setSpan(r,i){return r.setValue(p,i)}i.setSpan=setSpan;function deleteSpan(r){return r.deleteValue(p)}i.deleteSpan=deleteSpan;function setSpanContext(r,i){return setSpan(r,new l.NonRecordingSpan(i))}i.setSpanContext=setSpanContext;function getSpanContext(r){var i;return(i=getSpan(r))===null||i===void 0?void 0:i.spanContext()}i.getSpanContext=getSpanContext},62110:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceStateImpl=void 0;const a=s(54864);const l=32;const c=512;const p=",";const d="=";class TraceStateImpl{constructor(r){this._internalState=new Map;if(r)this._parse(r)}set(r,i){const s=this._clone();if(s._internalState.has(r)){s._internalState.delete(r)}s._internalState.set(r,i);return s}unset(r){const i=this._clone();i._internalState.delete(r);return i}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce(((r,i)=>{r.push(i+d+this.get(i));return r}),[]).join(p)}_parse(r){if(r.length>c)return;this._internalState=r.split(p).reverse().reduce(((r,i)=>{const s=i.trim();const l=s.indexOf(d);if(l!==-1){const c=s.slice(0,l);const p=s.slice(l+1,i.length);if((0,a.validateKey)(c)&&(0,a.validateValue)(p)){r.set(c,p)}else{}}return r}),new Map);if(this._internalState.size>l){this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,l))}}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const r=new TraceStateImpl;r._internalState=new Map(this._internalState);return r}}i.TraceStateImpl=TraceStateImpl},54864:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateValue=i.validateKey=void 0;const s="[_0-9a-z-*/]";const a=`[a-z]${s}{0,255}`;const l=`[a-z0-9]${s}{0,240}@[a-z]${s}{0,13}`;const c=new RegExp(`^(?:${a}|${l})$`);const p=/^[ -~]{0,255}[!-~]$/;const d=/,|=/;function validateKey(r){return c.test(r)}i.validateKey=validateKey;function validateValue(r){return p.test(r)&&!d.test(r)}i.validateValue=validateValue},32615:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createTraceState=void 0;const a=s(62110);function createTraceState(r){return new a.TraceStateImpl(r)}i.createTraceState=createTraceState},91760:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.INVALID_SPAN_CONTEXT=i.INVALID_TRACEID=i.INVALID_SPANID=void 0;const a=s(26905);i.INVALID_SPANID="0000000000000000";i.INVALID_TRACEID="00000000000000000000000000000000";i.INVALID_SPAN_CONTEXT={traceId:i.INVALID_TRACEID,spanId:i.INVALID_SPANID,traceFlags:a.TraceFlags.NONE}},31424:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SpanKind=void 0;var s;(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(s=i.SpanKind||(i.SpanKind={}))},49745:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.wrapSpanContext=i.isSpanContextValid=i.isValidSpanId=i.isValidTraceId=void 0;const a=s(91760);const l=s(81462);const c=/^([0-9a-f]{32})$/i;const p=/^[0-9a-f]{16}$/i;function isValidTraceId(r){return c.test(r)&&r!==a.INVALID_TRACEID}i.isValidTraceId=isValidTraceId;function isValidSpanId(r){return p.test(r)&&r!==a.INVALID_SPANID}i.isValidSpanId=isValidSpanId;function isSpanContextValid(r){return isValidTraceId(r.traceId)&&isValidSpanId(r.spanId)}i.isSpanContextValid=isSpanContextValid;function wrapSpanContext(r){return new l.NonRecordingSpan(r)}i.wrapSpanContext=wrapSpanContext},48845:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SpanStatusCode=void 0;var s;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(s=i.SpanStatusCode||(i.SpanStatusCode={}))},26905:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceFlags=void 0;var s;(function(r){r[r["NONE"]=0]="NONE";r[r["SAMPLED"]=1]="SAMPLED"})(s=i.TraceFlags||(i.TraceFlags={}))},98996:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.VERSION=void 0;i.VERSION="1.7.0"},29912:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.requests=s;this.headers=a;this.response=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:i,status:s,trailers:a}}))}}i.ClientStreamingCall=ClientStreamingCall},85702:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Deferred=i.DeferredState=void 0;var s;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(s=i.DeferredState||(i.DeferredState={}));class Deferred{constructor(r=true){this._state=s.PENDING;this._promise=new Promise(((r,i)=>{this._resolve=r;this._reject=i}));if(r){this._promise.catch((r=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(r){if(this.state!==s.PENDING)throw new Error(`cannot resolve ${s[this.state].toLowerCase()}`);this._resolve(r);this._state=s.RESOLVED}reject(r){if(this.state!==s.PENDING)throw new Error(`cannot reject ${s[this.state].toLowerCase()}`);this._reject(r);this._state=s.REJECTED}resolvePending(r){if(this._state===s.PENDING)this.resolve(r)}rejectPending(r){if(this._state===s.PENDING)this.reject(r)}}i.Deferred=Deferred},17042:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.requests=s;this.headers=a;this.responses=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:i,trailers:s}}))}}i.DuplexStreamingCall=DuplexStreamingCall},60012:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(14107);Object.defineProperty(i,"ServiceType",{enumerable:true,get:function(){return a.ServiceType}});var l=s(44331);Object.defineProperty(i,"readMethodOptions",{enumerable:true,get:function(){return l.readMethodOptions}});Object.defineProperty(i,"readMethodOption",{enumerable:true,get:function(){return l.readMethodOption}});Object.defineProperty(i,"readServiceOption",{enumerable:true,get:function(){return l.readServiceOption}});var c=s(63159);Object.defineProperty(i,"RpcError",{enumerable:true,get:function(){return c.RpcError}});var p=s(67386);Object.defineProperty(i,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var d=s(76637);Object.defineProperty(i,"RpcOutputStreamController",{enumerable:true,get:function(){return d.RpcOutputStreamController}});var u=s(87008);Object.defineProperty(i,"TestTransport",{enumerable:true,get:function(){return u.TestTransport}});var A=s(85702);Object.defineProperty(i,"Deferred",{enumerable:true,get:function(){return A.Deferred}});Object.defineProperty(i,"DeferredState",{enumerable:true,get:function(){return A.DeferredState}});var h=s(17042);Object.defineProperty(i,"DuplexStreamingCall",{enumerable:true,get:function(){return h.DuplexStreamingCall}});var g=s(29912);Object.defineProperty(i,"ClientStreamingCall",{enumerable:true,get:function(){return g.ClientStreamingCall}});var E=s(30066);Object.defineProperty(i,"ServerStreamingCall",{enumerable:true,get:function(){return E.ServerStreamingCall}});var y=s(84175);Object.defineProperty(i,"UnaryCall",{enumerable:true,get:function(){return y.UnaryCall}});var b=s(51680);Object.defineProperty(i,"stackIntercept",{enumerable:true,get:function(){return b.stackIntercept}});Object.defineProperty(i,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return b.stackDuplexStreamingInterceptors}});Object.defineProperty(i,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return b.stackClientStreamingInterceptors}});Object.defineProperty(i,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return b.stackServerStreamingInterceptors}});Object.defineProperty(i,"stackUnaryInterceptors",{enumerable:true,get:function(){return b.stackUnaryInterceptors}});var C=s(25320);Object.defineProperty(i,"ServerCallContextController",{enumerable:true,get:function(){return C.ServerCallContextController}})},44331:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.readServiceOption=i.readMethodOption=i.readMethodOptions=i.normalizeMethodInfo=void 0;const a=s(4061);function normalizeMethodInfo(r,i){var s,l,c;let p=r;p.service=i;p.localName=(s=p.localName)!==null&&s!==void 0?s:a.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(l=p.options)!==null&&l!==void 0?l:{};p.idempotency=(c=p.idempotency)!==null&&c!==void 0?c:undefined;return p}i.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,i,s,a){var l;const c=(l=r.methods.find(((r,s)=>r.localName===i||s===i)))===null||l===void 0?void 0:l.options;return c&&c[s]?a.fromJson(c[s]):undefined}i.readMethodOptions=readMethodOptions;function readMethodOption(r,i,s,a){var l;const c=(l=r.methods.find(((r,s)=>r.localName===i||s===i)))===null||l===void 0?void 0:l.options;if(!c){return undefined}const p=c[s];if(p===undefined){return p}return a?a.fromJson(p):p}i.readMethodOption=readMethodOption;function readServiceOption(r,i,s){const a=r.options;if(!a){return undefined}const l=a[i];if(l===undefined){return l}return s?s.fromJson(l):l}i.readServiceOption=readServiceOption},63159:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcError=void 0;class RpcError extends Error{constructor(r,i="UNKNOWN",s){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=i;this.meta=s!==null&&s!==void 0?s:{}}toString(){const r=[this.name+": "+this.message];if(this.code){r.push("");r.push("Code: "+this.code)}if(this.serviceName&&this.methodName){r.push("Method: "+this.serviceName+"/"+this.methodName)}let i=Object.entries(this.meta);if(i.length){r.push("");r.push("Meta:");for(let[s,a]of i){r.push(` ${s}: ${a}`)}}return r.join("\n")}}i.RpcError=RpcError},51680:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.stackDuplexStreamingInterceptors=i.stackClientStreamingInterceptors=i.stackServerStreamingInterceptors=i.stackUnaryInterceptors=i.stackIntercept=void 0;const a=s(4061);function stackIntercept(r,i,s,l,c){var p,d,u,A;if(r=="unary"){let tail=(r,s,a)=>i.unary(r,s,a);for(const r of((p=l.interceptors)!==null&&p!==void 0?p:[]).filter((r=>r.interceptUnary)).reverse()){const i=tail;tail=(s,a,l)=>r.interceptUnary(i,s,a,l)}return tail(s,c,l)}if(r=="serverStreaming"){let tail=(r,s,a)=>i.serverStreaming(r,s,a);for(const r of((d=l.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptServerStreaming)).reverse()){const i=tail;tail=(s,a,l)=>r.interceptServerStreaming(i,s,a,l)}return tail(s,c,l)}if(r=="clientStreaming"){let tail=(r,s)=>i.clientStreaming(r,s);for(const r of((u=l.interceptors)!==null&&u!==void 0?u:[]).filter((r=>r.interceptClientStreaming)).reverse()){const i=tail;tail=(s,a)=>r.interceptClientStreaming(i,s,a)}return tail(s,l)}if(r=="duplex"){let tail=(r,s)=>i.duplex(r,s);for(const r of((A=l.interceptors)!==null&&A!==void 0?A:[]).filter((r=>r.interceptDuplex)).reverse()){const i=tail;tail=(s,a)=>r.interceptDuplex(i,s,a)}return tail(s,l)}a.assertNever(r)}i.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,i,s,a){return stackIntercept("unary",r,i,a,s)}i.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,i,s,a){return stackIntercept("serverStreaming",r,i,a,s)}i.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,i,s){return stackIntercept("clientStreaming",r,i,s)}i.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,i,s){return stackIntercept("duplex",r,i,s)}i.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},67386:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeRpcOptions=void 0;const a=s(4061);function mergeRpcOptions(r,i){if(!i)return r;let s={};copy(r,s);copy(i,s);for(let l of Object.keys(i)){let c=i[l];switch(l){case"jsonOptions":s.jsonOptions=a.mergeJsonOptions(r.jsonOptions,s.jsonOptions);break;case"binaryOptions":s.binaryOptions=a.mergeBinaryOptions(r.binaryOptions,s.binaryOptions);break;case"meta":s.meta={};copy(r.meta,s.meta);copy(i.meta,s.meta);break;case"interceptors":s.interceptors=r.interceptors?r.interceptors.concat(c):c.concat();break}}return s}i.mergeRpcOptions=mergeRpcOptions;function copy(r,i){if(!r)return;let s=i;for(let[i,a]of Object.entries(r)){if(a instanceof Date)s[i]=new Date(a.getTime());else if(Array.isArray(a))s[i]=a.concat();else s[i]=a}}},76637:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcOutputStreamController=void 0;const a=s(85702);const l=s(4061);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false}onNext(r){return this.addLis(r,this._lis.nxt)}onMessage(r){return this.addLis(r,this._lis.msg)}onError(r){return this.addLis(r,this._lis.err)}onComplete(r){return this.addLis(r,this._lis.cmp)}addLis(r,i){i.push(r);return()=>{let s=i.indexOf(r);if(s>=0)i.splice(s,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,i,s){l.assert((r?1:0)+(i?1:0)+(s?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(i)this.notifyError(i);if(s)this.notifyComplete()}notifyMessage(r){l.assert(!this.closed,"stream is closed");this.pushIt({value:r,done:false});this._lis.msg.forEach((i=>i(r)));this._lis.nxt.forEach((i=>i(r,undefined,false)))}notifyError(r){l.assert(!this.closed,"stream is closed");this._closed=r;this.pushIt(r);this._lis.err.forEach((i=>i(r)));this._lis.nxt.forEach((i=>i(undefined,r,false)));this.clearLis()}notifyComplete(){l.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((r=>r()));this._lis.nxt.forEach((r=>r(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(!this._itState){this._itState={q:[]}}if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let r=this._itState;l.assert(r,"bad state");l.assert(!r.p,"iterator contract broken");let i=r.q.shift();if(i)return"value"in i?Promise.resolve(i):Promise.reject(i);r.p=new a.Deferred;return r.p.promise}}}pushIt(r){let i=this._itState;if(!i)return;if(i.p){const s=i.p;l.assert(s.state==a.DeferredState.PENDING,"iterator contract broken");"value"in r?s.resolve(r):s.reject(r);delete i.p}else{i.q.push(r)}}}i.RpcOutputStreamController=RpcOutputStreamController},25320:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,i,s,a,l={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=i;this.deadline=s;this.trailers={};this._sendRH=a;this.status=l}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let r of this._listeners){r()}}}sendResponseHeaders(r){this._sendRH(r)}get cancelled(){return this._cancelled}onCancel(r){const i=this._listeners;i.push(r);return()=>{let s=i.indexOf(r);if(s>=0)i.splice(s,1)}}}i.ServerCallContextController=ServerCallContextController},30066:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.request=s;this.headers=a;this.responses=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:i,trailers:s}}))}}i.ServerStreamingCall=ServerStreamingCall},14107:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServiceType=void 0;const a=s(44331);class ServiceType{constructor(r,i,s){this.typeName=r;this.methods=i.map((r=>a.normalizeMethodInfo(r,this)));this.options=s!==null&&s!==void 0?s:{}}}i.ServiceType=ServiceType},87008:function(r,i,s){"use strict";var a=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.TestTransport=void 0;const l=s(63159);const c=s(4061);const p=s(76637);const d=s(67386);const u=s(84175);const A=s(30066);const h=s(29912);const g=s(17042);class TestTransport{constructor(r){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=r!==null&&r!==void 0?r:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var r;const i=(r=this.data.headers)!==null&&r!==void 0?r:TestTransport.defaultHeaders;return i instanceof l.RpcError?Promise.reject(i):Promise.resolve(i)}promiseSingleResponse(r){if(this.data.response instanceof l.RpcError){return Promise.reject(this.data.response)}let i;if(Array.isArray(this.data.response)){c.assert(this.data.response.length>0);i=this.data.response[0]}else if(this.data.response!==undefined){i=this.data.response}else{i=r.O.create()}c.assert(r.O.is(i));return Promise.resolve(i)}streamResponses(r,i,s){return a(this,void 0,void 0,(function*(){const a=[];if(this.data.response===undefined){a.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let i of this.data.response){c.assert(r.O.is(i));a.push(i)}}else if(!(this.data.response instanceof l.RpcError)){c.assert(r.O.is(this.data.response));a.push(this.data.response)}try{yield delay(this.responseDelay,s)(undefined)}catch(r){i.notifyError(r);return}if(this.data.response instanceof l.RpcError){i.notifyError(this.data.response);return}for(let r of a){i.notifyMessage(r);try{yield delay(this.betweenResponseDelay,s)(undefined)}catch(r){i.notifyError(r);return}}if(this.data.status instanceof l.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof l.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()}))}promiseStatus(){var r;const i=(r=this.data.status)!==null&&r!==void 0?r:TestTransport.defaultStatus;return i instanceof l.RpcError?Promise.reject(i):Promise.resolve(i)}promiseTrailers(){var r;const i=(r=this.data.trailers)!==null&&r!==void 0?r:TestTransport.defaultTrailers;return i instanceof l.RpcError?Promise.reject(i):Promise.resolve(i)}maybeSuppressUncaught(...r){if(this.suppressUncaughtRejections){for(let i of r){i.catch((()=>{}))}}}mergeOptions(r){return d.mergeRpcOptions({},r)}unary(r,i,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),p=c.catch((r=>{})).then(delay(this.responseDelay,s.abort)).then((i=>this.promiseSingleResponse(r))),d=p.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseStatus())),A=p.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,A);this.lastInput={single:i};return new u.UnaryCall(r,l,i,c,p,d,A)}serverStreaming(r,i,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),d=new p.RpcOutputStreamController,u=c.then(delay(this.responseDelay,s.abort)).catch((()=>{})).then((()=>this.streamResponses(r,d,s.abort))).then(delay(this.afterResponseDelay,s.abort)),h=u.then((()=>this.promiseStatus())),g=u.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(h,g);this.lastInput={single:i};return new A.ServerStreamingCall(r,l,i,c,d,h,g)}clientStreaming(r,i){var s;const a=(s=i.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),c=l.catch((r=>{})).then(delay(this.responseDelay,i.abort)).then((i=>this.promiseSingleResponse(r))),p=c.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseStatus())),d=c.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(p,d);this.lastInput=new TestInputStream(this.data,i.abort);return new h.ClientStreamingCall(r,a,this.lastInput,l,c,p,d)}duplex(r,i){var s;const a=(s=i.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),c=new p.RpcOutputStreamController,d=l.then(delay(this.responseDelay,i.abort)).catch((()=>{})).then((()=>this.streamResponses(r,c,i.abort))).then(delay(this.afterResponseDelay,i.abort)),u=d.then((()=>this.promiseStatus())),A=d.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(u,A);this.lastInput=new TestInputStream(this.data,i.abort);return new g.DuplexStreamingCall(r,a,this.lastInput,l,c,u,A)}}i.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,i){return s=>new Promise(((a,c)=>{if(i===null||i===void 0?void 0:i.aborted){c(new l.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>a(s)),r);if(i){i.addEventListener("abort",(r=>{clearTimeout(p);c(new l.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(r,i){this._completed=false;this._sent=[];this.data=r;this.abort=i}get sent(){return this._sent}get completed(){return this._completed}send(r){if(this.data.inputMessage instanceof l.RpcError){return Promise.reject(this.data.inputMessage)}const i=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(r)})).then(delay(i,this.abort))}complete(){if(this.data.inputComplete instanceof l.RpcError){return Promise.reject(this.data.inputComplete)}const r=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(r,this.abort))}}},84175:function(r,i){"use strict";var s=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.UnaryCall=void 0;class UnaryCall{constructor(r,i,s,a,l,c,p){this.method=r;this.requestHeaders=i;this.request=s;this.headers=a;this.response=l;this.status=c;this.trailers=p}then(r,i){return this.promiseFinished().then((i=>r?Promise.resolve(r(i)):i),(r=>i?Promise.resolve(i(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,i,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,response:i,status:s,trailers:a}}))}}i.UnaryCall=UnaryCall},54253:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.assertFloat32=i.assertUInt32=i.assertInt32=i.assertNever=i.assert=void 0;function assert(r,i){if(!r){throw new Error(i)}}i.assert=assert;function assertNever(r,i){throw new Error(i!==null&&i!==void 0?i:"Unexpected object: "+r)}i.assertNever=assertNever;const s=34028234663852886e22,a=-34028234663852886e22,l=4294967295,c=2147483647,p=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>c||rl||r<0)throw new Error("invalid uint 32: "+r)}i.assertUInt32=assertUInt32;function assertFloat32(r){if(typeof r!=="number")throw new Error("invalid float 32: "+typeof r);if(!Number.isFinite(r))return;if(r>s||r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.base64encode=i.base64decode=void 0;let s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let a=[];for(let r=0;r>4;d=p;c=2;break;case 2:s[l++]=(d&15)<<4|(p&60)>>2;d=p;c=3;break;case 3:s[l++]=(d&3)<<6|p;c=0;break}}if(c==1)throw Error(`invalid base64 string.`);return s.subarray(0,l)}i.base64decode=base64decode;function base64encode(r){let i="",a=0,l,c=0;for(let p=0;p>2];c=(l&3)<<4;a=1;break;case 1:i+=s[c|l>>4];c=(l&15)<<2;a=2;break;case 2:i+=s[c|l>>6];i+=s[l&63];a=0;break}}if(a){i+=s[c];i+="=";if(a==1)i+="="}return i}i.base64encode=base64encode},84921:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.WireType=i.mergeBinaryOptions=i.UnknownFieldHandler=void 0;var s;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(i,s,a,l,c)=>{let p=is(s)?s[r.symbol]:s[r.symbol]=[];p.push({no:a,wireType:l,data:c})};r.onWrite=(i,s,a)=>{for(let{no:i,wireType:l,data:c}of r.list(s))a.tag(i,l).raw(c)};r.list=(i,s)=>{if(is(i)){let a=i[r.symbol];return s?a.filter((r=>r.no==s)):a}return[]};r.last=(i,s)=>r.list(i,s).slice(-1)[0];const is=i=>i&&Array.isArray(i[r.symbol])})(s=i.UnknownFieldHandler||(i.UnknownFieldHandler={}));function mergeBinaryOptions(r,i){return Object.assign(Object.assign({},r),i)}i.mergeBinaryOptions=mergeBinaryOptions;var a;(function(r){r[r["Varint"]=0]="Varint";r[r["Bit64"]=1]="Bit64";r[r["LengthDelimited"]=2]="LengthDelimited";r[r["StartGroup"]=3]="StartGroup";r[r["EndGroup"]=4]="EndGroup";r[r["Bit32"]=5]="Bit32"})(a=i.WireType||(i.WireType={}))},65210:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryReader=i.binaryReadOptions=void 0;const a=s(84921);const l=s(47777);const c=s(30433);const p={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},p),r):p}i.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,i){this.varint64=c.varint64read;this.uint32=c.varint32read;this.buf=r;this.len=r.length;this.pos=0;this.view=new DataView(r.buffer,r.byteOffset,r.byteLength);this.textDecoder=i!==null&&i!==void 0?i:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let r=this.uint32(),i=r>>>3,s=r&7;if(i<=0||s<0||s>5)throw new Error("illegal tag: field no "+i+" wire type "+s);return[i,s]}skip(r){let i=this.pos;switch(r){case a.WireType.Varint:while(this.buf[this.pos++]&128){}break;case a.WireType.Bit64:this.pos+=4;case a.WireType.Bit32:this.pos+=4;break;case a.WireType.LengthDelimited:let i=this.uint32();this.pos+=i;break;case a.WireType.StartGroup:let s;while((s=this.tag()[1])!==a.WireType.EndGroup){this.skip(s)}break;default:throw new Error("cant skip wire type "+r)}this.assertBounds();return this.buf.subarray(i,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let r=this.uint32();return r>>>1^-(r&1)}int64(){return new l.PbLong(...this.varint64())}uint64(){return new l.PbULong(...this.varint64())}sint64(){let[r,i]=this.varint64();let s=-(r&1);r=(r>>>1|(i&1)<<31)^s;i=i>>>1^s;return new l.PbLong(r,i)}bool(){let[r,i]=this.varint64();return r!==0||i!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new l.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new l.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let r=this.uint32();let i=this.pos;this.pos+=r;this.assertBounds();return this.buf.subarray(i,i+r)}string(){return this.textDecoder.decode(this.bytes())}}i.BinaryReader=BinaryReader},44354:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryWriter=i.binaryWriteOptions=void 0;const a=s(47777);const l=s(30433);const c=s(54253);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},p),r):p}i.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(r){this.stack=[];this.textEncoder=r!==null&&r!==void 0?r:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let r=0;for(let i=0;i>>0)}raw(r){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(r);return this}uint32(r){c.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){c.assertInt32(r);l.varint32write(r,this.buf);return this}bool(r){this.buf.push(r?1:0);return this}bytes(r){this.uint32(r.byteLength);return this.raw(r)}string(r){let i=this.textEncoder.encode(r);this.uint32(i.byteLength);return this.raw(i)}float(r){c.assertFloat32(r);let i=new Uint8Array(4);new DataView(i.buffer).setFloat32(0,r,true);return this.raw(i)}double(r){let i=new Uint8Array(8);new DataView(i.buffer).setFloat64(0,r,true);return this.raw(i)}fixed32(r){c.assertUInt32(r);let i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r,true);return this.raw(i)}sfixed32(r){c.assertInt32(r);let i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,r,true);return this.raw(i)}sint32(r){c.assertInt32(r);r=(r<<1^r>>31)>>>0;l.varint32write(r,this.buf);return this}sfixed64(r){let i=new Uint8Array(8);let s=new DataView(i.buffer);let l=a.PbLong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(i)}fixed64(r){let i=new Uint8Array(8);let s=new DataView(i.buffer);let l=a.PbULong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(i)}int64(r){let i=a.PbLong.from(r);l.varint64write(i.lo,i.hi,this.buf);return this}sint64(r){let i=a.PbLong.from(r),s=i.hi>>31,c=i.lo<<1^s,p=(i.hi<<1|i.lo>>>31)^s;l.varint64write(c,p,this.buf);return this}uint64(r){let i=a.PbULong.from(r);l.varint64write(i.lo,i.hi,this.buf);return this}}i.BinaryWriter=BinaryWriter},20085:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.listEnumNumbers=i.listEnumNames=i.listEnumValues=i.isEnumObject=void 0;function isEnumObject(r){if(typeof r!="object"||r===null){return false}if(!r.hasOwnProperty(0)){return false}for(let i of Object.keys(r)){let s=parseInt(i);if(!Number.isNaN(s)){let i=r[s];if(i===undefined)return false;if(r[i]!==s)return false}else{let s=r[i];if(s===undefined)return false;if(typeof s!=="number")return false;if(r[s]===undefined)return false}}return true}i.isEnumObject=isEnumObject;function listEnumValues(r){if(!isEnumObject(r))throw new Error("not a typescript enum object");let i=[];for(let[s,a]of Object.entries(r))if(typeof a=="number")i.push({name:s,number:a});return i}i.listEnumValues=listEnumValues;function listEnumNames(r){return listEnumValues(r).map((r=>r.name))}i.listEnumNames=listEnumNames;function listEnumNumbers(r){return listEnumValues(r).map((r=>r.number)).filter(((r,i,s)=>s.indexOf(r)==i))}i.listEnumNumbers=listEnumNumbers},30433:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.varint32read=i.varint32write=i.int64toString=i.int64fromString=i.varint64write=i.varint64read=void 0;function varint64read(){let r=0;let i=0;for(let s=0;s<28;s+=7){let a=this.buf[this.pos++];r|=(a&127)<>4;if((s&128)==0){this.assertBounds();return[r,i]}for(let s=3;s<=31;s+=7){let a=this.buf[this.pos++];i|=(a&127)<>>a;const c=!(l>>>7==0&&i==0);const p=(c?l|128:l)&255;s.push(p);if(!c){return}}const a=r>>>28&15|(i&7)<<4;const l=!(i>>3==0);s.push((l?a|128:a)&255);if(!l){return}for(let r=3;r<31;r=r+7){const a=i>>>r;const l=!(a>>>7==0);const c=(l?a|128:a)&255;s.push(c);if(!l){return}}s.push(i>>>31&1)}i.varint64write=varint64write;const s=(1<<16)*(1<<16);function int64fromString(r){let i=r[0]=="-";if(i)r=r.slice(1);const a=1e6;let l=0;let c=0;function add1e6digit(i,p){const d=Number(r.slice(i,p));c*=a;l=l*a+d;if(l>=s){c=c+(l/s|0);l=l%s}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[i,l,c]}i.int64fromString=int64fromString;function int64toString(r,i){if(i>>>0<=2097151){return""+(s*i+(r>>>0))}let a=r&16777215;let l=(r>>>24|i<<8)>>>0&16777215;let c=i>>16&65535;let p=a+l*6777216+c*6710656;let d=l+c*8147497;let u=c*2;let A=1e7;if(p>=A){d+=Math.floor(p/A);p%=A}if(d>=A){u+=Math.floor(d/A);d%=A}function decimalFrom1e7(r,i){let s=r?String(r):"";if(i){return"0000000".slice(s.length)+s}return s}return decimalFrom1e7(u,0)+decimalFrom1e7(d,u)+decimalFrom1e7(p,1)}i.int64toString=int64toString;function varint32write(r,i){if(r>=0){while(r>127){i.push(r&127|128);r=r>>>7}i.push(r)}else{for(let s=0;s<9;s++){i.push(r&127|128);r=r>>7}i.push(1)}}i.varint32write=varint32write;function varint32read(){let r=this.buf[this.pos++];let i=r&127;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&127)<<7;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&127)<<14;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&127)<<21;if((r&128)==0){this.assertBounds();return i}r=this.buf[this.pos++];i|=(r&15)<<28;for(let i=5;(r&128)!==0&&i<10;i++)r=this.buf[this.pos++];if((r&128)!=0)throw new Error("invalid varint");this.assertBounds();return i>>>0}i.varint32read=varint32read},4061:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(70661);Object.defineProperty(i,"typeofJsonValue",{enumerable:true,get:function(){return a.typeofJsonValue}});Object.defineProperty(i,"isJsonObject",{enumerable:true,get:function(){return a.isJsonObject}});var l=s(20196);Object.defineProperty(i,"base64decode",{enumerable:true,get:function(){return l.base64decode}});Object.defineProperty(i,"base64encode",{enumerable:true,get:function(){return l.base64encode}});var c=s(95290);Object.defineProperty(i,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var p=s(84921);Object.defineProperty(i,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(i,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(i,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var d=s(65210);Object.defineProperty(i,"BinaryReader",{enumerable:true,get:function(){return d.BinaryReader}});Object.defineProperty(i,"binaryReadOptions",{enumerable:true,get:function(){return d.binaryReadOptions}});var u=s(44354);Object.defineProperty(i,"BinaryWriter",{enumerable:true,get:function(){return u.BinaryWriter}});Object.defineProperty(i,"binaryWriteOptions",{enumerable:true,get:function(){return u.binaryWriteOptions}});var A=s(47777);Object.defineProperty(i,"PbLong",{enumerable:true,get:function(){return A.PbLong}});Object.defineProperty(i,"PbULong",{enumerable:true,get:function(){return A.PbULong}});var h=s(48139);Object.defineProperty(i,"jsonReadOptions",{enumerable:true,get:function(){return h.jsonReadOptions}});Object.defineProperty(i,"jsonWriteOptions",{enumerable:true,get:function(){return h.jsonWriteOptions}});Object.defineProperty(i,"mergeJsonOptions",{enumerable:true,get:function(){return h.mergeJsonOptions}});var g=s(1682);Object.defineProperty(i,"MESSAGE_TYPE",{enumerable:true,get:function(){return g.MESSAGE_TYPE}});var E=s(63664);Object.defineProperty(i,"MessageType",{enumerable:true,get:function(){return E.MessageType}});var y=s(21370);Object.defineProperty(i,"ScalarType",{enumerable:true,get:function(){return y.ScalarType}});Object.defineProperty(i,"LongType",{enumerable:true,get:function(){return y.LongType}});Object.defineProperty(i,"RepeatType",{enumerable:true,get:function(){return y.RepeatType}});Object.defineProperty(i,"normalizeFieldInfo",{enumerable:true,get:function(){return y.normalizeFieldInfo}});Object.defineProperty(i,"readFieldOptions",{enumerable:true,get:function(){return y.readFieldOptions}});Object.defineProperty(i,"readFieldOption",{enumerable:true,get:function(){return y.readFieldOption}});Object.defineProperty(i,"readMessageOption",{enumerable:true,get:function(){return y.readMessageOption}});var b=s(20903);Object.defineProperty(i,"ReflectionTypeCheck",{enumerable:true,get:function(){return b.ReflectionTypeCheck}});var C=s(60390);Object.defineProperty(i,"reflectionCreate",{enumerable:true,get:function(){return C.reflectionCreate}});var v=s(74863);Object.defineProperty(i,"reflectionScalarDefault",{enumerable:true,get:function(){return v.reflectionScalarDefault}});var w=s(7869);Object.defineProperty(i,"reflectionMergePartial",{enumerable:true,get:function(){return w.reflectionMergePartial}});var I=s(39473);Object.defineProperty(i,"reflectionEquals",{enumerable:true,get:function(){return I.reflectionEquals}});var B=s(91593);Object.defineProperty(i,"ReflectionBinaryReader",{enumerable:true,get:function(){return B.ReflectionBinaryReader}});var S=s(57170);Object.defineProperty(i,"ReflectionBinaryWriter",{enumerable:true,get:function(){return S.ReflectionBinaryWriter}});var Q=s(229);Object.defineProperty(i,"ReflectionJsonReader",{enumerable:true,get:function(){return Q.ReflectionJsonReader}});var x=s(68980);Object.defineProperty(i,"ReflectionJsonWriter",{enumerable:true,get:function(){return x.ReflectionJsonWriter}});var R=s(67317);Object.defineProperty(i,"containsMessageType",{enumerable:true,get:function(){return R.containsMessageType}});var T=s(78531);Object.defineProperty(i,"isOneofGroup",{enumerable:true,get:function(){return T.isOneofGroup}});Object.defineProperty(i,"setOneofValue",{enumerable:true,get:function(){return T.setOneofValue}});Object.defineProperty(i,"getOneofValue",{enumerable:true,get:function(){return T.getOneofValue}});Object.defineProperty(i,"clearOneofValue",{enumerable:true,get:function(){return T.clearOneofValue}});Object.defineProperty(i,"getSelectedOneofValue",{enumerable:true,get:function(){return T.getSelectedOneofValue}});var N=s(20085);Object.defineProperty(i,"listEnumValues",{enumerable:true,get:function(){return N.listEnumValues}});Object.defineProperty(i,"listEnumNames",{enumerable:true,get:function(){return N.listEnumNames}});Object.defineProperty(i,"listEnumNumbers",{enumerable:true,get:function(){return N.listEnumNumbers}});Object.defineProperty(i,"isEnumObject",{enumerable:true,get:function(){return N.isEnumObject}});var _=s(34772);Object.defineProperty(i,"lowerCamelCase",{enumerable:true,get:function(){return _.lowerCamelCase}});var k=s(54253);Object.defineProperty(i,"assert",{enumerable:true,get:function(){return k.assert}});Object.defineProperty(i,"assertNever",{enumerable:true,get:function(){return k.assertNever}});Object.defineProperty(i,"assertInt32",{enumerable:true,get:function(){return k.assertInt32}});Object.defineProperty(i,"assertUInt32",{enumerable:true,get:function(){return k.assertUInt32}});Object.defineProperty(i,"assertFloat32",{enumerable:true,get:function(){return k.assertFloat32}})},48139:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeJsonOptions=i.jsonWriteOptions=i.jsonReadOptions=void 0;const s={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},a={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},a),r):a}i.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},s),r):s}i.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,i){var s,a;let l=Object.assign(Object.assign({},r),i);l.typeRegistry=[...(s=r===null||r===void 0?void 0:r.typeRegistry)!==null&&s!==void 0?s:[],...(a=i===null||i===void 0?void 0:i.typeRegistry)!==null&&a!==void 0?a:[]];return l}i.mergeJsonOptions=mergeJsonOptions},70661:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isJsonObject=i.typeofJsonValue=void 0;function typeofJsonValue(r){let i=typeof r;if(i=="object"){if(Array.isArray(r))return"array";if(r===null)return"null"}return i}i.typeofJsonValue=typeofJsonValue;function isJsonObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}i.isJsonObject=isJsonObject},34772:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.lowerCamelCase=void 0;function lowerCamelCase(r){let i=false;const s=[];for(let a=0;a{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MESSAGE_TYPE=void 0;i.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},63664:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MessageType=void 0;const a=s(1682);const l=s(21370);const c=s(20903);const p=s(229);const d=s(68980);const u=s(91593);const A=s(57170);const h=s(60390);const g=s(7869);const E=s(70661);const y=s(48139);const b=s(39473);const C=s(44354);const v=s(65210);class MessageType{constructor(r,i,s){this.defaultCheckDepth=16;this.typeName=r;this.fields=i.map(l.normalizeFieldInfo);this.options=s!==null&&s!==void 0?s:{};this.messagePrototype=Object.defineProperty({},a.MESSAGE_TYPE,{value:this});this.refTypeCheck=new c.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new d.ReflectionJsonWriter(this);this.refBinReader=new u.ReflectionBinaryReader(this);this.refBinWriter=new A.ReflectionBinaryWriter(this)}create(r){let i=h.reflectionCreate(this);if(r!==undefined){g.reflectionMergePartial(this,i,r)}return i}clone(r){let i=this.create();g.reflectionMergePartial(this,i,r);return i}equals(r,i){return b.reflectionEquals(this,r,i)}is(r,i=this.defaultCheckDepth){return this.refTypeCheck.is(r,i,false)}isAssignable(r,i=this.defaultCheckDepth){return this.refTypeCheck.is(r,i,true)}mergePartial(r,i){g.reflectionMergePartial(this,r,i)}fromBinary(r,i){let s=v.binaryReadOptions(i);return this.internalBinaryRead(s.readerFactory(r),r.byteLength,s)}fromJson(r,i){return this.internalJsonRead(r,y.jsonReadOptions(i))}fromJsonString(r,i){let s=JSON.parse(r);return this.fromJson(s,i)}toJson(r,i){return this.internalJsonWrite(r,y.jsonWriteOptions(i))}toJsonString(r,i){var s;let a=this.toJson(r,i);return JSON.stringify(a,null,(s=i===null||i===void 0?void 0:i.prettySpaces)!==null&&s!==void 0?s:0)}toBinary(r,i){let s=C.binaryWriteOptions(i);return this.internalBinaryWrite(r,s.writerFactory(),s).finish()}internalJsonRead(r,i,s){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let a=s!==null&&s!==void 0?s:this.create();this.refJsonReader.read(r,a,i);return a}throw new Error(`Unable to parse message ${this.typeName} from JSON ${E.typeofJsonValue(r)}.`)}internalJsonWrite(r,i){return this.refJsonWriter.write(r,i)}internalBinaryWrite(r,i,s){this.refBinWriter.write(r,i,s);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create();this.refBinReader.read(r,l,s,i);return l}}i.MessageType=MessageType},78531:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getSelectedOneofValue=i.clearOneofValue=i.setUnknownOneofValue=i.setOneofValue=i.getOneofValue=i.isOneofGroup=void 0;function isOneofGroup(r){if(typeof r!="object"||r===null||!r.hasOwnProperty("oneofKind")){return false}switch(typeof r.oneofKind){case"string":if(r[r.oneofKind]===undefined)return false;return Object.keys(r).length==2;case"undefined":return Object.keys(r).length==1;default:return false}}i.isOneofGroup=isOneofGroup;function getOneofValue(r,i){return r[i]}i.getOneofValue=getOneofValue;function setOneofValue(r,i,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=i;if(s!==undefined){r[i]=s}}i.setOneofValue=setOneofValue;function setUnknownOneofValue(r,i,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=i;if(s!==undefined&&i!==undefined){r[i]=s}}i.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(r){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=undefined}i.clearOneofValue=clearOneofValue;function getSelectedOneofValue(r){if(r.oneofKind===undefined){return undefined}return r[r.oneofKind]}i.getSelectedOneofValue=getSelectedOneofValue},47777:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PbLong=i.PbULong=i.detectBi=void 0;const a=s(30433);let l;function detectBi(){const r=new DataView(new ArrayBuffer(8));const i=globalThis.BigInt!==undefined&&typeof r.getBigInt64==="function"&&typeof r.getBigUint64==="function"&&typeof r.setBigInt64==="function"&&typeof r.setBigUint64==="function";l=i?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:r}:undefined}i.detectBi=detectBi;detectBi();function assertBi(r){if(!r)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const c=/^-?[0-9]+$/;const p=4294967296;const d=2147483648;class SharedPbLong{constructor(r,i){this.lo=r|0;this.hi=i|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let r=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(r))throw new Error("cannot convert to safe number");return r}}class PbULong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.UMAX)throw new Error("ulong too large");l.V.setBigUint64(0,r,true);return new PbULong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[i,s,l]=a.int64fromString(r);if(i)throw new Error("signed value for ulong");return new PbULong(s,l);case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");if(r<0)throw new Error("signed value for ulong");return new PbULong(r,r/p)}throw new Error("unknown value "+typeof r)}toString(){return l?this.toBigInt().toString():a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigUint64(0,true)}}i.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.MAX)throw new Error("signed long too large");l.V.setBigInt64(0,r,true);return new PbLong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[i,s,l]=a.int64fromString(r);if(i){if(l>d||l==d&&s!=0)throw new Error("signed long too small")}else if(l>=d)throw new Error("signed long too large");let u=new PbLong(s,l);return i?u.negate():u;case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");return r>0?new PbLong(r,r/p):new PbLong(-r,-r/p).negate()}throw new Error("unknown value "+typeof r)}isNegative(){return(this.hi&d)!==0}negate(){let r=~this.hi,i=this.lo;if(i)i=~i+1;else r+=1;return new PbLong(i,r)}toString(){if(l)return this.toBigInt().toString();if(this.isNegative()){let r=this.negate();return"-"+a.int64toString(r.lo,r.hi)}return a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigInt64(0,true)}}i.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},95290:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.utf8read=void 0;const fromCharCodes=r=>String.fromCharCode.apply(String,r);function utf8read(r){if(r.length<1)return"";let i=0,s=[],a=[],l=0,c;let p=r.length;while(i191&&c<224)a[l++]=(c&31)<<6|r[i++]&63;else if(c>239&&c<365){c=((c&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536;a[l++]=55296+(c>>10);a[l++]=56320+(c&1023)}else a[l++]=(c&15)<<12|(r[i++]&63)<<6|r[i++]&63;if(l>8191){s.push(fromCharCodes(a));l=0}}if(s.length){if(l)s.push(fromCharCodes(a.slice(0,l)));return s.join("")}return fromCharCodes(a.slice(0,l))}i.utf8read=utf8read},91593:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryReader=void 0;const a=s(84921);const l=s(21370);const c=s(24612);const p=s(74863);class ReflectionBinaryReader{constructor(r){this.info=r}prepare(){var r;if(!this.fieldNoToField){const i=(r=this.info.fields)!==null&&r!==void 0?r:[];this.fieldNoToField=new Map(i.map((r=>[r.no,r])))}}read(r,i,s,c){this.prepare();const p=c===undefined?r.len:r.pos+c;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryWriter=void 0;const a=s(84921);const l=s(21370);const c=s(54253);const p=s(47777);class ReflectionBinaryWriter{constructor(r){this.info=r}prepare(){if(!this.fields){const r=this.info.fields?this.info.fields.concat():[];this.fields=r.sort(((r,i)=>r.no-i.no))}}write(r,i,s){this.prepare();for(const a of this.fields){let p,d,u=a.repeat,A=a.localName;if(a.oneof){const i=r[a.oneof];if(i.oneofKind!==A)continue;p=i[A];d=true}else{p=r[A];d=false}switch(a.kind){case"scalar":case"enum":let r=a.kind=="enum"?l.ScalarType.INT32:a.T;if(u){c.assert(Array.isArray(p));if(u==l.RepeatType.PACKED)this.packed(i,r,a.no,p);else for(const s of p)this.scalar(i,r,a.no,s,true)}else if(p===undefined)c.assert(a.opt);else this.scalar(i,r,a.no,p,d||a.opt);break;case"message":if(u){c.assert(Array.isArray(p));for(const r of p)this.message(i,s,a.T(),a.no,r)}else{this.message(i,s,a.T(),a.no,p)}break;case"map":c.assert(typeof p=="object"&&p!==null);for(const[r,l]of Object.entries(p))this.mapEntry(i,s,a,r,l);break}}let p=s.writeUnknownFields;if(p!==false)(p===true?a.UnknownFieldHandler.onWrite:p)(this.info.typeName,r,i)}mapEntry(r,i,s,p,d){r.tag(s.no,a.WireType.LengthDelimited);r.fork();let u=p;switch(s.K){case l.ScalarType.INT32:case l.ScalarType.FIXED32:case l.ScalarType.UINT32:case l.ScalarType.SFIXED32:case l.ScalarType.SINT32:u=Number.parseInt(p);break;case l.ScalarType.BOOL:c.assert(p=="true"||p=="false");u=p=="true";break}this.scalar(r,s.K,1,u,true);switch(s.V.kind){case"scalar":this.scalar(r,s.V.T,2,d,true);break;case"enum":this.scalar(r,l.ScalarType.INT32,2,d,true);break;case"message":this.message(r,i,s.V.T(),2,d);break}r.join()}message(r,i,s,l,c){if(c===undefined)return;s.internalBinaryWrite(c,r.tag(l,a.WireType.LengthDelimited).fork(),i);r.join()}scalar(r,i,s,a,l){let[c,p,d]=this.scalarInfo(i,a);if(!d||l){r.tag(s,c);r[p](a)}}packed(r,i,s,p){if(!p.length)return;c.assert(i!==l.ScalarType.BYTES&&i!==l.ScalarType.STRING);r.tag(s,a.WireType.LengthDelimited);r.fork();let[,d]=this.scalarInfo(i);for(let i=0;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.containsMessageType=void 0;const a=s(1682);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}i.containsMessageType=containsMessageType},60390:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionCreate=void 0;const a=s(74863);const l=s(1682);function reflectionCreate(r){const i=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},l.MESSAGE_TYPE,{value:r});for(let s of r.fields){let r=s.localName;if(s.opt)continue;if(s.oneof)i[s.oneof]={oneofKind:undefined};else if(s.repeat)i[r]=[];else switch(s.kind){case"scalar":i[r]=a.reflectionScalarDefault(s.T,s.L);break;case"enum":i[r]=0;break;case"map":i[r]={};break}}return i}i.reflectionCreate=reflectionCreate},39473:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionEquals=void 0;const a=s(21370);function reflectionEquals(r,i,s){if(i===s)return true;if(!i||!s)return false;for(let c of r.fields){let r=c.localName;let p=c.oneof?i[c.oneof][r]:i[r];let d=c.oneof?s[c.oneof][r]:s[r];switch(c.kind){case"enum":case"scalar":let r=c.kind=="enum"?a.ScalarType.INT32:c.T;if(!(c.repeat?repeatedPrimitiveEq(r,p,d):primitiveEq(r,p,d)))return false;break;case"map":if(!(c.V.kind=="message"?repeatedMsgEq(c.V.T(),l(p),l(d)):repeatedPrimitiveEq(c.V.kind=="enum"?a.ScalarType.INT32:c.V.T,l(p),l(d))))return false;break;case"message":let i=c.T();if(!(c.repeat?repeatedMsgEq(i,p,d):i.equals(p,d)))return false;break}}return true}i.reflectionEquals=reflectionEquals;const l=Object.values;function primitiveEq(r,i,s){if(i===s)return true;if(r!==a.ScalarType.BYTES)return false;let l=i;let c=s;if(l.length!==c.length)return false;for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.readMessageOption=i.readFieldOption=i.readFieldOptions=i.normalizeFieldInfo=i.RepeatType=i.LongType=i.ScalarType=void 0;const a=s(34772);var l;(function(r){r[r["DOUBLE"]=1]="DOUBLE";r[r["FLOAT"]=2]="FLOAT";r[r["INT64"]=3]="INT64";r[r["UINT64"]=4]="UINT64";r[r["INT32"]=5]="INT32";r[r["FIXED64"]=6]="FIXED64";r[r["FIXED32"]=7]="FIXED32";r[r["BOOL"]=8]="BOOL";r[r["STRING"]=9]="STRING";r[r["BYTES"]=12]="BYTES";r[r["UINT32"]=13]="UINT32";r[r["SFIXED32"]=15]="SFIXED32";r[r["SFIXED64"]=16]="SFIXED64";r[r["SINT32"]=17]="SINT32";r[r["SINT64"]=18]="SINT64"})(l=i.ScalarType||(i.ScalarType={}));var c;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(c=i.LongType||(i.LongType={}));var p;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(p=i.RepeatType||(i.RepeatType={}));function normalizeFieldInfo(r){var i,s,l,c;r.localName=(i=r.localName)!==null&&i!==void 0?i:a.lowerCamelCase(r.name);r.jsonName=(s=r.jsonName)!==null&&s!==void 0?s:a.lowerCamelCase(r.name);r.repeat=(l=r.repeat)!==null&&l!==void 0?l:p.NO;r.opt=(c=r.opt)!==null&&c!==void 0?c:r.repeat?false:r.oneof?false:r.kind=="message";return r}i.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,i,s,a){var l;const c=(l=r.fields.find(((r,s)=>r.localName==i||s==i)))===null||l===void 0?void 0:l.options;return c&&c[s]?a.fromJson(c[s]):undefined}i.readFieldOptions=readFieldOptions;function readFieldOption(r,i,s,a){var l;const c=(l=r.fields.find(((r,s)=>r.localName==i||s==i)))===null||l===void 0?void 0:l.options;if(!c){return undefined}const p=c[s];if(p===undefined){return p}return a?a.fromJson(p):p}i.readFieldOption=readFieldOption;function readMessageOption(r,i,s){const a=r.options;const l=a[i];if(l===undefined){return l}return s?s.fromJson(l):l}i.readMessageOption=readMessageOption},229:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonReader=void 0;const a=s(70661);const l=s(20196);const c=s(21370);const p=s(47777);const d=s(54253);const u=s(24612);class ReflectionJsonReader{constructor(r){this.info=r}prepare(){var r;if(this.fMap===undefined){this.fMap={};const i=(r=this.info.fields)!==null&&r!==void 0?r:[];for(const r of i){this.fMap[r.name]=r;this.fMap[r.jsonName]=r;this.fMap[r.localName]=r}}}assert(r,i,s){if(!r){let r=a.typeofJsonValue(s);if(r=="number"||r=="boolean")r=s.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${i}`)}}read(r,i,s){this.prepare();const l=[];for(const[p,d]of Object.entries(r)){const r=this.fMap[p];if(!r){if(!s.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const u=r.localName;let A;if(r.oneof){if(d===null&&(r.kind!=="enum"||r.T()[0]!=="google.protobuf.NullValue")){continue}if(l.includes(r.oneof))throw new Error(`Multiple members of the oneof group "${r.oneof}" of ${this.info.typeName} are present in JSON.`);l.push(r.oneof);A=i[r.oneof]={oneofKind:u}}else{A=i}if(r.kind=="map"){if(d===null){continue}this.assert(a.isJsonObject(d),r.name,d);const i=A[u];for(const[a,l]of Object.entries(d)){this.assert(l!==null,r.name+" map value",null);let p;switch(r.V.kind){case"message":p=r.V.T().internalJsonRead(l,s);break;case"enum":p=this.enum(r.V.T(),l,r.name,s.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(l,r.V.T,r.V.L,r.name);break}this.assert(p!==undefined,r.name+" map value",l);let d=a;if(r.K==c.ScalarType.BOOL)d=d=="true"?true:d=="false"?false:d;d=this.scalar(d,r.K,c.LongType.STRING,r.name).toString();i[d]=p}}else if(r.repeat){if(d===null)continue;this.assert(Array.isArray(d),r.name,d);const i=A[u];for(const a of d){this.assert(a!==null,r.name,null);let l;switch(r.kind){case"message":l=r.T().internalJsonRead(a,s);break;case"enum":l=this.enum(r.T(),a,r.name,s.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(a,r.T,r.L,r.name);break}this.assert(l!==undefined,r.name,d);i.push(l)}}else{switch(r.kind){case"message":if(d===null&&r.T().typeName!="google.protobuf.Value"){this.assert(r.oneof===undefined,r.name+" (oneof member)",null);continue}A[u]=r.T().internalJsonRead(d,s,A[u]);break;case"enum":let i=this.enum(r.T(),d,r.name,s.ignoreUnknownFields);if(i===false)continue;A[u]=i;break;case"scalar":A[u]=this.scalar(d,r.T,r.L,r.name);break}}}}enum(r,i,s,a){if(r[0]=="google.protobuf.NullValue")d.assert(i===null||i==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} only accepts null.`);if(i===null)return 0;switch(typeof i){case"number":d.assert(Number.isInteger(i),`Unable to parse field ${this.info.typeName}#${s}, enum can only be integral number, got ${i}.`);return i;case"string":let l=i;if(r[2]&&i.substring(0,r[2].length)===r[2])l=i.substring(r[2].length);let c=r[1][l];if(typeof c==="undefined"&&a){return false}d.assert(typeof c=="number",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} has no value for "${i}".`);return c}d.assert(false,`Unable to parse field ${this.info.typeName}#${s}, cannot parse enum value from ${typeof i}".`)}scalar(r,i,s,a){let A;try{switch(i){case c.ScalarType.DOUBLE:case c.ScalarType.FLOAT:if(r===null)return 0;if(r==="NaN")return Number.NaN;if(r==="Infinity")return Number.POSITIVE_INFINITY;if(r==="-Infinity")return Number.NEGATIVE_INFINITY;if(r===""){A="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){A="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let a=Number(r);if(Number.isNaN(a)){A="not a number";break}if(!Number.isFinite(a)){A="too large or small";break}if(i==c.ScalarType.FLOAT)d.assertFloat32(a);return a;case c.ScalarType.INT32:case c.ScalarType.FIXED32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:case c.ScalarType.UINT32:if(r===null)return 0;let h;if(typeof r=="number")h=r;else if(r==="")A="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)A="extra whitespace";else h=Number(r)}if(h===undefined)break;if(i==c.ScalarType.UINT32)d.assertUInt32(h);else d.assertInt32(h);return h;case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:if(r===null)return u.reflectionLongConvert(p.PbLong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(p.PbLong.from(r),s);case c.ScalarType.FIXED64:case c.ScalarType.UINT64:if(r===null)return u.reflectionLongConvert(p.PbULong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(p.PbULong.from(r),s);case c.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case c.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){A="extra whitespace";break}try{encodeURIComponent(r)}catch(A){A="invalid UTF8";break}return r;case c.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return l.base64decode(r)}}catch(r){A=r.message}this.assert(false,a+(A?" - "+A:""),r)}}i.ReflectionJsonReader=ReflectionJsonReader},68980:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonWriter=void 0;const a=s(20196);const l=s(47777);const c=s(21370);const p=s(54253);class ReflectionJsonWriter{constructor(r){var i;this.fields=(i=r.fields)!==null&&i!==void 0?i:[]}write(r,i){const s={},a=r;for(const r of this.fields){if(!r.oneof){let l=this.field(r,a[r.localName],i);if(l!==undefined)s[i.useProtoFieldName?r.name:r.jsonName]=l;continue}const l=a[r.oneof];if(l.oneofKind!==r.localName)continue;const c=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},i),{emitDefaultValues:true}):i;let d=this.field(r,l[r.localName],c);p.assert(d!==undefined);s[i.useProtoFieldName?r.name:r.jsonName]=d}return s}field(r,i,s){let a=undefined;if(r.kind=="map"){p.assert(typeof i=="object"&&i!==null);const l={};switch(r.V.kind){case"scalar":for(const[s,a]of Object.entries(i)){const i=this.scalar(r.V.T,a,r.name,false,true);p.assert(i!==undefined);l[s.toString()]=i}break;case"message":const a=r.V.T();for(const[c,d]of Object.entries(i)){const i=this.message(a,d,r.name,s);p.assert(i!==undefined);l[c.toString()]=i}break;case"enum":const c=r.V.T();for(const[a,d]of Object.entries(i)){p.assert(d===undefined||typeof d=="number");const i=this.enum(c,d,r.name,false,true,s.enumAsInteger);p.assert(i!==undefined);l[a.toString()]=i}break}if(s.emitDefaultValues||Object.keys(l).length>0)a=l}else if(r.repeat){p.assert(Array.isArray(i));const l=[];switch(r.kind){case"scalar":for(let s=0;s0||s.emitDefaultValues)a=l}else{switch(r.kind){case"scalar":a=this.scalar(r.T,i,r.name,r.opt,s.emitDefaultValues);break;case"enum":a=this.enum(r.T(),i,r.name,r.opt,s.emitDefaultValues,s.enumAsInteger);break;case"message":a=this.message(r.T(),i,r.name,s);break}}return a}enum(r,i,s,a,l,c){if(r[0]=="google.protobuf.NullValue")return!l&&!a?undefined:null;if(i===undefined){p.assert(a);return undefined}if(i===0&&!l&&!a)return undefined;p.assert(typeof i=="number");p.assert(Number.isInteger(i));if(c||!r[1].hasOwnProperty(i))return i;if(r[2])return r[2]+r[1][i];return r[1][i]}message(r,i,s,a){if(i===undefined)return a.emitDefaultValues?null:undefined;return r.internalJsonWrite(i,a)}scalar(r,i,s,d,u){if(i===undefined){p.assert(d);return undefined}const A=u||d;switch(r){case c.ScalarType.INT32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:if(i===0)return A?0:undefined;p.assertInt32(i);return i;case c.ScalarType.FIXED32:case c.ScalarType.UINT32:if(i===0)return A?0:undefined;p.assertUInt32(i);return i;case c.ScalarType.FLOAT:p.assertFloat32(i);case c.ScalarType.DOUBLE:if(i===0)return A?0:undefined;p.assert(typeof i=="number");if(Number.isNaN(i))return"NaN";if(i===Number.POSITIVE_INFINITY)return"Infinity";if(i===Number.NEGATIVE_INFINITY)return"-Infinity";return i;case c.ScalarType.STRING:if(i==="")return A?"":undefined;p.assert(typeof i=="string");return i;case c.ScalarType.BOOL:if(i===false)return A?false:undefined;p.assert(typeof i=="boolean");return i;case c.ScalarType.UINT64:case c.ScalarType.FIXED64:p.assert(typeof i=="number"||typeof i=="string"||typeof i=="bigint");let r=l.PbULong.from(i);if(r.isZero()&&!A)return undefined;return r.toString();case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:p.assert(typeof i=="number"||typeof i=="string"||typeof i=="bigint");let s=l.PbLong.from(i);if(s.isZero()&&!A)return undefined;return s.toString();case c.ScalarType.BYTES:p.assert(i instanceof Uint8Array);if(!i.byteLength)return A?"":undefined;return a.base64encode(i)}}}i.ReflectionJsonWriter=ReflectionJsonWriter},24612:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionLongConvert=void 0;const a=s(21370);function reflectionLongConvert(r,i){switch(i){case a.LongType.BIGINT:return r.toBigInt();case a.LongType.NUMBER:return r.toNumber();default:return r.toString()}}i.reflectionLongConvert=reflectionLongConvert},7869:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionMergePartial=void 0;function reflectionMergePartial(r,i,s){let a,l=s,c;for(let s of r.fields){let r=s.localName;if(s.oneof){const p=l[s.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}a=p[r];c=i[s.oneof];c.oneofKind=p.oneofKind;if(a==undefined){delete c[r];continue}}else{a=l[r];c=i;if(a==undefined){continue}}if(s.repeat)c[r].length=a.length;switch(s.kind){case"scalar":case"enum":if(s.repeat)for(let i=0;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionScalarDefault=void 0;const a=s(21370);const l=s(24612);const c=s(47777);function reflectionScalarDefault(r,i=a.LongType.STRING){switch(r){case a.ScalarType.BOOL:return false;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:return l.reflectionLongConvert(c.PbULong.ZERO,i);case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:return l.reflectionLongConvert(c.PbLong.ZERO,i);case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:return 0;case a.ScalarType.BYTES:return new Uint8Array(0);case a.ScalarType.STRING:return"";default:return 0}}i.reflectionScalarDefault=reflectionScalarDefault},20903:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionTypeCheck=void 0;const a=s(21370);const l=s(78531);class ReflectionTypeCheck{constructor(r){var i;this.fields=(i=r.fields)!==null&&i!==void 0?i:[]}prepare(){if(this.data)return;const r=[],i=[],s=[];for(let a of this.fields){if(a.oneof){if(!s.includes(a.oneof)){s.push(a.oneof);r.push(a.oneof);i.push(a.oneof)}}else{i.push(a.localName);switch(a.kind){case"scalar":case"enum":if(!a.opt||a.repeat)r.push(a.localName);break;case"message":if(a.repeat)r.push(a.localName);break;case"map":r.push(a.localName);break}}}this.data={req:r,known:i,oneofs:Object.values(s)}}is(r,i,s=false){if(i<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let a=Object.keys(r),c=this.data;if(a.length!a.includes(r))))return false;if(!s){if(a.some((r=>!c.known.includes(r))))return false}if(i<1){return true}for(const a of c.oneofs){const c=r[a];if(!l.isOneofGroup(c))return false;if(c.oneofKind===undefined)continue;const p=this.fields.find((r=>r.localName===c.oneofKind));if(!p)return false;if(!this.field(c[c.oneofKind],p,s,i))return false}for(const a of this.fields){if(a.oneof!==undefined)continue;if(!this.field(r[a.localName],a,s,i))return false}return true}field(r,i,s,l){let c=i.repeat;switch(i.kind){case"scalar":if(r===undefined)return i.opt;if(c)return this.scalars(r,i.T,l,i.L);return this.scalar(r,i.T,i.L);case"enum":if(r===undefined)return i.opt;if(c)return this.scalars(r,a.ScalarType.INT32,l);return this.scalar(r,a.ScalarType.INT32);case"message":if(r===undefined)return true;if(c)return this.messages(r,i.T(),s,l);return this.message(r,i.T(),s,l);case"map":if(typeof r!="object"||r===null)return false;if(l<2)return true;if(!this.mapKeys(r,i.K,l))return false;switch(i.V.kind){case"scalar":return this.scalars(Object.values(r),i.V.T,l,i.V.L);case"enum":return this.scalars(Object.values(r),a.ScalarType.INT32,l);case"message":return this.messages(Object.values(r),i.V.T(),s,l)}break}return true}message(r,i,s,a){if(s){return i.isAssignable(r,a)}return i.is(r,a)}messages(r,i,s,a){if(!Array.isArray(r))return false;if(a<2)return true;if(s){for(let s=0;sparseInt(r))),i,s);case a.ScalarType.BOOL:return this.scalars(l.slice(0,s).map((r=>r=="true"?true:r=="false"?false:r)),i,s);default:return this.scalars(l,i,s,a.LongType.STRING)}}}i.ReflectionTypeCheck=ReflectionTypeCheck},81231:(r,i,s)=>{var a=s(77758);var l=s(71017);var c=s(48919);var p=s(89764);var d=s(28651);var u=s(25723);var A=s(91957);var h=r.exports={};var g=/[\/\\]/g;var processPatterns=function(r,i){var s=[];c(r).forEach((function(r){var a=r.indexOf("!")===0;if(a){r=r.slice(1)}var l=i(r);if(a){s=p(s,l)}else{s=d(s,l)}}));return s};h.exists=function(){var r=l.join.apply(l,arguments);return a.existsSync(r)};h.expand=function(...r){var i=u(r[0])?r.shift():{};var s=Array.isArray(r[0])?r[0]:r;if(s.length===0){return[]}var c=processPatterns(s,(function(r){return A.sync(r,i)}));if(i.filter){c=c.filter((function(r){r=l.join(i.cwd||"",r);try{if(typeof i.filter==="function"){return i.filter(r)}else{return a.statSync(r)[i.filter]()}}catch(r){return false}}))}return c};h.expandMapping=function(r,i,s){s=Object.assign({rename:function(r,i){return l.join(r||"",i)}},s);var a=[];var c={};h.expand(s,r).forEach((function(r){var p=r;if(s.flatten){p=l.basename(p)}if(s.ext){p=p.replace(/(\.[^\/]*)?$/,s.ext)}var d=s.rename(i,p,s);if(s.cwd){r=l.join(s.cwd,r)}d=d.replace(g,"/");r=r.replace(g,"/");if(c[d]){c[d].src.push(r)}else{a.push({src:[r],dest:d});c[d]=a[a.length-1]}}));return a};h.normalizeFilesArray=function(r){var i=[];r.forEach((function(r){var s;if("src"in r||"dest"in r){i.push(r)}}));if(i.length===0){return[]}i=_(i).chain().forEach((function(r){if(!("src"in r)||!r.src){return}if(Array.isArray(r.src)){r.src=c(r.src)}else{r.src=[r.src]}})).map((function(r){var i=Object.assign({},r);delete i.src;delete i.dest;if(r.expand){return h.expandMapping(r.src,r.dest,i).map((function(i){var s=Object.assign({},r);s.orig=Object.assign({},r);s.src=i.src;s.dest=i.dest;["expand","cwd","flatten","rename","ext"].forEach((function(r){delete s[r]}));return s}))}var s=Object.assign({},r);s.orig=Object.assign({},r);if("src"in s){Object.defineProperty(s,"src",{enumerable:true,get:function fn(){var s;if(!("result"in fn)){s=r.src;s=Array.isArray(s)?c(s):[s];fn.result=h.expand(i,s)}return fn.result}})}if("dest"in s){s.dest=r.dest}return s})).flatten().value();return i}},82072:(r,i,s)=>{var a=s(77758);var l=s(71017);var c=s(73837);var p=s(12084);var d=s(55388);var u=s(11289);var A=s(12781).Stream;var h=s(44785).PassThrough;var g=r.exports={};g.file=s(81231);function assertPath(r){if(typeof r!=="string"){throw new TypeError("Path must be a string. Received "+nutils.inspect(r))}}g.collectStream=function(r,i){var s=[];var a=0;r.on("error",i);r.on("data",(function(r){s.push(r);a+=r.length}));r.on("end",(function(){var r=new Buffer(a);var l=0;s.forEach((function(i){i.copy(r,l);l+=i.length}));i(null,r)}))};g.dateify=function(r){r=r||new Date;if(r instanceof Date){r=r}else if(typeof r==="string"){r=new Date(r)}else{r=new Date}return r};g.defaults=function(r,i,s){var a=arguments;a[0]=a[0]||{};return u(...a)};g.isStream=function(r){return r instanceof A};g.lazyReadStream=function(r){return new p.Readable((function(){return a.createReadStream(r)}))};g.normalizeInputSource=function(r){if(r===null){return new Buffer(0)}else if(typeof r==="string"){return new Buffer(r)}else if(g.isStream(r)&&!r._readableState){var i=new h;r.pipe(i);return i}return r};g.sanitizePath=function(r){return d(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};g.trailingSlashIt=function(r){return r.slice(-1)!=="/"?r+"/":r};g.unixifyPath=function(r){return d(r,false).replace(/^\w+:/,"")};g.walkdir=function(r,i,s){var c=[];if(typeof i==="function"){s=i;i=r}a.readdir(r,(function(p,d){var u=0;var A;var h;if(p){return s(p)}(function next(){A=d[u++];if(!A){return s(null,c)}h=l.join(r,A);a.stat(h,(function(r,s){c.push({path:h,relative:l.relative(i,h).replace(/\\/g,"/"),stats:s});if(s&&s.isDirectory()){g.walkdir(h,i,(function(r,i){i.forEach((function(r){c.push(r)}));next()}))}else{next()}}))})()}))}},5364:(r,i,s)=>{"use strict";var a=s(47810);var l=Object.keys||function(r){var i=[];for(var s in r){i.push(s)}return i};r.exports=Duplex;var c=Object.create(s(95898));c.inherits=s(44124);var p=s(19647);var d=s(33369);c.inherits(Duplex,p);{var u=l(d.prototype);for(var A=0;A{"use strict";r.exports=PassThrough;var a=s(95401);var l=Object.create(s(95898));l.inherits=s(44124);l.inherits(PassThrough,a);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);a.call(this,r)}PassThrough.prototype._transform=function(r,i,s){s(null,r)}},19647:(r,i,s)=>{"use strict";var a=s(47810);r.exports=Readable;var l=s(20893);var c;Readable.ReadableState=ReadableState;var p=s(82361).EventEmitter;var EElistenerCount=function(r,i){return r.listeners(i).length};var d=s(41715);var u=s(36476).Buffer;var A=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return u.from(r)}function _isUint8Array(r){return u.isBuffer(r)||r instanceof A}var h=Object.create(s(95898));h.inherits=s(44124);var g=s(73837);var E=void 0;if(g&&g.debuglog){E=g.debuglog("stream")}else{E=function(){}}var y=s(37898);var b=s(71890);var C;h.inherits(Readable,d);var v=["error","close","destroy","pause","resume"];function prependListener(r,i,s){if(typeof r.prependListener==="function")return r.prependListener(i,s);if(!r._events||!r._events[i])r.on(i,s);else if(l(r._events[i]))r._events[i].unshift(s);else r._events[i]=[s,r._events[i]]}function ReadableState(r,i){c=c||s(5364);r=r||{};var a=i instanceof c;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.readableObjectMode;var l=r.highWaterMark;var p=r.readableHighWaterMark;var d=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(p||p===0))this.highWaterMark=p;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=r.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(r.encoding){if(!C)C=s(99708).s;this.decoder=new C(r.encoding);this.encoding=r.encoding}}function Readable(r){c=c||s(5364);if(!(this instanceof Readable))return new Readable(r);this._readableState=new ReadableState(r,this);this.readable=true;if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy}d.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(r){if(!this._readableState){return}this._readableState.destroyed=r}});Readable.prototype.destroy=b.destroy;Readable.prototype._undestroy=b.undestroy;Readable.prototype._destroy=function(r,i){this.push(null);i(r)};Readable.prototype.push=function(r,i){var s=this._readableState;var a;if(!s.objectMode){if(typeof r==="string"){i=i||s.defaultEncoding;if(i!==s.encoding){r=u.from(r,i);i=""}a=true}}else{a=true}return readableAddChunk(this,r,i,false,a)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,i,s,a,l){var c=r._readableState;if(i===null){c.reading=false;onEofChunk(r,c)}else{var p;if(!l)p=chunkInvalid(c,i);if(p){r.emit("error",p)}else if(c.objectMode||i&&i.length>0){if(typeof i!=="string"&&!c.objectMode&&Object.getPrototypeOf(i)!==u.prototype){i=_uint8ArrayToBuffer(i)}if(a){if(c.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,c,i,true)}else if(c.ended){r.emit("error",new Error("stream.push() after EOF"))}else{c.reading=false;if(c.decoder&&!s){i=c.decoder.write(i);if(c.objectMode||i.length!==0)addChunk(r,c,i,false);else maybeReadMore(r,c)}else{addChunk(r,c,i,false)}}}else if(!a){c.reading=false}}return needMoreData(c)}function addChunk(r,i,s,a){if(i.flowing&&i.length===0&&!i.sync){r.emit("data",s);r.read(0)}else{i.length+=i.objectMode?1:s.length;if(a)i.buffer.unshift(s);else i.buffer.push(s);if(i.needReadable)emitReadable(r)}maybeReadMore(r,i)}function chunkInvalid(r,i){var s;if(!_isUint8Array(i)&&typeof i!=="string"&&i!==undefined&&!r.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(r){return!r.ended&&(r.needReadable||r.length=w){r=w}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,i){if(r<=0||i.length===0&&i.ended)return 0;if(i.objectMode)return 1;if(r!==r){if(i.flowing&&i.length)return i.buffer.head.data.length;else return i.length}if(r>i.highWaterMark)i.highWaterMark=computeNewHighWaterMark(r);if(r<=i.length)return r;if(!i.ended){i.needReadable=true;return 0}return i.length}Readable.prototype.read=function(r){E("read",r);r=parseInt(r,10);var i=this._readableState;var s=r;if(r!==0)i.emittedReadable=false;if(r===0&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)){E("read: emitReadable",i.length,i.ended);if(i.length===0&&i.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,i);if(r===0&&i.ended){if(i.length===0)endReadable(this);return null}var a=i.needReadable;E("need readable",a);if(i.length===0||i.length-r0)l=fromList(r,i);else l=null;if(l===null){i.needReadable=true;r=0}else{i.length-=r}if(i.length===0){if(!i.ended)i.needReadable=true;if(s!==r&&i.ended)endReadable(this)}if(l!==null)this.emit("data",l);return l};function onEofChunk(r,i){if(i.ended)return;if(i.decoder){var s=i.decoder.end();if(s&&s.length){i.buffer.push(s);i.length+=i.objectMode?1:s.length}}i.ended=true;emitReadable(r)}function emitReadable(r){var i=r._readableState;i.needReadable=false;if(!i.emittedReadable){E("emitReadable",i.flowing);i.emittedReadable=true;if(i.sync)a.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){E("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,i){if(!i.readingMore){i.readingMore=true;a.nextTick(maybeReadMore_,r,i)}}function maybeReadMore_(r,i){var s=i.length;while(!i.reading&&!i.flowing&&!i.ended&&i.length1&&indexOf(l.pipes,r)!==-1)&&!u){E("false write response, pause",l.awaitDrain);l.awaitDrain++;A=true}s.pause()}}function onerror(i){E("onerror",i);unpipe();r.removeListener("error",onerror);if(EElistenerCount(r,"error")===0)r.emit("error",i)}prependListener(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){E("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){E("unpipe");s.unpipe(r)}r.emit("pipe",s);if(!l.flowing){E("pipe resume");s.resume()}return r};function pipeOnDrain(r){return function(){var i=r._readableState;E("pipeOnDrain",i.awaitDrain);if(i.awaitDrain)i.awaitDrain--;if(i.awaitDrain===0&&EElistenerCount(r,"data")){i.flowing=true;flow(r)}}}Readable.prototype.unpipe=function(r){var i=this._readableState;var s={hasUnpiped:false};if(i.pipesCount===0)return this;if(i.pipesCount===1){if(r&&r!==i.pipes)return this;if(!r)r=i.pipes;i.pipes=null;i.pipesCount=0;i.flowing=false;if(r)r.emit("unpipe",this,s);return this}if(!r){var a=i.pipes;var l=i.pipesCount;i.pipes=null;i.pipesCount=0;i.flowing=false;for(var c=0;c=i.length){if(i.decoder)s=i.buffer.join("");else if(i.buffer.length===1)s=i.buffer.head.data;else s=i.buffer.concat(i.length);i.buffer.clear()}else{s=fromListPartial(r,i.buffer,i.decoder)}return s}function fromListPartial(r,i,s){var a;if(rc.length?c.length:r;if(p===c.length)l+=c;else l+=c.slice(0,r);r-=p;if(r===0){if(p===c.length){++a;if(s.next)i.head=s.next;else i.head=i.tail=null}else{i.head=s;s.data=c.slice(p)}break}++a}i.length-=a;return l}function copyFromBuffer(r,i){var s=u.allocUnsafe(r);var a=i.head;var l=1;a.data.copy(s);r-=a.data.length;while(a=a.next){var c=a.data;var p=r>c.length?c.length:r;c.copy(s,s.length-r,0,p);r-=p;if(r===0){if(p===c.length){++l;if(a.next)i.head=a.next;else i.head=i.tail=null}else{i.head=a;a.data=c.slice(p)}break}++l}i.length-=l;return s}function endReadable(r){var i=r._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!i.endEmitted){i.ended=true;a.nextTick(endReadableNT,i,r)}}function endReadableNT(r,i){if(!r.endEmitted&&r.length===0){r.endEmitted=true;i.readable=false;i.emit("end")}}function indexOf(r,i){for(var s=0,a=r.length;s{"use strict";r.exports=Transform;var a=s(5364);var l=Object.create(s(95898));l.inherits=s(44124);l.inherits(Transform,a);function afterTransform(r,i){var s=this._transformState;s.transforming=false;var a=s.writecb;if(!a){return this.emit("error",new Error("write callback called multiple times"))}s.writechunk=null;s.writecb=null;if(i!=null)this.push(i);a(r);var l=this._readableState;l.reading=false;if(l.needReadable||l.length{"use strict";var a=s(47810);r.exports=Writable;function WriteReq(r,i,s){this.chunk=r;this.encoding=i;this.callback=s;this.next=null}function CorkedRequest(r){var i=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(i,r)}}var l=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;var c;Writable.WritableState=WritableState;var p=Object.create(s(95898));p.inherits=s(44124);var d={deprecate:s(65278)};var u=s(41715);var A=s(36476).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return A.from(r)}function _isUint8Array(r){return A.isBuffer(r)||r instanceof h}var g=s(71890);p.inherits(Writable,u);function nop(){}function WritableState(r,i){c=c||s(5364);r=r||{};var a=i instanceof c;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.writableObjectMode;var l=r.highWaterMark;var p=r.writableHighWaterMark;var d=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(p||p===0))this.highWaterMark=p;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=r.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(r){onwrite(i,r)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var r=this.bufferedRequest;var i=[];while(r){i.push(r);r=r.next}return i};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(r){}})();var E;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){E=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(E.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{E=function(r){return r instanceof this}}function Writable(r){c=c||s(5364);if(!E.call(Writable,this)&&!(this instanceof c)){return new Writable(r)}this._writableState=new WritableState(r,this);this.writable=true;if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(r,i){var s=new Error("write after end");r.emit("error",s);a.nextTick(i,s)}function validChunk(r,i,s,l){var c=true;var p=false;if(s===null){p=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!i.objectMode){p=new TypeError("Invalid non-string/buffer chunk")}if(p){r.emit("error",p);a.nextTick(l,p);c=false}return c}Writable.prototype.write=function(r,i,s){var a=this._writableState;var l=false;var c=!a.objectMode&&_isUint8Array(r);if(c&&!A.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof i==="function"){s=i;i=null}if(c)i="buffer";else if(!i)i=a.defaultEncoding;if(typeof s!=="function")s=nop;if(a.ended)writeAfterEnd(this,s);else if(c||validChunk(this,a,r,s)){a.pendingcb++;l=writeOrBuffer(this,a,c,r,i,s)}return l};Writable.prototype.cork=function(){var r=this._writableState;r.corked++};Writable.prototype.uncork=function(){var r=this._writableState;if(r.corked){r.corked--;if(!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=r.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);this._writableState.defaultEncoding=r;return this};function decodeChunk(r,i,s){if(!r.objectMode&&r.decodeStrings!==false&&typeof i==="string"){i=A.from(i,s)}return i}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,i,s,a,l,c){if(!s){var p=decodeChunk(i,a,l);if(a!==p){s=true;l="buffer";a=p}}var d=i.objectMode?1:a.length;i.length+=d;var u=i.length{"use strict";function _classCallCheck(r,i){if(!(r instanceof i)){throw new TypeError("Cannot call a class as a function")}}var a=s(36476).Buffer;var l=s(73837);function copyBuffer(r,i,s){r.copy(i,s)}r.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(r){var i={data:r,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i;++this.length};BufferList.prototype.unshift=function unshift(r){var i={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(r){if(this.length===0)return"";var i=this.head;var s=""+i.data;while(i=i.next){s+=r+i.data}return s};BufferList.prototype.concat=function concat(r){if(this.length===0)return a.alloc(0);var i=a.allocUnsafe(r>>>0);var s=this.head;var l=0;while(s){copyBuffer(s.data,i,l);l+=s.data.length;s=s.next}return i};return BufferList}();if(l&&l.inspect&&l.inspect.custom){r.exports.prototype[l.inspect.custom]=function(){var r=l.inspect({length:this.length});return this.constructor.name+" "+r}}},71890:(r,i,s)=>{"use strict";var a=s(47810);function destroy(r,i){var s=this;var l=this._readableState&&this._readableState.destroyed;var c=this._writableState&&this._writableState.destroyed;if(l||c){if(i){i(r)}else if(r){if(!this._writableState){a.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;a.nextTick(emitErrorNT,this,r)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(r||null,(function(r){if(!i&&r){if(!s._writableState){a.nextTick(emitErrorNT,s,r)}else if(!s._writableState.errorEmitted){s._writableState.errorEmitted=true;a.nextTick(emitErrorNT,s,r)}}else if(i){i(r)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(r,i){r.emit("error",i)}r.exports={destroy:destroy,undestroy:undestroy}},41715:(r,i,s)=>{r.exports=s(12781)},44785:(r,i,s)=>{var a=s(12781);if(process.env.READABLE_STREAM==="disable"&&a){r.exports=a;i=r.exports=a.Readable;i.Readable=a.Readable;i.Writable=a.Writable;i.Duplex=a.Duplex;i.Transform=a.Transform;i.PassThrough=a.PassThrough;i.Stream=a}else{i=r.exports=s(19647);i.Stream=a||i;i.Readable=i;i.Writable=s(33369);i.Duplex=s(5364);i.Transform=s(95401);i.PassThrough=s(47905)}},36476:(r,i,s)=>{var a=s(14300);var l=a.Buffer;function copyProps(r,i){for(var s in r){i[s]=r[s]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=a}else{copyProps(a,i);i.Buffer=SafeBuffer}function SafeBuffer(r,i,s){return l(r,i,s)}copyProps(l,SafeBuffer);SafeBuffer.from=function(r,i,s){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,i,s)};SafeBuffer.alloc=function(r,i,s){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=l(r);if(i!==undefined){if(typeof s==="string"){a.fill(i,s)}else{a.fill(i)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return l(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},99708:(r,i,s)=>{"use strict";var a=s(36476).Buffer;var l=a.isEncoding||function(r){r=""+r;switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var i;while(true){switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(i)return;r=(""+r).toLowerCase();i=true}}}function normalizeEncoding(r){var i=_normalizeEncoding(r);if(typeof i!=="string"&&(a.isEncoding===l||!l(r)))throw new Error("Unknown encoding: "+r);return i||r}i.s=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var i;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;i=4;break;case"utf8":this.fillLast=utf8FillLast;i=4;break;case"base64":this.text=base64Text;this.end=base64End;i=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(i)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var i;var s;if(this.lastNeed){i=this.fillLast(r);if(i===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,i,s){var a=i.length-1;if(a=0){if(l>0)r.lastNeed=l-1;return l}if(--a=0){if(l>0)r.lastNeed=l-2;return l}if(--a=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,i,s){if((i[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&i.length>1){if((i[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&i.length>2){if((i[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var i=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,r,i);if(s!==undefined)return s;if(this.lastNeed<=r.length){r.copy(this.lastChar,i,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,i,0,r.length);this.lastNeed-=r.length}function utf8Text(r,i){var s=utf8CheckIncomplete(this,r,i);if(!this.lastNeed)return r.toString("utf8",i);this.lastTotal=s;var a=r.length-(s-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",i,a)}function utf8End(r){var i=r&&r.length?this.write(r):"";if(this.lastNeed)return i+"�";return i}function utf16Text(r,i){if((r.length-i)%2===0){var s=r.toString("utf16le",i);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",i,r.length-1)}function utf16End(r){var i=r&&r.length?this.write(r):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,s)}return i}function base64Text(r,i){var s=(r.length-i)%3;if(s===0)return r.toString("base64",i);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",i,r.length-s)}function base64End(r){var i=r&&r.length?this.write(r):"";if(this.lastNeed)return i+this.lastChar.toString("base64",0,3-this.lastNeed);return i}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},43084:(r,i,s)=>{ /** * Archiver Vending * diff --git a/lib/sarif.js b/lib/sarif.js index af072dc..73786c1 100644 --- a/lib/sarif.js +++ b/lib/sarif.js @@ -34,9 +34,16 @@ const relativizeReport = function (reportFile) { report.runs[0].results.forEach(rule => { rule.locations.forEach(location => { const artifactLocation = location.physicalLocation.artifactLocation; + + let uri = artifactLocation.uri; + if (uri.startsWith('file://')) { + // sarif report already contains a file uri, remove the prefix "file://". + // this is true for PMD 7.0.0-rc3 and later + uri = uri.substring('file://'.length); + } // note: this also converts any backslashes from Windows paths into forward slashes // forward slashes are needed in the sarif report for GitHub annotations and codeql upload - const uri = new URL(`file://${artifactLocation.uri}`).href; + uri = new URL(`file://${uri}`).href; if (uri.startsWith(prefixUri)) { artifactLocation.uri = uri.substring(prefixUri.length); } else { diff --git a/tests/data/pmd-report-uris.sarif b/tests/data/pmd-report-uris.sarif new file mode 100644 index 0000000..d3246a8 --- /dev/null +++ b/tests/data/pmd-report-uris.sarif @@ -0,0 +1,68 @@ +{ + "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "version": "2.1.0", + "runs": [ + { + "tool": { + "driver": { + "name": "PMD", + "version": "6.40.0", + "informationUri": "https://pmd.github.io/pmd/", + "rules": [ + { + "id": "UnusedLocalVariable", + "shortDescription": { + "text": "Variable 'x' defined but not used" + }, + "fullDescription": { + "text": "\n Detects when a local variable is declared and/or assigned but not used.\n Second line.\n Third line with additional indentation.\n Fourth line with less indentation.\n " + }, + "helpUri": "https://pmd.github.io/pmd-6.40.0/pmd_rules_apex_bestpractices.html#unusedlocalvariable", + "help": { + "text": "\nDetects when a local variable is declared and/or assigned but not used.\n " + }, + "properties": { + "ruleset": "Best Practices", + "priority": 5, + "tags": [ + "Best Practices" + ] + } + } + ] + } + }, + "results": [ + { + "ruleId": "UnusedLocalVariable", + "ruleIndex": 0, + "message": { + "text": "Variable 'x' defined but not used" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "file:///home/andreas/PMD/source/pmd-github-action-test/src/classes/UnusedLocalVariableSample.cls" + }, + "region": { + "startLine": 3, + "startColumn": 16, + "endLine": 3, + "endColumn": 16 + } + } + } + ] + } + ], + "invocations": [ + { + "executionSuccessful": true, + "toolConfigurationNotifications": [], + "toolExecutionNotifications": [] + } + ] + } + ] +} diff --git a/tests/data/pmd-report-win-uris.sarif b/tests/data/pmd-report-win-uris.sarif new file mode 100644 index 0000000..9ada792 --- /dev/null +++ b/tests/data/pmd-report-win-uris.sarif @@ -0,0 +1,68 @@ +{ + "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "version": "2.1.0", + "runs": [ + { + "tool": { + "driver": { + "name": "PMD", + "version": "6.40.0", + "informationUri": "https://pmd.github.io/pmd/", + "rules": [ + { + "id": "UnusedLocalVariable", + "shortDescription": { + "text": "Variable 'x' defined but not used" + }, + "fullDescription": { + "text": "\n Detects when a local variable is declared and/or assigned but not used.\n Second line.\n Third line with additional indentation.\n Fourth line with less indentation.\n " + }, + "helpUri": "https://pmd.github.io/pmd-6.40.0/pmd_rules_apex_bestpractices.html#unusedlocalvariable", + "help": { + "text": "\nDetects when a local variable is declared and/or assigned but not used.\n " + }, + "properties": { + "ruleset": "Best Practices", + "priority": 5, + "tags": [ + "Best Practices" + ] + } + } + ] + } + }, + "results": [ + { + "ruleId": "UnusedLocalVariable", + "ruleIndex": 0, + "message": { + "text": "Variable 'x' defined but not used" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "file:///D:/a/pmd-github-action-test/src/classes/UnusedLocalVariableSample.cls" + }, + "region": { + "startLine": 3, + "startColumn": 16, + "endLine": 3, + "endColumn": 16 + } + } + } + ] + } + ], + "invocations": [ + { + "executionSuccessful": true, + "toolConfigurationNotifications": [], + "toolExecutionNotifications": [] + } + ] + } + ] +} diff --git a/tests/sarif.test.js b/tests/sarif.test.js index 6224938..71d18e6 100644 --- a/tests/sarif.test.js +++ b/tests/sarif.test.js @@ -75,6 +75,24 @@ describe('pmd-github-action-sarif', function () { .toBe('src/classes/UnusedLocalVariableSample.cls'); }) + test('can properly relativize report which contains already uris', async () => { + const isWindows = os.platform() === 'win32'; + + const reportPath = path.join(tempPath, 'pmd-report-uris.sarif'); + await io.cp(path.join(__dirname, 'data', isWindows ? 'pmd-report-win-uris.sarif' : 'pmd-report-uris.sarif'), reportPath); + + const reportBefore = sarif.loadReport(reportPath); + const fullPath = isWindows ? 'file:///D:/a/pmd-github-action-test/src/classes/UnusedLocalVariableSample.cls' : 'file:///home/andreas/PMD/source/pmd-github-action-test/src/classes/UnusedLocalVariableSample.cls'; + expect(reportBefore.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri).toBe(fullPath); + + process.env['GITHUB_WORKSPACE'] = isWindows ? 'D:\\a\\pmd-github-action-test' : '/home/andreas/PMD/source/pmd-github-action-test'; + sarif.relativizeReport(reportPath); + const reportAfter = sarif.loadReport(reportPath); + // note: not normalizing the paths to platform dependent paths - it must be a valid URI + expect(reportAfter.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri) + .toBe('src/classes/UnusedLocalVariableSample.cls'); + }) + test('can properly relativize report - windows paths - issue #51', async () => { const reportPath = path.join(tempPath, 'pmd-report.sarif'); await io.cp(path.join(__dirname, 'data', 'pmd-report-win.sarif'), reportPath);